标题: 用Datapool莫名其妙的问题 [打印本页] 作者: 生如火花 时间: 2005-4-1 09:17 标题: 用Datapool莫名其妙的问题 用Datapool实现验证多个用户登陆是否成功。
8个用户。。。第5个就没从Datapool里读username了。。。。一头雾水。。。
脚本如下
'$Include: "E:\Program Files\Rational\Rational Test\sqabas32\sqautil.sbh"
Sub Main
Dim Result As Integer
Dim DP As Long
Dim Dp_Result As Long
Dim username As String
Dim password As String
dim i as integer
StartBrowser "http://html", "WindowTag=WEBBrowser"
'等待5秒钟
i=1
while i<9
' DelayFor (5000)
'检查页面是否装载成功
Result = WindowVP (Exists, "Caption=系统平台 - Microsoft Internet Explorer", "VP=Window Existence;Wait=2,5")
if Result<>1 then
sqaconsolewrite "页面加载失败!!"
else
sqaconsolewrite "页面加载成功!!!"