lihailing 发表于 2011-5-18 14:46:14

运行时每次遇到检查点就直接跳到Vuser_end

我在脚本中添加了文本检查点,但是运行时每次遇到检查点就直接跳到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);

lihailing 发表于 2011-5-18 17:23:49

现在我去掉参数化之后,就运行顺利通过了;当我再次添加参数化,就会再次出现上面的错误。请问是怎么回事?难道参数化与检查点不能同时出现吗?不可能吧?请大侠指点一下,谢了!

wanghuiwan 发表于 2011-5-20 12:42:09

建议你使用web_reg_find   这个查找不要应用web_find      前面的是放在脚本的最开始位置是一个注册函数
   第二个是放在脚本当中的 不是脚本的头部    你尝试修改下吧可能是这个原因
参数化 和find是互不影响的
页: [1]
查看完整版本: 运行时每次遇到检查点就直接跳到Vuser_end