Showing posts with label QTP Reporter Utility Object. QTP HP UFT. Show all posts
Showing posts with label QTP Reporter Utility Object. QTP HP UFT. Show all posts

Monday, July 8, 2013

QTP/HP UFT : Using the Reporter Utility Object

Use the ReportEvent method of the reporter object to report an event to the test
results.

The syntax of the ReportEvent method is:

Reporter.ReportEvent(EventStatus, ReportStepName, Details)
 

– EventStatus is the status of the report step. The valid values for EventStatus are
the following constants: micPass, micFail, micDone, and micWarning.

– ReportStepName and Details are text strings.

The following example shows how to use the ReportEvent method:

Ex : Reporter.ReportEvent micDone, "OrderNumber","The new booking order number is " & OrderNumber

Note: We can use the & operator to concatenate strings.