51Testing软件测试论坛

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

QQ登录

只需一步,快速开始

微信登录,快人一步

手机号码,快捷登录

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

[原创] 运行时每次遇到检查点就直接跳到Vuser_end

[复制链接]

该用户从未签到

跳转到指定楼层
1#
发表于 2011-5-18 14:46:14 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
我在脚本中添加了文本检查点,但是运行时每次遇到检查点就直接跳到Vuser_end,导致找不到文本,请问是什么问题?
涉及代码如下:
web_find("web_find",
                "RightOf=",
                "LeftOf=",
                "What=超级用户",
                LAST);


   web_submit_data("login.do_2",
                "Action=http://192.168.10.22:8022/dc/login/login.do?action=submit",
                "Method=POST",
                "RecContentType=text/html",
                "Referer=http://192.168.10.22:8022/dc/login/login.do?action=entry",
                "Snapshot=t4.inf",
                "Mode=HTML",
                ITEMDATA,
                "Name=userCode", "Value={UserCode}", ENDITEM,
                "Name=password", "Value={Password}", ENDITEM,
                EXTRARES,
                "Url=../images/sg/orange/banner_p.gif", "Referer=http://192.168.10.22:8022/dc/login/login.do?action=topFrame", ENDITEM,
                "Url=../images/sg/orange/client/banner.jpg", "Referer=http://192.168.10.22:8022/dc/login/login.do?action=topFrame", ENDITEM,
                "Url=../images/sg/orange/message.gif", "Referer=http://192.168.10.22:8022/dc/login/login.do?action=topFrame", ENDITEM,
                "Url=../images/sg/orange/notice.gif", "Referer=http://192.168.10.22:8022/dc/login/login.do?action=topFrame", ENDITEM,
                "Url=../images/sg/orange/time.gif", "Referer=http://192.168.10.22:8022/dc/login/login.do?action=topFrame", ENDITEM,
                "Url=../images/sg/orange/left_bg.gif", "Referer=http://192.168.10.22:8022/dc/login/login.do?action=leftFrame", ENDITEM,
                "Url=../images/sg/orange/welcome.jpg", "Referer=http://192.168.10.22:8022/dc/login/login.do?action=mainFrame", ENDITEM,
                "Url=../images/sg/orange/foot_p.gif", "Referer=http://192.168.10.22:8022/dc/login/login.do?action=footFrame", ENDITEM,
                "Url=../images/sg/orange/foot.gif", "Referer=http://192.168.10.22:8022/dc/login/login.do?action=footFrame", ENDITEM,
                "Url=../images/sg/orange/admin.gif", "Referer=http://192.168.10.22:8022/dc/login/login.do?action=topFrame", ENDITEM,
                "Url=../images/sg/console.gif", "Referer=http://192.168.10.22:8022/dc/login/login.do?action=topFrame", ENDITEM,
                "Url=../images/sg/orange/tree/file.gif", "Referer=http://192.168.10.22:8022/dc/login/login.do?action=leftFrame", ENDITEM,
                "Url=../images/sg/orange/tree/close.gif", "Referer=http://192.168.10.22:8022/dc/login/login.do?action=leftFrame", ENDITEM,
                "Url=../images/sg/orange/tree/open.gif", "Referer=http://192.168.10.22:8022/dc/login/login.do?action=leftFrame", ENDITEM,
                "Url=../images/sg/orange/tree/web.gif", "Referer=http://192.168.10.22:8022/dc/login/login.do?action=leftFrame", ENDITEM,
                "Url=../images/sg/orange/tree/T.gif", "Referer=http://192.168.10.22:8022/dc/login/login.do?action=leftFrame", ENDITEM,
                "Url=../images/sg/orange/tree/L.gif", "Referer=http://192.168.10.22:8022/dc/login/login.do?action=leftFrame", ENDITEM,
                "Url=../images/sg/orange/tree/Lplus.gif", "Referer=http://192.168.10.22:8022/dc/login/login.do?action=leftFrame", ENDITEM,
                "Url=../images/sg/orange/tree/Tplus.gif", "Referer=http://192.168.10.22:8022/dc/login/login.do?action=leftFrame", ENDITEM,
                "Url=../images/sg/orange/tree/I.gif", "Referer=http://192.168.10.22:8022/dc/login/login.do?action=leftFrame", ENDITEM,
                "Url=../images/sg/orange/tree/Tminus.gif", "Referer=http://192.168.10.22:8022/dc/login/login.do?action=leftFrame", ENDITEM,
                "Url=../images/sg/orange/tree/Lminus.gif", "Referer=http://192.168.10.22:8022/dc/login/login.do?action=leftFrame", ENDITEM,
                "Url=../images/sg/orange/tree/empty.gif", "Referer=http://192.168.10.22:8022/dc/login/login.do?action=leftFrame", ENDITEM,
                LAST);
分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
收藏收藏
回复

使用道具 举报

该用户从未签到

2#
 楼主| 发表于 2011-5-18 17:23:49 | 只看该作者
现在我去掉参数化之后,就运行顺利通过了;当我再次添加参数化,就会再次出现上面的错误。请问是怎么回事?难道参数化与检查点不能同时出现吗?不可能吧?请大侠指点一下,谢了!
回复 支持 反对

使用道具 举报

  • TA的每日心情
    擦汗
    2018-5-2 16:08
  • 签到天数: 4 天

    连续签到: 1 天

    [LV.2]测试排长

    3#
    发表于 2011-5-20 12:42:09 | 只看该作者
    建议你使用web_reg_find   这个查找  不要应用web_find      前面的是放在脚本的最开始位置是一个注册函数
       第二个是放在脚本当中的 不是脚本的头部    你尝试修改下吧  可能是这个原因
      参数化 和find是互不影响的
    回复 支持 反对

    使用道具 举报

    本版积分规则

    关闭

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

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

    GMT+8, 2024-9-20 12:29 , Processed in 0.080921 second(s), 28 queries .

    Powered by Discuz! X3.2

    © 2001-2024 Comsenz Inc.

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