TA的每日心情 | 开心 2015-11-15 23:14 |
---|
签到天数: 1 天 连续签到: 1 天 [LV.1]测试小兵
|
概要:
某人在使用QTP执行录制好的脚本,
在执行过程中,报错"Performing this operation will stop the run or debug session"
执行了数次脚本以后停止报错,
G:\01.jpg
脚本内容:
某银行软件C端,
主要是"交易开始,默认不输入账户""输入密码1111"“输入金额50000”"交易转账""取消交易"的流程,
脚本循环设置了1 to 1000:
wait(6)
For i=1 to 1000
On error resume next
Dialog("Login").WinButton("Input Account Number").Click
wait(8)
Dialog("UserKey Panel").WinButton("1").Click
wait(2)
Dialog("UserKey Panel").WinButton("1").Click
wait(2)
Dialog("UserKey Panel").WinButton("1").Click
wait(2)
Dialog("UserKey Panel").WinButton("1").Click
wait(6)
Dialog("UserKey Panel").WinButton("Enter").Click
wait(2)
Dialog("UserKey Panel").WinButton("5").Click
wait(2)
Dialog("UserKey Panel").WinButton("0").Click
wait(2)
Dialog("UserKey Panel").WinButton("00").Click
wait(2)
Dialog("UserKey Panel").WinButton("Enter").Click
wait(8)
Dialog("Cash").WinButton("Exchange").Click
wait(8)
Dialog("UserKey Panel").WinButton("Cancel").Click
wait(8)
Dialog("Logout Dialog").WinButton("Logout").Click
wait(3)
next
出现报错,如图,以后我们点击Cancel会继续执行脚本,
点击YES会退出当前执行,提示测试结果,
想问一下,如何解决此BUG; |
|