(qtp)reporter对象的reportevent方法

(qtp)reporter对象的reportevent方法

ID:19569607

大小:16.78 KB

页数:7页

时间:2018-10-03

(qtp)reporter对象的reportevent方法_第1页
(qtp)reporter对象的reportevent方法_第2页
(qtp)reporter对象的reportevent方法_第3页
(qtp)reporter对象的reportevent方法_第4页
(qtp)reporter对象的reportevent方法_第5页
资源描述:

《(qtp)reporter对象的reportevent方法》由会员上传分享,免费在线阅读,更多相关内容在行业资料-天天文库

1、(qtp)Reporter对象的ReportEvent方法  2010-02-0611:21:02

2、  分类:QTP

3、  标签:

4、字号大中小 订阅描述在testresult中报告测试结果。语法Reporter.ReportEventEventStatus,ReportStepName,Details[,in]Argument Type Descrīption EventStatus Numberorpre-definedconstant 状态值:0或micPass:将本步骤的运行结果状态设置为“Pass”,并向Result中产生报告信息。如果想在报告中生成

5、“通过”报告,用本状态值。1或micFail:将本步骤的运行结果状态设置为“Fail”,并向Result中产生报告信息。当脚本中运行本语句时,整个测试的结果状态是“fails”。如果想在报告中生成“失败”报告,用本状态值。如果运行了本语句,则整个测试的状态为“Fail”。2或micDone:仅向Result中产生报告信息,但不影响整个测试的结果状态。如果想在报告中生成“完成”报告,用本状态值。3或micWarning:S向Result中产生报告信息,但是不会中断测试的运行,也不影响测试的pass/failstatus。如果想在报告中生成“警告”报告,用本状

6、态值。运行这个语句后,整个测试结果状态为“Warning”。 ReportStepName String 将在报告中显示的步骤名称(objectname). Details String 报告的详细信息。这些信息是本条报告的“Details”信息。 in N/A Notinuse. beconsistentwithinthesamedisk.Alternateunifiedcorerequirementsplacedontheterminalstripterminals,onlineidentityandensurethecoppercoreisnotex

7、posed.6.4.6enclosurewithinthesametothecablecoreprovidesbindingintoacircle,harnesstiespacingisgenerally100mm;branchofficesshallbebindingonbothends,eachcore 举例:下面的例子使用ReprotEvent方法来报告一个失败信息。Reporter.ReportEvent1,"CustomStep","Theuser-definedstepfailed."或Reporter.ReportEventmicFail,"

8、CustomStep","Theuser-definedstepfailed."2.     MsgBox函数在运行脚本的过程中,弹出对话框,等待用户手工点击按钮干预。本语句根据用户点击按钮的情况得到返回值。这个语句适用于脚本的调试过程。Ø        语法MsgBox(prompt[,buttons][,title][,helpfile,context])Ø        参数prompt将在对话框中显示的信息。最大长度为1024字符。如果内容有多行,可以用(Chr(13))来表示回车符,或用(Chr(10))表示换行符,或用(Chr(13)&Chr(

9、10))表示回车-换行符。buttons按钮的值。默认值为0。title弹出框的标题,将显示在标题栏。Ø        Settings按钮值的说明:内容 值 描述 vbOKOnly 0 只显示OK按钮 vbOKCancel 1 显示OK以及Cancel按钮。 vbAbortRetryIgnore 2 显示Abort、Retry以及Ignore按钮。 vbYesNoCancel 3 显示Yes、No以及Cancel按钮beconsistentwithinthesamedisk.Alternateunifiedcorerequirementsplacedon

10、theterminalstripterminals,onlineidentityandensurethecoppercoreisnotexposed.6.4.6enclosurewithinthesametothecablecoreprovidesbindingintoacircle,harnesstiespacingisgenerally100mm;branchofficesshallbebindingonbothends,eachcore vbYesNo 4 显示Yes和No按钮 vbRetryCancel 5 显示Retry和Cancel按钮 vbC

11、ritical 16 DisplayCriticalMessage

当前文档最多预览五页,下载文档查看全文

此文档下载收益归作者所有

当前文档最多预览五页,下载文档查看全文
温馨提示:
1. 部分包含数学公式或PPT动画的文件,查看预览时可能会显示错乱或异常,文件下载后无此问题,请放心下载。
2. 本文档由用户上传,版权归属用户,天天文库负责整理代发布。如果您对本文档版权有争议请及时联系客服。
3. 下载前请仔细阅读文档内容,确认文档内容符合您的需求后进行下载,若出现内容与标题不符可向本站投诉处理。
4. 下载文档时可能由于网络波动等原因无法下载或下载错误,付费完成后未能成功下载的用户请联系客服处理。