|
我录了1段脚本, 想进行手动的检查并写报告, 但写报告时老报错:提示:类型不匹配:"reporter.Reporter.Event"
代码如下:
Dim LogName, Password, ExpResult, ActResult, PassOrNot, CaseCount
DataTable.ImportSheet "D:\TestResult.xls","LogChk","LoginChk"
LogName = DataTable.RawValue("LoginName","LoginChk")
Password = DataTable.RawValue("assword","LoginChk")
ExpResult = DataTable.RawValue("ExpRslt","LoginChk")
PassOrNot = null
CaseCount = null
Dialog("Login").WinEdit("Agent Name:").Set LogName
Dialog("Login").WinEdit("assword:").Type Password
Dialog("Login").WinButton("OK").Click
ActResult = Dialog("Login").Dialog("Flight Reservations").Static("Incorrect password. Please").GetROProperty("text")
Dialog("Login").Dialog("Flight Reservations").WinButton("确定").Click
if ExpResult = ActResult Then
Reporter.ReportEvent micPass, "Custom Step", "this case pass!", SteveRedd
else
Reporter.ReportEvent micFail, "LoginChk", "Check Failed", SteveRedd
End If
在线等ING... 希望有人帮忙解决哈... |
|