|
请问各位在QTP中如何手工写检查点?
我在论坛里面找到一篇文章,里面是这样写的!
QTP脚本:
Dim actual_value
' Get the actual property value
actual_value = obj.GetROProperty(prop_name)
' Compare the actual value to the expected value
If actual_value = expected_value Then
Reporter.ReportEvent micPass, "VerifyProperty Succeeded", "The " & prop_name & " expected value: " & expected_value & " matches the actual value"
VerifyProperty = True
Else
Reporter.ReportEvent micFail, "VerifyProperty Failed", "The " & prop_name & " expected value: " & expected_value & " does not match the actual value: " & actual_value
VerifyProperty = False
End If
请问上面那个obj是怎么定义的,我一直没看明白!还有Reporter.ReportEvent micPass是什么意思? |
|