|
录制loadrunner自带的Web,在订票时想对出发地和到达地进行参数化,但出现错误,脚本如下:
web_submit_form("reservations.pl",
"Snapshot=t5.inf",
ITEMDATA,
"Name=depart", "Value={depart}", ENDITEM,
"Name=departDate", "Value=05/25/2008", ENDITEM,
"Name=arrive", "Value={arrive}", ENDITEM,
"Name=returnDate", "Value=05/26/2008", ENDITEM,
"Name=numPassengers", "Value=1", ENDITEM,
"Name=roundtrip", "Value=<OFF>", ENDITEM,
"Name=seatPref", "Value=Aisle", ENDITEM,
"Name=seatType", "Value=Business", ENDITEM,
"Name=findFlights.x", "Value=68", ENDITEM,
"Name=findFlights.y", "Value=14", ENDITEM,
LAST);
lr_output_message(lr_eval_string("{depart}"));
lr_output_message(lr_eval_string("{arrive}"));
迭代两次,第一次迭代的结果如下:
Action.c(24): Error -27979: Requested form not found [MsgId: MERR-27979]
Action.c(24): web_submit_form("reservations.pl") highest severity level was "ERROR", 0 body bytes, 0 header bytes [MsgId: MMSG-26388]
Ending action Action.
第二次迭代如下:
London
Action.c(41): Paris
Action.c(43): Error -27979: Requested form not found [MsgId: MERR-27979]
Action.c(43): web_submit_form("reservations.pl_2") highest severity level was "ERROR", 0 body bytes, 0 header bytes [MsgId: MMSG-26388]
Ending action Action. |
|