|
Dim TestCheck
Dim Tests
Dim TestRun (5)
FindText = "SQLException"
TestRun(0) = "java.sql.SQLException: JZ0C0: Connection is already closed. "
TestRun(1) = "<html><head>"
TestRun(2) = "Filter command SQLException"
TestRun(3) = "Foxed, Stumped and stuck"
TestRun(4) = "<body>"
TestRun(5) = "Anyone?"
TestCheck = Filter(TestRun, FindText, true)
msgbox TestCheck(0)
msgbox TestCheck(1)
Tests=UBound(TestCheck,1)
msgbox Tests
If Tests Then
Reporter.ReportEvent 1, "页面状态", "页面'" & TestCheck(0) & "'中存在 " & FindText & " 无法访问."
else
Reporter.ReportEvent 3, "页面状态", "正常, " & FindText & " 字符串."
End If
我改了下脚本,然后运行是Tests为1,走 Reporter.ReportEvent 1, "页面状态", "页面'" & TestCheck(0) & "'中存在 " & FindText & " 无法访问." 脚本,但是结果出来是错误的 |
|