51Testing软件测试论坛
标题:
设置检查点,总是出现Error -27195问题
[打印本页]
作者:
woshiwuying
时间:
2008-6-16 15:14
标题:
设置检查点,总是出现Error -27195问题
Error -27195: "login" failed. 0 occurrence(s) of "欢迎您" found (RightOf="", LeftOf="") [MsgId: MERR-27195]
web_find highest severity level was "ERROR" [MsgId: MMSG-26391]
在运行脚本的时候总是出现上面的错误,这是为什么呢?
我设置检查点,哪出了问题呢
作者:
iori
时间:
2008-6-16 16:04
你在什么地方用了检查点,是否使用了参数化?查看左右边界是否错误
另,用web_reg_find再试试
[
本帖最后由 iori 于 2008-6-16 16:09 编辑
]
作者:
sally_0817
时间:
2008-6-16 16:14
是不是你吧left和right理解错了。
我刚开始使用这个的时候,左右理解反了。
right of =要检查的对象左边的值(即它在谁的右边)
作者:
woshiwuying
时间:
2008-6-17 09:56
左右边界不设置会有影响吗
作者:
huruihai
时间:
2008-6-18 12:44
左右边界必须设置,要不然WEB_FIND怎么知道你要找的内容啊
作者:
jieran805
时间:
2009-6-18 15:51
我也遇到同杨的错误:
Action.c(51): Error -27195: "web_find" failed. 0 occurrence(s) of "test001" found (RightOf=" 欢迎您", LeftOf="6月18日") [MsgId: MERR-27195]
Action.c(51): web_find highest severity level was "ERROR" [MsgId: MMSG-26391]
我想知道这里设置的左右边界是页面上显示的左右的值,还是源文件中左右的值?如我的页面上显示的是“欢迎您 test001 6月18日“,该页面的源文件是<p>欢迎您 <span class="welcomeName">test001</span> <br />6月18日下午3:18 </p>,那我的左右边界该怎么设?
我理解的是设源文件中的,可是也报同样的错误。。。。。
作者:
lytal
时间:
2009-7-12 10:30
标题:
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") [MsgId: MERR-27195]
Action.c(12): web_find highest severity level was "ERROR" [MsgId: MMSG-26391]
[
本帖最后由 lytal 于 2009-7-12 10:52 编辑
]
作者:
lytal
时间:
2009-7-12 10:36
标题:
附上脚本。。。
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 编辑
]
作者:
PjiL
时间:
2011-7-18 11:30
看下你页面的展示状况,我也遇到你一样的问题,现在解决啦。web_find("web_find_welcome",
"RightOf= ",
"LeftOf=,",
"What=Welcome",
LAST);我的页面展示是 Welcome,aa所以在Welcome的左边显示的是空格,右边显示的是,
作者:
femir
时间:
2013-10-9 11:10
就那WebTours来说吧,登陆成功后检查“jojo”用户,"RightOf=Welcome,","LeftOf=, to the Web Tours ", jojo在Welcome的右边,在“, to the Web Tours”的左边 这样就ok了,如果还有错就检查代码的问题
作者:
小村姑
时间:
2019-3-1 11:04
请问我检查点确实插入的没错,为啥还是一直报错,求解
附上脚本
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") [MsgId: MERR-27195]
login.c(36): web_find highest severity level was "ERROR" [MsgId: MMSG-26391]
欢迎光临 51Testing软件测试论坛 (http://bbs.51testing.com/)
Powered by Discuz! X3.2