lr删除脚本:不能执行删除操作
利用lr自带的sample录制了删除脚本,可是删不掉数据,大家帮忙看一下为什么录制过程:点击"checkbox",选中某条记录,点击“删除”按钮,删除该记录。
--------------------------脚本------------------------------
Action()
{
web_url("welcome.pl",
"URL=http://192.168.1.85:1080/mercuryWebTours/welcome.pl?page=itinerary",
"TargetFrame=",
"Resource=0",
"RecContentType=text/html",
"Referer=http://192.168.1.85:1080/mercuryWebTours/nav.pl?page=menu&in=home",
"Snapshot=t3.inf",
"Mode=HTML",
LAST);
/*web_reg_save_param("test1",
"LB= \"Name=removeFlights.x\", \"Value=",
"RB=\"",
"Ord=all",
LAST);
web_reg_save_param("test2",
"LB= \"Name=removeFlights.y\", \"Value=",
"RB=\"",
"Ord=all",
LAST);
*/
web_submit_data("itinerary.pl",
"Action=http://192.168.1.85:1080/mercuryWebTours/itinerary.pl",
"Method=POST",
"TargetFrame=",
"RecContentType=text/html",
"Referer=http://192.168.1.85:1080/mercuryWebTours/itinerary.pl",
"Snapshot=t4.inf",
"Mode=HTML",
ITEMDATA,
"Name=1", "Value=on", ENDITEM,
"Name=flightID", "Value=1280000-7-JM", ENDITEM,
"Name=flightID", "Value=1280000-15-JM", ENDITEM,
"Name=flightID", "Value=1280000-23-JM", ENDITEM,
"Name=flightID", "Value=1280000-30-JM", ENDITEM,
"Name=flightID", "Value=1280000-38-JM", ENDITEM,
"Name=flightID", "Value=1280000-46-JM", ENDITEM,
"Name=flightID", "Value=1280000-53-JM", ENDITEM,
"Name=flightID", "Value=1280000-61-JM", ENDITEM,
"Name=flightID", "Value=1280000-69-JM", ENDITEM,
"Name=flightID", "Value=1280000-76-JM", ENDITEM,
"Name=flightID", "Value=1280000-84-JM", ENDITEM,
"Name=flightID", "Value=1280000-92-JM", ENDITEM,
"Name=flightID", "Value=1280000-100-JM", ENDITEM,
"Name=flightID", "Value=1280000-107-JM", ENDITEM,
"Name=flightID", "Value=1280000-115-JM", ENDITEM,
"Name=flightID", "Value=1280000-123-JM", ENDITEM,
"Name=flightID", "Value=1280000-130-JM", ENDITEM,
"Name=flightID", "Value=128000384-13905-JM", ENDITEM,
"Name=flightID", "Value=128000753-146231-JM", ENDITEM,
"Name=flightID", "Value=128001120-153923-JM", ENDITEM,
"Name=flightID", "Value=128001862-161644-JM", ENDITEM,
"Name=flightID", "Value=128002603-169365-JM", ENDITEM,
"Name=flightID", "Value=128003348-177149-JM", ENDITEM,
"Name=flightID", "Value=128004454-184779-JM", ENDITEM,
"Name=.cgifields", "Value=11", ENDITEM,
"Name=.cgifields", "Value=21", ENDITEM,
"Name=.cgifields", "Value=7", ENDITEM,
"Name=.cgifields", "Value=17", ENDITEM,
"Name=.cgifields", "Value=2", ENDITEM,
"Name=.cgifields", "Value=22", ENDITEM,
"Name=.cgifields", "Value=1", ENDITEM,
"Name=.cgifields", "Value=18", ENDITEM,
"Name=.cgifields", "Value=23", ENDITEM,
"Name=.cgifields", "Value=16", ENDITEM,
"Name=.cgifields", "Value=13", ENDITEM,
"Name=.cgifields", "Value=6", ENDITEM,
"Name=.cgifields", "Value=3", ENDITEM,
"Name=.cgifields", "Value=9", ENDITEM,
"Name=.cgifields", "Value=12", ENDITEM,
"Name=.cgifields", "Value=20", ENDITEM,
"Name=.cgifields", "Value=14", ENDITEM,
"Name=.cgifields", "Value=15", ENDITEM,
"Name=.cgifields", "Value=8", ENDITEM,
"Name=.cgifields", "Value=4", ENDITEM,
"Name=.cgifields", "Value=24", ENDITEM,
"Name=.cgifields", "Value=19", ENDITEM,
"Name=.cgifields", "Value=10", ENDITEM,
"Name=.cgifields", "Value=5", ENDITEM,
"Name=removeFlights.x", "Value=5", ENDITEM, //设置了关联
// "Name=removeFlights.x", "Value={test1}", ENDITEM,
"Name=removeFlights.y", "Value=8", ENDITEM, //设置了关联
//"Name=removeFlights.y", "Value={test2}", ENDITEM,
LAST);
return 0;
}
-------------------------脚本------------------------------
把他们的删除位置设置了关联,运行脚本时报错,提示
Action.c(27): Error -26377: No match found for the requested parameter "test1". Check whether the requested boundaries exist in the response data. Also, if the data you want to save exceeds 1024 bytes, use web_set_max_html_param_len to increase the parameter size
Action.c(27): Notify: Saving Parameter "test1_count = 0"
Action.c(27): Error -26377: No match found for the requested parameter "test2". Check whether the requested boundaries exist in the response data. Also, if the data you want to save exceeds 1024 bytes, use web_set_max_html_param_len to increase the parameter size
Action.c(27): Notify: Saving Parameter "test2_count = 0"
Action.c(27): web_submit_data("itinerary.pl") highest severity level was "ERROR", 930 body bytes, 252 header bytes 没有人看吗
回复 1# 的帖子
从报错信息看,是你做的关联没有取到值,检查一下关联函数用的对不对 找到问题了是我设置的关联函数不正确
页:
[1]