|
1.不知道你把该字符串输出到哪里,如果在记事本或word里,可以用逐项查找的方法来验证,使用windowVP验证
2.如果能够抓取字符串的话,可以用clipboardVP抓取需要验证的进行验证
3.下面我是用Instr函数实现的
Sub main
Dim undertest as String
Dim position1 as Integer
Dim position2 as Integer
'需要验证的两行字符
undertest = "hello" & chr(10) & "word"
msgbox undertest
position1=InStr(undertest,"hello")
position2=InStr(undertest,"wod")
If position1 AND position2 then
SQALogMessage sqaPass, "找到字符串", ""
msgbox "success"
Else
SQALogMessage sqaFail, "未找到字符串", ""
msgbox "fail"
End If
End Sub
如果以上都不行,那我就不知道了,不好意思 |
|