平淡的生活,我依旧能梳理出生活的乐章!

qtp里ReportEvent Method

上一篇 / 下一篇  2008-05-15 16:29:46 / 个人分类:QTP

qtp里ReportEvent Method具体运用见QTP登录脚本
 
ReportEvent Method : 运行脚本过程中添加一个事件到test results.

语法:Reporter.ReportEvent EventStatus, ReportStepName, Details [, Reporter]
     EventStatus一般分为四种:
     0 or micPass: 测试步骤通过,并发送具体的信息到test results
     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 fails
 
     2 or micDone: Sends a message to the report without affecting the pass/fail status of the test.
     3 or micWarning:Sends a warning message to the report, but does not cause the test to stop running, and does not affect the pass/fail status of the test.


     ReportStepName: Name of the intended step in the report
     Details:具体细节信息


     Reporter.ReportEvent 1, "Custom Step", "The user-defined step failed."

     Reporter.ReportEvent micFail, "Custom Step", "The user-defined step failed."


TAG: QTP

 

评分:0

我来说两句

Open Toolbar