设置检查点,总是出现Error -27195问题
Error -27195: "login" failed. 0 occurrence(s) of "欢迎您" found (RightOf="", LeftOf="")web_find highest severity level was "ERROR"
在运行脚本的时候总是出现上面的错误,这是为什么呢?
我设置检查点,哪出了问题呢 你在什么地方用了检查点,是否使用了参数化?查看左右边界是否错误
另,用web_reg_find再试试
[ 本帖最后由 iori 于 2008-6-16 16:09 编辑 ] 是不是你吧left和right理解错了。
我刚开始使用这个的时候,左右理解反了。
right of =要检查的对象左边的值(即它在谁的右边) 左右边界不设置会有影响吗 左右边界必须设置,要不然WEB_FIND怎么知道你要找的内容啊 我也遇到同杨的错误:
Action.c(51): Error -27195: "web_find" failed. 0 occurrence(s) of "test001" found (RightOf=" 欢迎您", LeftOf="6月18日")
Action.c(51): web_find highest severity level was "ERROR"
我想知道这里设置的左右边界是页面上显示的左右的值,还是源文件中左右的值?如我的页面上显示的是“欢迎您 test0016月18日“,该页面的源文件是<p>欢迎您 <span class="welcomeName">test001</span> <br />6月18日下午3:18 </p>,那我的左右边界该怎么设?
我理解的是设源文件中的,可是也报同样的错误。。。。。
web_find 与web_reg_find的区别??
我在用LR自带的订票系统设置TEXT检查点时也出现这个问题,请帮忙解决,谢谢。。出错提示如下:Action.c(12): Error -27195: "signButton" failed. 0 occurrence(s) of "sign up now" found (RightOf="", LeftOf="to get access to")
Action.c(12): web_find highest severity level was "ERROR"
[ 本帖最后由 lytal 于 2009-7-12 10:52 编辑 ]
附上脚本。。。
Action(){
web_url("WebTours",
"URL=http://127.0.0.1:1080/WebTours/",
"Resource=0",
"RecContentType=text/html",
"Referer=",
"Snapshot=t1.inf",
"Mode=HTML",
LAST);
web_find("signButton",
"LeftOf=to get access to",
"What=sign up now",
LAST);
web_image_check("web_image_check",
"Src=images/mer_login.gif",
LAST);
web_link("sign up now",
"Text=sign up now",
"Snapshot=t2.inf",
LAST);
lr_start_transaction("startLogin");
web_submit_form("login.pl",
"Snapshot=t3.inf",
ITEMDATA,
"Name=username", "Value={username}", ENDITEM,
"Name=password", "Value={password}", ENDITEM,
"Name=passwordConfirm", "Value=21", ENDITEM,
"Name=firstName", "Value=21", ENDITEM,
"Name=lastName", "Value=21", ENDITEM,
"Name=address1", "Value=21", ENDITEM,
"Name=address2", "Value=21", ENDITEM,
"Name=register.x", "Value=65", ENDITEM,
"Name=register.y", "Value=5", ENDITEM,
LAST);
lr_end_transaction("startLogin", LR_AUTO);
return 0;
}
[ 本帖最后由 lytal 于 2009-7-12 10:53 编辑 ] 看下你页面的展示状况,我也遇到你一样的问题,现在解决啦。web_find("web_find_welcome",
"RightOf= ",
"LeftOf=,",
"What=Welcome",
LAST);我的页面展示是 Welcome,aa所以在Welcome的左边显示的是空格,右边显示的是, 就那WebTours来说吧,登陆成功后检查“jojo”用户,"RightOf=Welcome,","LeftOf=, to the Web Tours ", jojo在Welcome的右边,在“, to the Web Tours”的左边 这样就ok了,如果还有错就检查代码的问题 请问我检查点确实插入的没错,为啥还是一直报错,求解
附上脚本
lr_start_transaction("login");
lr_rendezvous("jihedian");
web_submit_data("login.pl",
"Action=http://127.0.0.1:2080/WebTours/login.pl",
"Method=POST",
"TargetFrame=",
"RecContentType=text/html",
"Referer=http://127.0.0.1:2080/WebTours/nav.pl?in=home",
"Snapshot=t2.inf",
"Mode=HTML",
ITEMDATA,
"Name=userSession", "Value=125664.058404212ztzDitfpAAtVzzzHDiHiDpAHAAcf", ENDITEM,
"Name=username", "Value={username}", ENDITEM,
"Name=password", "Value={password}", ENDITEM,
"Name=login.x", "Value=41", ENDITEM,
"Name=login.y", "Value=8", ENDITEM,
"Name=JSFormSubmit", "Value=off", ENDITEM,
LAST);
web_url("Search Flights Button",
"URL=http://127.0.0.1:2080/WebTours/welcome.pl?page=search",
"TargetFrame=body",
"Resource=0",
"RecContentType=text/html",
"Referer=http://127.0.0.1:2080/WebTours/nav.pl?page=menu&in=home",
"Snapshot=t3.inf",
"Mode=HTML",
LAST);
web_find("web_find",
"RightOf=Welcome,",
"LeftOf=,to the Web",
"What=jojo",
LAST);
lr_end_transaction("login",LR_AUTO);
return 0;
}
login.c(36): Error -27195: "web_find" failed. 0 occurrence(s) of "jojo" found (RightOf="Welcome,", LeftOf=",to the Web")
login.c(36): web_find highest severity level was "ERROR"
页:
[1]