loadrunner:回放报错
各位大神些,初学loadrunner,就录制了一个LR自带的网站登录和退出。录制时没问题,但是回放就会报错(报an error has occurred),后面换成录制百度也报错,哪位知道怎么解决呢?多谢了。代码如下:
Action()
{
/*Correlation comment - Do not change!Original value='117036.027055488zAcAAtApztVzzzzHDzVcApctDif' Name ='userSession' Type ='ResponseBased'*/
web_reg_save_param_regexp(
"ParamName=userSession",
"RegExp=name=\"userSession\"\\ value=\"(.*?)\"/>\\\n<table\\ border",
SEARCH_FILTERS,
"Scope=Body",
"IgnoreRedirections=No",
"RequestUrl=*/nav.pl*",
LAST);
web_url("index.htm",
"URL=http://localhost:1080/WebTours/index.htm",
"Resource=0",
"RecContentType=text/html",
"Referer=",
"Snapshot=t1.inf",
"Mode=HTML",
LAST);
lr_think_time(37);
lr_start_transaction("login");
web_submit_data("login.pl",
"Action=http://localhost:1080/cgi-bin/login.pl",
"Method=POST",
"RecContentType=text/html",
"Referer=http://localhost:1080/cgi-bin/nav.pl?in=home",
"Snapshot=t2.inf",
"Mode=HTML",
ITEMDATA,
"Name=userSession", "Value={userSession}", ENDITEM,
"Name=username", "Value=jojo", ENDITEM,
"Name=password", "Value=bean", ENDITEM,
"Name=JSFormSubmit", "Value=on", ENDITEM,
"Name=login.x", "Value=35", ENDITEM,
"Name=login.y", "Value=6", ENDITEM,
LAST);
lr_end_transaction("login",LR_AUTO);
lr_think_time(22);
lr_start_transaction("logout");
web_image("SignOff Button",
"Alt=SignOff Button",
"Snapshot=t3.inf",
LAST);
lr_end_transaction("logout",LR_AUTO);
return 0;
}
页:
[1]