急求:使用LoadRunner录制脚本回放时,出现以下问题求大神帮忙,
出现问题:/*RequestwithGETmethodtoURL"http://127.0.0.1:1080/favicon.ico"failedduringrecord...
出现问题:/* Request with GET method to URL "http://127.0.0.1:1080/favicon.ico" failed during recording. Server response : 404*/,导致回放时检查点检查的时候失败
vuser_init()
{
web_url("WebTours",
"URL=http://127.0.0.1:1080/WebTours/",
"Resource=0",
"RecContentType=text/html",
"Referer=",
"Snapshot=t1.inf",
"Mode=HTML",
LAST);
web_url("config.xml",
"URL=http://bho.xl7.xunlei.com/platform/2.5.x.xxxx/config.xml",
"Resource=0",
"RecContentType=text/xml",
"Referer=",
"Snapshot=t2.inf",
"Mode=HTML",
LAST);
/* Request with GET method to URL "http://127.0.0.1:1080/favicon.ico" failed during recording. Server response : 404*/
lr_start_transaction("Login");
web_reg_find("Text=Welcome, <b>gr",
LAST);
lr_think_time(16);
web_submit_data("login.pl",
"Action=http://127.0.0.1:1080/WebTours/login.pl",
"Method=POST",
"RecContentType=text/html",
"Referer=http://127.0.0.1:1080/WebTours/nav.pl?in=home",
"Snapshot=t3.inf",
"Mode=HTML",
ITEMDATA,
"Name=userSession", "Value=118609.418307007zVAAQHVpQftVzzzHDzzAfpiDVHcf", ENDITEM,
"Name=username", "Value=gr", ENDITEM,
"Name=password", "Value=123456", ENDITEM,
"Name=JSFormSubmit", "Value=off", ENDITEM,
"Name=login.x", "Value=60", ENDITEM,
"Name=login.y", "Value=12", ENDITEM,
LAST);
lr_end_transaction("Login",LR_AUTO);
return 0;
} 展开
vuser_init()
{
web_url("WebTours",
"URL=http://127.0.0.1:1080/WebTours/",
"Resource=0",
"RecContentType=text/html",
"Referer=",
"Snapshot=t1.inf",
"Mode=HTML",
LAST);
web_url("config.xml",
"URL=http://bho.xl7.xunlei.com/platform/2.5.x.xxxx/config.xml",
"Resource=0",
"RecContentType=text/xml",
"Referer=",
"Snapshot=t2.inf",
"Mode=HTML",
LAST);
/* Request with GET method to URL "http://127.0.0.1:1080/favicon.ico" failed during recording. Server response : 404*/
lr_start_transaction("Login");
web_reg_find("Text=Welcome, <b>gr",
LAST);
lr_think_time(16);
web_submit_data("login.pl",
"Action=http://127.0.0.1:1080/WebTours/login.pl",
"Method=POST",
"RecContentType=text/html",
"Referer=http://127.0.0.1:1080/WebTours/nav.pl?in=home",
"Snapshot=t3.inf",
"Mode=HTML",
ITEMDATA,
"Name=userSession", "Value=118609.418307007zVAAQHVpQftVzzzHDzzAfpiDVHcf", ENDITEM,
"Name=username", "Value=gr", ENDITEM,
"Name=password", "Value=123456", ENDITEM,
"Name=JSFormSubmit", "Value=off", ENDITEM,
"Name=login.x", "Value=60", ENDITEM,
"Name=login.y", "Value=12", ENDITEM,
LAST);
lr_end_transaction("Login",LR_AUTO);
return 0;
} 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询