|
Reporter.ReportEvent EventStatus, ReportStepName, Details [, in]
Argument
Type
Description
EventStatus Number or pre-defined constant Status of the report step:
0 or micPass: Causes the status of this step to be passed and sends the specified message to the report.
1 or micFail: Causes the status of this step to be failed and sends the specified message to the report. When this step runs, the test or component fails.
2 or micDone: Sends a message to the report without affecting the pass/fail status of the test or component.
3 or micWarning: Sends a warning message to the report, but does not cause the test or component to stop running, and does not affect the pass/fail status of the test or component.
ReportStepName String Name of the intended step in the report (object name).
Details String Description of the report event. The string will be displayed in the step details frame in the report.
in N/A Not in use.
Example
The following examples use the ReportEvent method to report a failed step.
Reporter.ReportEvent 1, "Custom Step", "The user-defined step failed." |
|