Loadrunner 关联相关
运行脚步时抛"Action.c(72): Error -27979: Requested form not found "outboundFlight关联后找不到相应的信息,"value='232;1370;11/20/2015'"其中航班和价格会根据选择的出发地和目的地不同而不同,
求助如何解决?
脚本如下:
/*Correlation comment - Do not change!Original value='232;1370;11/20/2015' Name ='outboundFlight' Type ='ResponseBased'*/
web_reg_save_param_regexp(
"ParamName=outboundFlight",
"RegExp=name=\"outboundFlight\"\\ value=\"(.*?)\">Blue\\ Sky\\ Air\\ 232",
SEARCH_FILTERS,
"Scope=Body",
"IgnoreRedirections=No",
LAST);
web_submit_form("reservations.pl_2",
"Snapshot=t30.inf",
ITEMDATA,
"Name=outboundFlight", "Value={outboundFlight}", ENDITEM,
"Name=reserveFlights.x", "Value=77", ENDITEM,
"Name=reserveFlights.y", "Value=12", ENDITEM,
LAST);
web_submit_form("reservations.pl_2",
"Name=outboundFlight", "Value={outboundFlight}", ENDITEM,
这里是你要提交的参数
web_reg_save_param_regexp,这个关联函数是要放在有对应响应的请求前面
得到关联值后,再使用的 可以加入关联函数进行,调优 感谢!
页:
[1]