|
8#
楼主 |
发表于 2009-1-5 18:23:49
|
只看该作者
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
我在论坛里找到这个,但是我输入了test2(我的项目名字就是test2)后再输入“.”后面没有出现快捷字段呢?是不是输入错误?还是怎么回事?还有 这个prop_name是什么的名字?如果我想对网页插入checkpoint和图片插入checkpoint怎么处理呢? |
|