51Testing软件测试论坛

 找回密码
 (注-册)加入51Testing

QQ登录

只需一步,快速开始

微信登录,快人一步

查看: 2055|回复: 2
打印 上一主题 下一主题

[求助] QTP“Performing this operation will stop the run or debug session”

[复制链接]
  • TA的每日心情
    开心
    2015-11-15 23:14
  • 签到天数: 1 天

    连续签到: 1 天

    [LV.1]测试小兵

    跳转到指定楼层
    1#
    发表于 2013-3-29 16:00:27 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
    概要:
    某人在使用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;
    分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
    收藏收藏
    回复

    使用道具 举报

    该用户从未签到

    2#
    发表于 2013-3-29 20:31:32 | 只看该作者
    不是很明白的你的意思是什么,可以使用on error resume next 来处理吧
    回复 支持 反对

    使用道具 举报

  • TA的每日心情
    开心
    2015-11-15 23:14
  • 签到天数: 1 天

    连续签到: 1 天

    [LV.1]测试小兵

    3#
     楼主| 发表于 2013-4-2 16:36:26 | 只看该作者
    回复 2# littlebig


        不行,on error resume next的用法仅仅限于运行过程中的QTP执行错误或者执行过程中不响应、找不到合适处理的情况,提示"Performing this operation will stop the run or debug session"是QTP自己报错导致的.目前仍然没有合适的处理办法.
    回复 支持 反对

    使用道具 举报

    本版积分规则

    关闭

    站长推荐上一条 /1 下一条

    小黑屋|手机版|Archiver|51Testing软件测试网 ( 沪ICP备05003035号 关于我们

    GMT+8, 2024-4-25 23:22 , Processed in 0.087238 second(s), 27 queries .

    Powered by Discuz! X3.2

    © 2001-2024 Comsenz Inc.

    快速回复 返回顶部 返回列表