51Testing软件测试论坛

标题: Exist(0)为什么还是要等五秒才返回 [打印本页]

作者: dcyan    时间: 2008-9-13 15:04
标题: Exist(0)为什么还是要等五秒才返回
mercuryTimers("temp").Start
If Browser("PEM").Exist(0) Then
        msgbox "exist"
End If
mercuryTimers("temp").Stop
reporter.ReportEvent micDone, "wait time: " & mercuryTimers("temp").ElapsedTime, ""

我想让QTP检测对象 Browser("PEM") 是否存在,但是调试的时候发现Exist(0)不会立即返回,总是要等五秒(对象不存在),然后返回。

补充: 我已经把“samrt identification” 禁用了, 还有在test的setting里设置了 “Object synchronization timeout”为0秒。QTP版本为9.5
作者: zhuyuancan    时间: 2008-9-13 21:43
当对象不存在时   判断对象是否存在耗时是比较长




欢迎光临 51Testing软件测试论坛 (http://bbs.51testing.com/) Powered by Discuz! X3.2