51Testing软件测试论坛
标题:
LR的WebTours重放老是失败,找不到检查点……
[打印本页]
作者:
yong_sun
时间:
2012-11-6 16:15
标题:
LR的WebTours重放老是失败,找不到检查点……
下边的代码怎么老是,找不到检查点
Action()
{
……
web_custom_request("home.html",
"URL=http://127.0.0.1:1080/WebTours/home.html",
"Method=GET",
"Resource=0",
"RecContentType=text/html",
"Referer=http://127.0.0.1:1080/WebTours/welcome.pl?signOff=true",
"Snapshot=t6.inf",
"Mode=HTTP",
LAST);
//Correlation comment - Do not change!Original value='8557109532.712839206fzDtAiipQVzzzzzHDDiAtpfDDf' Name ='CorrelationParameter_1'
web_set_max_html_param_len("1024");
web_reg_save_param_ex(
"ParamName=CorrelationParameter_1",
"LB=userSession value=",
"RB=>\n<form method",
"NotFound=error",
SEARCH_FILTERS,
"Scope=BODY",
"RequestUrl=*/nav.pl*",
LAST);
web_custom_request("nav.pl",
"URL=http://127.0.0.1:1080/WebTours/nav.pl?in=home",
"Method=GET",
"Resource=0",
"RecContentType=text/html",
"Referer=http://127.0.0.1:1080/WebTours/welcome.pl?signOff=true",
"Snapshot=t7.inf",
"Mode=HTTP",
LAST);
web_add_auto_header("Accept",
"*/*");
web_custom_request("JSFormSubmit.js",
"URL=http://127.0.0.1:1080/WebTours/JSFormSubmit.js",
"Method=GET",
"Resource=1",
"RecContentType=application/x-javascript",
"Referer=http://127.0.0.1:1080/WebTours/nav.pl?in=home",
"Snapshot=t8.inf",
LAST);
/* Request with GET method to URL "
http://127.0.0.1:1080/favicon.ico
" failed during recording. Server response : 404*/
web_add_auto_header("Accept",
"application/x-shockwave-flash, image/gif, image/jpeg, image/pjpeg, image/pjpeg, application/x-ms-application, application/x-ms-xbap, application/vnd.ms-xpsdocument, application/xaml+xml, application/vnd.ms-excel, application/vnd.ms-powerpoint, application/msword, */*");
web_custom_request("login.pl",
"URL=http://127.0.0.1:1080/WebTours/login.pl",
"Method=POST",
"Resource=0",
"RecContentType=text/html",
"Referer=http://127.0.0.1:1080/WebTours/nav.pl?in=home",
"Snapshot=t9.inf",
"Mode=HTTP",
"Body=userSession={CorrelationParameter_1}&username=abc&password=abc&JSFormSubmit=on&login.x=67&login.y=7",
LAST);
web_custom_request("nav.pl_2",
"URL=http://127.0.0.1:1080/WebTours/nav.pl?page=menu&in=home",
"Method=GET",
"Resource=0",
"RecContentType=text/html",
"Referer=http://127.0.0.1:1080/WebTours/login.pl",
"Snapshot=t10.inf",
"Mode=HTTP",
LAST);
web_reg_find("Text=Welcome, <b>abc",
"Fail=NotFound",
LAST);
web_custom_request("login.pl_2",
"URL=http://127.0.0.1:1080/WebTours/login.pl?intro=true",
"Method=GET",
"TargetFrame=_SELF",
"Resource=0",
"RecContentType=text/html",
"Referer=http://127.0.0.1:1080/WebTours/login.pl",
"Snapshot=t11.inf",
"Mode=HTTP",
"Body=",
LAST);
作者:
yong_sun
时间:
2012-11-6 16:16
Action.c(146): Continuing after Error -26366: "Text=Welcome, <b>abc" not found for web_reg_find [MsgId: MERR-26366]
作者:
yong_sun
时间:
2012-11-6 16:26
回放快照,页面没有重新加载啊……还是说根本就没有登录成功?
作者:
thirfing
时间:
2012-11-7 10:57
"Continuing after Error ",前面有错误。关联成功否?
作者:
yubing
时间:
2012-11-9 15:22
用什么协议录制的,怎么都是web_custom_request函数呢
欢迎光临 51Testing软件测试论坛 (http://bbs.51testing.com/)
Powered by Discuz! X3.2