|
象这种删除操作怎么进行手动关联呢?看了一些资料没有看明白
action部分操作的是删除预定的机票,录制的脚本如下
Action()
{
lr_think_time(19);
web_submit_data("login.pl",
"Action=http://127.0.0.1:1080/mercuryWebTours/login.pl",
"Method=POST",
"RecContentType=text/html",
"Referer=http://127.0.0.1:1080/mercuryWebTours/nav.pl?in=home",
"Snapshot=t9.inf",
"Mode=HTML",
ITEMDATA,
"Name=userSession", "Value={WCSParam_Diff1}", ENDITEM,
"Name=username", "Value=jojo", ENDITEM,
"Name=password", "Value=bean", ENDITEM,
"Name=JSFormSubmit", "Value=off", ENDITEM,
"Name=login.x", "Value=40", ENDITEM,
"Name=login.y", "Value=8", ENDITEM,
LAST);
web_image("Itinerary Button",
"Alt=Itinerary Button",
"Snapshot=t10.inf",
LAST);
lr_think_time(4);
web_submit_form("itinerary.pl",
"Snapshot=t11.inf",
ITEMDATA,
"Name=1", "Value=<OFF>", ENDITEM,
"Name=2", "Value=<OFF>", ENDITEM,
"Name=3", "Value=<OFF>", ENDITEM,
"Name=4", "Value=<OFF>", ENDITEM,
"Name=5", "Value=<OFF>", ENDITEM,
"Name=6", "Value=<OFF>", ENDITEM,
"Name=7", "Value=<OFF>", ENDITEM,
"Name=8", "Value=<OFF>", ENDITEM,
"Name=9", "Value=<OFF>", ENDITEM,
"Name=10", "Value=<OFF>", ENDITEM,
"Name=11", "Value=<OFF>", ENDITEM,
"Name=removeAllFlights.x", "Value=26", ENDITEM,
"Name=removeAllFlights.y", "Value=11", ENDITEM,
LAST);
return 0;
}
回放日志如下:
Action.c(24): Error -27979: Requested form not found [MsgId: MERR-27979]
Action.c(24): web_submit_form("itinerary.pl") highest severity level was "ERROR", 0 body bytes, 0 header bytes [MsgId: MMSG-26388] |
|