|
用户的是mercury的例子,已订购机票列表页面,我的想法是进入后删除第一条记录,如果没有记录的话转入失败页面
脚本如下:
Action()
{
lr_think_time(1);
lr_start_transaction("删除表单");
web_reg_find("Text=Mercury Tours",
LAST);
web_url("welcome.pl",
"URL=http://192.168.0.144:1081/MercuryWebTours/welcome.pl?page=itinerary",
"Resource=0",
"RecContentType=text/html",
"Referer=http://192.168.0.144:1081/MercuryWebTours/nav.pl?page=menu&in=home",
"Snapshot=t3.inf",
"Mode=HTML",
LAST);
lr_think_time(4);
web_reg_find("Text=Flights List",
LAST);
web_submit_form("itinerary.pl",
"Snapshot=t4.inf",
ITEMDATA,
"Name=1", "Value=<OFF>", ENDITEM,
"Name=2", "Value=on", 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=removeFlights.x", "Value=41", ENDITEM,
"Name=removeFlights.y", "Value=18", ENDITEM,
LAST);
lr_end_transaction("删除表单", LR_AUTO);
return 0;
}
这里我没有看到可以关联的id之类的东西,用树视图看,在提交动作时服务器没有相应,客户端的请求只有header,没有body。。。我该如何实现我的想法呢? |
|