UFT support tip: How to print values to Output Log pane for API testing?
How can end-user write or print values to the Output Log pane (View menu > Output) where Unified Functional Testing API scripts (or Service Test scripts) reports string messages for many (if not most) of the steps done?
You can use 2 different ways
Using the ReportMessage activity will report some log traces to Output pane.
Programmatically with UserLogger.Debug and/or UserLogger.Info
Note: This method is only applies when using Event handlers and/or Custom Code activities
this.Context.UserLogger.Info("Bye Bye World!");
If you find that this or any post resolves your issue, mark it as an accepted solution.
Note: The Opinions expressed in my post are mine alone, and do not reflect the opinions of my employer. No warranties express or implied for any answered posted.