测试脚本如下:
Dialog("Login").WinEdit("Agent Name:").Set "abcd" ' 输入代理机构名
Dialog("Login").WinEdit("Agent Name:").Type micTab ' tab键
Dialog("Login").WinEdit("assword:").SetSecure "4b2064a87631a31dafb46f08ac4dc70666b4f6ae" ' 输入登录密码
Dialog("Login").WinButton("OK").Click ' 确认登录
login
'@Description 输出消息登录成功
Public Function login
' TODO: add function body here
msgbox "登录成功",0,"aa"
End Function
场景恢复设置如下 :
Trigger Eventop-up window ;Pop-up window identification: 选择 window title 复选框 : aa
Recovery Operations:Keyboard or mouse operation
Post-Recovery Test Run Options:Repeat current step and continue
在File –〉settings中的Recovery中设置如下
添加上设置好的场景,选择激活方式:on every step