QTP自带Flight程序登录出错
代码如下:Public Function LoginFlight (C:\Program Files\Mercury Interactive\QuickTest Professional\samples\flight\app)
do
If Dialog("Login").Exist(2) = False Then
SystemUtil.Run "C:\Program Files\Mercury Interactive\QuickTest Professional\samples\flight\app\flight4a.exe"
Else
Dialog("Login").WinEdit("Agent Name:").Set "admin"
Dialog("Login").WinEdit("Password:").Set "mercury"
Dialog("Login").WinButton("OK").Click
Exit do
End If
Loop While True
End Function
第一行代码就出错,说缺少“)”。不明白是怎么回事呢 LoginFlight 函数不用带参数,没意义
页:
[1]