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.
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.
No comments:
Post a Comment