|
6#
楼主 |
发表于 2005-11-24 10:42:18
|
只看该作者
thank Qa_bay very much.
I know.
、、、、、、、、、、、、、、、、、
from help
÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷
Description
Reports an event to the test results.
Syntax
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."
or
Reporter.ReportEvent micFail, "Custom Step", "The user-defined step failed."
--------------------------------------------------------------------------------
Copyright 2004 Mercury Interactive Corporation
Documentation comments or suggestions?
Please send feedback to documentation@mercury.com |
|