LR关联报错No match found for the requested parameter
我关联后,经常报这个错No match found for the requested parameter "CorrelationParameter_1". Check whether the requested boundaries exist in the response data. Also, if the data you want to save exceeds 9999 bytes, use web_set_max_html_param_len to increase the parameter size
脚本跑得通,也可以插入数据库数据,只要在controller中设置多用户运行时间长的时候就报这个错。
请问一下,如果我设置50用户,参数化用户和不参数化用户对运行结果有影响吗?
我看云层大师回复别的帖子,LR关联后,单用户跑和多用户跑的情况是不同的,请教大家一下,有什么不同? 取决你系统业务。例如:某一业务,要求与用户名一对一,不做参数化的话,会使得后一个虚拟用户业务不成功。 本帖最后由 蓝小C 于 2011-11-14 14:48 编辑
业务很简单,没有要求用户名一对一,就很普通的一个页面,单号是自动生成的,我做了关联。 取决你系统业务。例如:某一业务,要求与用户名一对一,不做参数化的话,会使得后一个虚拟用户业务不成功。
thirfing 发表于 2011-11-14 12:12 http://bbs.51testing.com/images/common/back.gif
业务很简单,没有要求用户名一对一,就很普通的一个页面,单号是自动生成的,我做了关联。 use web_set_max_html_param_len to increase the parameter size 暗示你关联的结果长度太长了 左右边界可能取得不对 我也碰到了这个问题
单用户跑的时候没问题
多用户跑的时候出现了
纠结中 哦,我也报了这个错误,好像是server response返回的值里面包含空格,而要用到这个值的url都把空格转移成了%20所以不匹配,恩,看来要解决一下啦 根据保存内容看,可能是关联的左右边界没有设置正确找不到关联的值,或者是关联结果太长需要用web_set_max_html_param_len()。 我的脚本时这样的,也报这个错,请问脚本应该怎么改呢,请哪位高手指点下
Action()
{
//Correlation comment - Do not change!Original value='6618064' Name ='CorrelationParameter_1'
web_reg_save_param_ex(
"ParamName=CorrelationParameter_1",
"LB=107824.2",
"RB=f",
SEARCH_FILTERS,
"Scope=Body",
"RequestUrl=*/nav.pl*",
LAST);
//Correlation comment - Do not change!Original value='ApzQVzzzzH' Name ='CorrelationParameter_2'
web_reg_save_param_ex(
"ParamName=CorrelationParameter_2",
"LB=V",
"RB=D",
SEARCH_FILTERS,
"Scope=Body",
"RequestUrl=*/nav.pl*",
LAST);
//Correlation comment - Do not change!Original value='ztVf' Name ='CorrelationParameter_3'
web_reg_save_param_ex(
"ParamName=CorrelationParameter_3",
"LB=c",
"RB=>\n<table border",
SEARCH_FILTERS,
"Scope=Body",
"RequestUrl=*/nav.pl*",
LAST);
web_url("WebTours",
"URL=http://127.0.0.1:1080/WebTours/",
"Resource=1",
"RecContentType=text/html",
"Referer=",
"Snapshot=t6.inf",
"Mode=HTML",
LAST);
lr_start_transaction("login");
lr_think_time(26);
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",
"Mode=HTML",
ITEMDATA,
"Name=userSession", "Value=107824.2{CorrelationParameter_1}fftzcV{CorrelationParameter_2}DDcHHpc{CorrelationParameter_3}", ENDITEM,
"Name=username", "Value=jojo", ENDITEM,
"Name=password", "Value=bean", ENDITEM,
"Name=JSFormSubmit", "Value=on", ENDITEM,
LAST);
web_submit_data("login.pl_2",
"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=t7.inf",
"Mode=HTML",
ITEMDATA,
"Name=userSession", "Value=107824.2{CorrelationParameter_1}fftzcV{CorrelationParameter_2}DDcHHpc{CorrelationParameter_3}", ENDITEM,
"Name=username", "Value=jojo", ENDITEM,
"Name=password", "Value=bean", ENDITEM,
"Name=JSFormSubmit", "Value=on", ENDITEM,
"Name=login.x", "Value=67", ENDITEM,
"Name=login.y", "Value=16", ENDITEM,
LAST);
lr_end_transaction("login", LR_AUTO);
lr_start_transaction("clickFlights");
lr_think_time(39);
web_image("Search Flights Button",
"Alt=Search Flights Button",
"Snapshot=t8.inf",
EXTRARES,
"URL=FormDateUpdate.class", ENDITEM,
"URL=CalSelect.class", ENDITEM,
LAST);
lr_end_transaction("clickFlights", LR_AUTO);
lr_start_transaction("findFlights");
lr_think_time(112);
web_submit_form("reservations.pl",
"Snapshot=t9.inf",
ITEMDATA,
"Name=depart", "Value=Denver", ENDITEM,
"Name=departDate", "Value=03/08/2012", ENDITEM,
"Name=arrive", "Value=London", ENDITEM,
"Name=returnDate", "Value=03/09/2012", ENDITEM,
"Name=numPassengers", "Value=1", ENDITEM,
"Name=roundtrip", "Value=<OFF>", ENDITEM,
"Name=seatPref", "Value=None", ENDITEM,
"Name=seatType", "Value=Coach", ENDITEM,
"Name=findFlights.x", "Value=28", ENDITEM,
"Name=findFlights.y", "Value=10", ENDITEM,
LAST);
lr_end_transaction("findFlights", LR_AUTO);
lr_start_transaction("chooseFlights");
lr_think_time(33);
web_submit_form("reservations.pl_2",
"Snapshot=t10.inf",
ITEMDATA,
"Name=outboundFlight", "Value=021;301;03/08/2012", ENDITEM,
"Name=reserveFlights.x", "Value=57", ENDITEM,
"Name=reserveFlights.y", "Value=11", ENDITEM,
LAST);
lr_end_transaction("chooseFlights", LR_AUTO);
lr_start_transaction("pay");
lr_think_time(83);
web_submit_form("reservations.pl_3",
"Snapshot=t11.inf",
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=44551455224741474", ENDITEM,
"Name=expDate", "Value=06/14", ENDITEM,
"Name=saveCC", "Value=on", ENDITEM,
"Name=buyFlights.x", "Value=49", ENDITEM,
"Name=buyFlights.y", "Value=10", ENDITEM,
LAST);
lr_end_transaction("pay", LR_AUTO);
lr_start_transaction("signOff");
lr_think_time(33);
web_image("SignOff Button",
"Alt=SignOff Button",
"Ordinal=1",
"Snapshot=t12.inf",
LAST);
lr_end_transaction("signOff", LR_AUTO);
return 0;
}
页:
[1]