XP上LR11录制自带的tour自动关联出错
想录制个删除所有用户的订票的脚本,遇到系统上的CANCLE ALL按钮时,就在录制后用CTRL+F8自动关联了,运行脚本日志出错:Error -35061: 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 1024 bytes, use web_set_max_html_param_len to increase the parameter sizeRegistering web_url("itinerary.pl") highest severity level was "ERROR" 回复 1# zhang.yuandong
知道是关联出问题了,又新建了个规则,重新录了一遍,可是规则不起作用,请指教下,手动关联不会,请大侠说的详细点,谢谢 自己顶 关联搞定了,可是,如果录制时有三个订票记录,在回放脚本时也只能删除有三个记录的数据,如果某个用户有2个或者4个订票记录,这删不了,请问该怎么办?
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=flightID", "Value={WCSParam4}", ENDITEM,
"Name=flightID", "Value={WCSParam5}", ENDITEM,
"Name=flightID", "Value={WCSParam6}", ENDITEM,
"Name=.cgifields", "Value=1", ENDITEM,
"Name=.cgifields", "Value=3", ENDITEM,
"Name=.cgifields", "Value=2", ENDITEM,
"Name=removeAllFlights.x", "Value=47", ENDITEM,
"Name=removeAllFlights.y", "Value=12", ENDITEM,
LAST); 楼主 你关联那个问题如何解决的??共享下把。我的脚本在9.5自动关联就可以,在11上就不行了 运行也报你那个错 谢谢lz共享下把 本帖最后由 zhang.yuandong 于 2011-8-9 16:15 编辑
回复 5# xu1314
手动解决,加session和flight id的关联 我的也是报错那个 回复 4# zhang.yuandong
用web_custumn_request重新构建请求 回复 8# 云层
假如我录得时候是有2个记录则
web_reg_save_param("WCSParam4",
"LB/IC=\"flightID\" value=\"",
"RB/IC=\"/",
"Ord=1",
"Search=Body",
"RelFrameId=1",
LAST);
web_reg_save_param("WCSParam5",
"LB/IC=\"flightID\" value=\"",
"RB/IC=\"/",
"Ord=2",
"Search=Body",
"RelFrameId=1",
LAST);
lr_start_transaction("cancel all");
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=flightID", "Value={WCSParam4}", ENDITEM,
"Name=flightID", "Value={WCSParam5}", ENDITEM,
"Name=.cgifields", "Value=1", ENDITEM,
"Name=.cgifields", "Value=2", ENDITEM,
"Name=removeAllFlights.x", "Value=62", ENDITEM,
"Name=removeAllFlights.y", "Value=10", ENDITEM,
LAST);
lr_end_transaction("cancel all",LR_AUTO);
那我的这个web_custom_request("nav.pl_3", "Method=GET",
"URL=http://127.0.0.1:1080/WebTours/nav.pl?page=menu&in=itinerary",
"Resource=0",
"RecContentType=text",
"Referer=http://127.0.0.1:1080/WebTours/welcome.pl?page=itinerary",
"Snapshot=t17.inf",
"Body=",
LAST);
加在什么位置啊?在web_reg_save_param(WCSParam4的前面,我试了这样如果记录中有1个或3个记录,还是删不了,请帮忙,谢谢!
你要重构web_custumn_request 云层大大,咋个重构啊
页:
[1]