How to you write to UFT API Output log

  • Questions
  • How to you write to UFT API Output log
Question ID: 105995
0
0

I am running test and was wondering is there a way to use the output log?

Marked as spam
Posted by (Questions: 28, Answers: 0)
Asked on April 13, 2015 8:55 pm
19 views
Answers (1)
0
Private answer

Look at the UserLogger object in the user guide and you can see how to use it.

UFT User Guide > API Testing Design > Writing Event Handlers for API Test Steps > Reference > API Event Coding Common Objects > UserLogger Object

Example:

Context.UserLogger.Info(''This is for info string'');
Context.UserLogger.Debug(''Debug Mode'');
Context.UserLogger.Error(''ERROR EXIST'');
Context.UserLogger.Fatal(''Fatal code here'');
Context.UserLogger.Warn(''Warning string here'');

Marked as spam
Posted by (Questions: 2, Answers: 98)
Answered on April 13, 2015 9:00 pm