lr自带的飞机售票系统的删除脚本报错,
Action(){
lr_start_transaction("删除");
lr_think_time(27);
web_url("welcome.pl_2",
"URL=http://127.0.0.1:1080/WebTours/welcome.pl?page=itinerary",
"Resource=0",
"RecContentType=text/html",
"Referer=http://127.0.0.1:1080/WebTours/nav.pl?page=menu&in=home",
"Snapshot=t16.inf",
"Mode=HTTP",
LAST);
web_concurrent_start(NULL);
web_reg_save_param("flightID",
"LB=flightID\" value=\"",
"RB=\"/>",
"Ord=all",
LAST);
web_url("itinerary.pl",
"URL=http://127.0.0.1:1080/WebTours/itinerary.pl",
"Resource=0",
"RecContentType=text/html",
"Referer=http://127.0.0.1:1080/WebTours/welcome.pl?page=itinerary",
"Snapshot=t17.inf",
"Mode=HTTP",
LAST);
web_url("nav.pl_3",
"URL=http://127.0.0.1:1080/WebTours/nav.pl?page=menu&in=itinerary",
"Resource=0",
"RecContentType=text/html",
"Referer=http://127.0.0.1:1080/WebTours/welcome.pl?page=itinerary",
"Snapshot=t18.inf",
"Mode=HTTP",
LAST);
web_concurrent_end(NULL);
web_concurrent_start(NULL);
web_url("home.gif",
"URL=http://127.0.0.1:1080/WebTours/images/home.gif",
"Resource=1",
"RecContentType=image/gif",
"Referer=http://127.0.0.1:1080/WebTours/nav.pl?page=menu&in=itinerary",
"Snapshot=t19.inf",
LAST);
web_url("in_itinerary.gif",
"URL=http://127.0.0.1:1080/WebTours/images/in_itinerary.gif",
"Resource=1",
"RecContentType=image/gif",
"Referer=http://127.0.0.1:1080/WebTours/nav.pl?page=menu&in=itinerary",
"Snapshot=t21.inf",
LAST);
web_concurrent_end(NULL);
web_concurrent_start(NULL);
web_url("cancelreservation.gif",
"URL=http://127.0.0.1:1080/WebTours/images/cancelreservation.gif",
"Resource=1",
"RecContentType=image/gif",
"Referer=http://127.0.0.1:1080/WebTours/itinerary.pl",
"Snapshot=t20.inf",
LAST);
web_url("cancelallreservations.gif",
"URL=http://127.0.0.1:1080/WebTours/images/cancelallreservations.gif",
"Resource=1",
"RecContentType=image/gif",
"Referer=http://127.0.0.1:1080/WebTours/itinerary.pl",
"Snapshot=t22.inf",
LAST);
web_concurrent_end(NULL);
lr_think_time(11);
web_submit_data("itinerary.pl_2",
"Action=http://127.0.0.1:1080/WebTours/itinerary.pl",
"Method=POST",
"RecContentType=text/html",
"Referer=http://127.0.0.1:1080/WebTours/itinerary.pl",
"Snapshot=t23.inf",
"Mode=HTTP",
ITEMDATA,
"Name=1", "Value=on", ENDITEM,
"Name=flightID", "Value=flightID_1", ENDITEM,
"Name=flightID", "Value=flightID_2", ENDITEM,
"Name=flightID", "Value=flightID_3", ENDITEM,
"Name=flightID", "Value=flightID_4", ENDITEM,
"Name=flightID", "Value=flightID_5", ENDITEM,
"Name=flightID", "Value=flightID_6", ENDITEM,
"Name=flightID", "Value=flightID_7", ENDITEM,
"Name=flightID", "Value=flightID_8", ENDITEM,
"Name=flightID", "Value=flightID_9", ENDITEM,
"Name=flightID", "Value=flightID_10", ENDITEM,
"Name=flightID", "Value=flightID_11", ENDITEM,
"Name=flightID", "Value=flightID_12", ENDITEM,
"Name=.cgifields", "Value=6", ENDITEM,
"Name=.cgifields", "Value=11", ENDITEM,
"Name=.cgifields", "Value=3", ENDITEM,
"Name=.cgifields", "Value=7", ENDITEM,
"Name=.cgifields", "Value=9", ENDITEM,
"Name=.cgifields", "Value=12", ENDITEM,
"Name=.cgifields", "Value=2", ENDITEM,
"Name=.cgifields", "Value=8", ENDITEM,
"Name=.cgifields", "Value=1", ENDITEM,
"Name=.cgifields", "Value=4", ENDITEM,
"Name=.cgifields", "Value=10", ENDITEM,
"Name=.cgifields", "Value=5", ENDITEM,
"Name=removeFlights.x", "Value=55", ENDITEM,
"Name=removeFlights.y", "Value=5", ENDITEM,
LAST);
lr_end_transaction("删除",LR_AUTO);
return 0;
}
Action.c(43): Error -26377: No match found for the requested parameter "flightID". Check whether the requested boundaries exist in the response data. Also, if the data you want to save exceeds 256 bytes, use web_set_max_html_param_len to increase the parameter size
Action.c(43): web_concurrent_end highest severity level was "ERROR", 2329 body bytes, 505 header bytes [MsgId: MMSG-26388
你这个报错的是关联问题,可能是左右边界没找对 关联的的这个函数位置貌似放的有点不对 web_reg_save_param("flightID",
"LB=flightID\" value=\"",
"RB=\"/>",
"Ord=all",
LAST);
web_url("itinerary.pl",
"URL=http://127.0.0.1:1080/WebTours/itinerary.pl",
"Resource=0",
"RecContentType=text/html",
"Referer=http://127.0.0.1:1080/WebTours/welcome.pl?page=itinerary",
"Snapshot=t17.inf",
"Mode=HTTP",
LAST);
web_url("nav.pl_3",
"URL=http://127.0.0.1:1080/WebTours/nav.pl?page=menu&in=itinerary",
"Resource=0",
"RecContentType=text/html",
"Referer=http://127.0.0.1:1080/WebTours/welcome.pl?page=itinerary",
"Snapshot=t18.inf",
"Mode=HTTP",
LAST);
我记得身份证生成是在web_url("nav.pl_3",
"URL=http://127.0.0.1:1080/WebTours/nav.pl?page=menu&in=itinerary",
"Resource=0",
"RecContentType=text/html",
"Referer=http://127.0.0.1:1080/WebTours/welcome.pl?page=itinerary",
"Snapshot=t18.inf",
"Mode=HTTP",
LAST);
这一段返回的响应里
应该这样放
web_url("itinerary.pl",
"URL=http://127.0.0.1:1080/WebTours/itinerary.pl",
"Resource=0",
"RecContentType=text/html",
"Referer=http://127.0.0.1:1080/WebTours/welcome.pl?page=itinerary",
"Snapshot=t17.inf",
"Mode=HTTP",
LAST);
web_reg_save_param("flightID",
"LB=flightID\" value=\"",
"RB=\"/>",
"Ord=all",
LAST);
web_url("nav.pl_3",
"URL=http://127.0.0.1:1080/WebTours/nav.pl?page=menu&in=itinerary",
"Resource=0",
"RecContentType=text/html",
"Referer=http://127.0.0.1:1080/WebTours/welcome.pl?page=itinerary",
"Snapshot=t18.inf",
"Mode=HTTP",
LAST); mengmengda 发表于 2016-2-17 11:56
web_reg_save_param("flightID",
"LB=flightID\" value=\"",
"RB=\"/>",
param放在nav_pl3上面还是报错,QAQ
Action.c(44): Error -26377: No match found for the requested parameter "flightID". Check whether the requested boundaries exist in the response data. Also, if the data you want to save exceeds 256 bytes, use web_set_max_html_param_len to increase the parameter size
Action.c(44): web_concurrent_end highest severity level was "ERROR", 2329 body bytes, 505 header bytes 远方的小企鹅 发表于 2016-2-17 11:34
关联的的这个函数位置貌似放的有点不对
求问该肿么改,,,,
itinerary.pl:
<input type="hidden" name="flightID" value="46296-7-hj"/> 乐至的 发表于 2016-2-17 13:18
求问该肿么改,,,,
itinerary.pl:
有一个方法可以确定关联的函数放什么请求之前,你在树试图--http-response这里查看下这个动态的数据是哪个请求返回的,然后右建这个请求,在它前面插入关联的函数就可以了,我平时手动关联都 是这样做
页:
[1]