Absent Member.. vzamoraz Absent Member..
Absent Member..

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.Debug("Hello World!");

this.Context.UserLogger.Info("Bye Bye World!");




HP support
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.


Labels (1)
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.