51Testing软件测试论坛
标题:
loadrunner 错误 -35061: 找不到请求的参数“CorrelationParameter_1”的匹配项。
[打印本页]
作者:
风魔夜
时间:
2018-10-25 15:17
标题:
loadrunner 错误 -35061: 找不到请求的参数“CorrelationParameter_1”的匹配项。
错误 -35061: 找不到请求的参数“CorrelationParameter_1”的匹配项。检查请求的边界是否存在于响应数据中。
作者:
风魔夜
时间:
2018-10-25 15:19
报错内容
作者:
风魔夜
时间:
2018-10-25 15:20
Action()
{
web_url("WebTours",
"URL=http://localhost:1080/WebTours/",
"Resource=0",
"RecContentType=text/html",
"Referer=",
"Mode=HTTP",
LAST);
web_url("header.html",
"URL=http://localhost:1080/WebTours/header.html",
"Resource=0",
"RecContentType=text/html",
"Referer=http://localhost:1080/WebTours/",
"Mode=HTTP",
LAST);
web_url("welcome.pl",
"URL=http://localhost:1080/WebTours/welcome.pl?signOff=true",
"Resource=0",
"RecContentType=text/html",
"Referer=http://localhost:1080/WebTours/",
"Snapshot=t1.inf",
"Mode=HTTP",
LAST);
web_set_max_html_param_len("1024000");
web_concurrent_start(NULL);
web_url("home.html",
"URL=http://localhost:1080/WebTours/home.html",
"Resource=0",
"RecContentType=text/html",
"Referer=http://localhost:1080/WebTours/welcome.pl?signOff=true",
"Mode=HTTP",
LAST);
//Correlation comment - Do not change!Original value='124783.274767112ztVifDQpzQfiDDDDDifVVpcDiVHf' Name ='CorrelationParameter_1'
web_reg_save_param_ex(
"ParamName=CorrelationParameter_1",
"LB=name=userSession value=",
"RB=>",
SEARCH_FILTERS,
"Scope=Body",
"RequestUrl=*/nav.pl*",
LAST);
web_url("nav.pl",
"URL=http://localhost:1080/WebTours/nav.pl?in=home",
"Resource=0",
"RecContentType=text/html",
"Referer=http://localhost:1080/WebTours/welcome.pl?signOff=true",
"Snapshot=t2.inf",
"Mode=HTTP",
LAST);
web_concurrent_end(NULL);
lr_think_time(7);
web_submit_data("login.pl",
"Action=http://localhost:1080/WebTours/login.pl",
"Method=POST",
"RecContentType=text/html",
"Referer=http://localhost:1080/WebTours/nav.pl?in=home",
"Snapshot=t3.inf",
"Mode=HTTP",
ITEMDATA,
"Name=userSession", "Value={CorrelationParameter_1}", ENDITEM,
"Name=username", "Value=jojo", ENDITEM,
"Name=password", "Value=bean", ENDITEM,
"Name=login.x", "Value=40", ENDITEM,
"Name=login.y", "Value=3", ENDITEM,
"Name=login", "Value=Login", ENDITEM,
"Name=JSFormSubmit", "Value=off", ENDITEM,
LAST);
web_url("nav.pl_2",
"URL=http://localhost:1080/WebTours/nav.pl?page=menu&in=home",
"Resource=0",
"RecContentType=text/html",
"Referer=http://localhost:1080/WebTours/login.pl",
"Snapshot=t4.inf",
"Mode=HTTP",
LAST);
web_url("Search Flights Button",
"URL=http://localhost:1080/WebTours/welcome.pl?page=search",
"Resource=0",
"RecContentType=text/html",
"Referer=http://localhost:1080/WebTours/nav.pl?page=menu&in=home",
"Snapshot=t5.inf",
"Mode=HTTP",
LAST);
web_concurrent_start(NULL);
web_url("nav.pl_3",
"URL=http://localhost:1080/WebTours/nav.pl?page=menu&in=flights",
"Resource=0",
"RecContentType=text/html",
"Referer=http://localhost:1080/WebTours/welcome.pl?page=search",
"Snapshot=t6.inf",
"Mode=HTTP",
LAST);
web_url("reservations.pl",
"URL=http://localhost:1080/WebTours/reservations.pl?page=welcome",
"Resource=0",
"RecContentType=text/html",
"Referer=http://localhost:1080/WebTours/welcome.pl?page=search",
"Snapshot=t7.inf",
"Mode=HTTP",
LAST);
web_concurrent_end(NULL);
web_concurrent_start(NULL);
web_url("FormDateUpdate.class",
"URL=http://localhost:1080/WebTours/FormDateUpdate.class",
"Resource=1",
"RecContentType=*/*",
"Referer=http://localhost:1080/WebTours/reservations.pl?page=welcome",
"Snapshot=t8.inf",
LAST);
web_url("FormDateUpdate.class_2",
"URL=http://localhost:1080/WebTours/FormDateUpdate.class",
"Resource=1",
"RecContentType=*/*",
"Referer=http://localhost:1080/WebTours/reservations.pl?page=welcome",
"Snapshot=t9.inf",
LAST);
web_concurrent_end(NULL);
lr_think_time(4);
web_submit_data("reservations.pl_2",
"Action=http://localhost:1080/WebTours/reservations.pl",
"Method=POST",
"RecContentType=text/html",
"Referer=http://localhost:1080/WebTours/reservations.pl?page=welcome",
"Snapshot=t10.inf",
"Mode=HTTP",
ITEMDATA,
"Name=advanceDiscount", "Value=0", ENDITEM,
"Name=depart", "Value=Denver", ENDITEM,
"Name=departDate", "Value=10/26/2018", ENDITEM,
"Name=arrive", "Value=Denver", ENDITEM,
"Name=returnDate", "Value=10/27/2018", ENDITEM,
"Name=numPassengers", "Value=1", ENDITEM,
"Name=seatPref", "Value=None", ENDITEM,
"Name=seatType", "Value=Business", ENDITEM,
"Name=findFlights.x", "Value=60", ENDITEM,
"Name=findFlights.y", "Value=4", ENDITEM,
"Name=.cgifields", "Value=roundtrip", ENDITEM,
"Name=.cgifields", "Value=seatType", ENDITEM,
"Name=.cgifields", "Value=seatPref", ENDITEM,
LAST);
web_submit_data("reservations.pl_3",
"Action=http://localhost:1080/WebTours/reservations.pl",
"Method=POST",
"RecContentType=text/html",
"Referer=http://localhost:1080/WebTours/reservations.pl",
"Snapshot=t11.inf",
"Mode=HTTP",
ITEMDATA,
"Name=outboundFlight", "Value=001;0;10/26/2018", ENDITEM,
"Name=numPassengers", "Value=1", ENDITEM,
"Name=advanceDiscount", "Value=0", ENDITEM,
"Name=seatType", "Value=Business", ENDITEM,
"Name=seatPref", "Value=None", ENDITEM,
"Name=reserveFlights.x", "Value=45", ENDITEM,
"Name=reserveFlights.y", "Value=13", ENDITEM,
LAST);
web_submit_data("reservations.pl_4",
"Action=http://localhost:1080/WebTours/reservations.pl",
"Method=POST",
"RecContentType=text/html",
"Referer=http://localhost:1080/WebTours/reservations.pl",
"Snapshot=t12.inf",
"Mode=HTTP",
ITEMDATA,
"Name=firstName", "Value=Joseph", ENDITEM,
"Name=lastName", "Value=Marshall", ENDITEM,
"Name=address1", "Value=234 Willow Drive", ENDITEM,
"Name=address2", "Value=San Jose/CA/94085", ENDITEM,
"Name=pass1", "Value=Joseph Marshall", ENDITEM,
"Name=creditCard", "Value=", ENDITEM,
"Name=expDate", "Value=", ENDITEM,
"Name=oldCCOption", "Value=", ENDITEM,
"Name=numPassengers", "Value=1", ENDITEM,
"Name=seatType", "Value=Business", ENDITEM,
"Name=seatPref", "Value=None", ENDITEM,
"Name=outboundFlight", "Value=001;0;10/26/2018", ENDITEM,
"Name=advanceDiscount", "Value=0", ENDITEM,
"Name=returnFlight", "Value=", ENDITEM,
"Name=JSFormSubmit", "Value=off", ENDITEM,
"Name=buyFlights.x", "Value=37", ENDITEM,
"Name=buyFlights.y", "Value=2", ENDITEM,
"Name=.cgifields", "Value=saveCC", ENDITEM,
LAST);
web_url("Itinerary Button",
"URL=http://localhost:1080/WebTours/welcome.pl?page=itinerary",
"Resource=0",
"RecContentType=text/html",
"Referer=http://localhost:1080/WebTours/nav.pl?page=menu&in=flights",
"Snapshot=t13.inf",
"Mode=HTTP",
LAST);
web_concurrent_start(NULL);
web_url("itinerary.pl",
"URL=http://localhost:1080/WebTours/itinerary.pl",
"Resource=0",
"RecContentType=text/html",
"Referer=http://localhost:1080/WebTours/welcome.pl?page=itinerary",
"Snapshot=t14.inf",
"Mode=HTTP",
LAST);
web_url("nav.pl_4",
"URL=http://localhost:1080/WebTours/nav.pl?page=menu&in=itinerary",
"Resource=0",
"RecContentType=text/html",
"Referer=http://localhost:1080/WebTours/welcome.pl?page=itinerary",
"Snapshot=t15.inf",
"Mode=HTTP",
LAST);
web_concurrent_end(NULL);
return 0;
}
作者:
风魔夜
时间:
2018-10-25 15:21
web_set_max_html_param_len("1024000");
web_concurrent_start(NULL);
web_url("home.html",
"URL=http://localhost:1080/WebTours/home.html",
"Resource=0",
"RecContentType=text/html",
"Referer=http://localhost:1080/WebTours/welcome.pl?signOff=true",
"Mode=HTTP",
LAST);
//Correlation comment - Do not change!Original value='124783.274767112ztVifDQpzQfiDDDDDifVVpcDiVHf' Name ='CorrelationParameter_1'
web_reg_save_param_ex(
"ParamName=CorrelationParameter_1",
"LB=name=userSession value=",
"RB=>",
SEARCH_FILTERS,
"Scope=Body",
"RequestUrl=*/nav.pl*",
LAST);
web_url("nav.pl",
"URL=http://localhost:1080/WebTours/nav.pl?in=home",
"Resource=0",
"RecContentType=text/html",
"Referer=http://localhost:1080/WebTours/welcome.pl?signOff=true",
"Snapshot=t2.inf",
"Mode=HTTP",
LAST);
web_concurrent_end(NULL);
lr_think_time(7);
web_submit_data("login.pl",
"Action=http://localhost:1080/WebTours/login.pl",
"Method=POST",
"RecContentType=text/html",
"Referer=http://localhost:1080/WebTours/nav.pl?in=home",
"Snapshot=t3.inf",
"Mode=HTTP",
ITEMDATA,
"Name=userSession", "Value={CorrelationParameter_1}", ENDITEM,
"Name=username", "Value=jojo", ENDITEM,
"Name=password", "Value=bean", ENDITEM,
"Name=login.x", "Value=40", ENDITEM,
"Name=login.y", "Value=3", ENDITEM,
"Name=login", "Value=Login", ENDITEM,
"Name=JSFormSubmit", "Value=off", ENDITEM,
LAST);
作者:
风魔夜
时间:
2018-10-25 15:23
哪位高手回答一下,卡在这了,百度了半天,解决不了问题啊。。。。
作者:
usrusr
时间:
2018-10-30 11:03
要么关联位置不对,要么左右边界取值错误
作者:
请叫我书生
时间:
2018-11-5 17:56
从你的脚本中来看,关联不对。
作者:
请叫我书生
时间:
2018-11-5 17:56
关联不对
作者:
xinich
时间:
2018-11-16 16:19
要把日志的该部分贴出来才能确定关联的左右边界,遇到"前面要加转意符\,猜测一下大约是改成这样,试一下
web_reg_save_param_ex(
"ParamName=CorrelationParameter_1",
"LB=name=userSession\" \"value=\"",
"RB=\"",
SEARCH_FILTERS,
"Scope=Body",
"RequestUrl=*/nav.pl*",
LAST);
欢迎光临 51Testing软件测试论坛 (http://bbs.51testing.com/)
Powered by Discuz! X3.2