|
delete()
{
/*在server response中取得所有的已经订过票的号码,然后在一次性提交到server端,进行取消所有的预定的票号*/
int count,i;
char flight_Name[256];
char str[1024];
/*获得票号总数*/
count= atoi(lr_eval_string("{flight_num_count}"));
strcpy(str,"body=");
for (i=1;i<=count;i++)
{
sprintf(flight_Name,"{flight_num_%d}=on&",i);
strcat(str, flight_Name);
}
/*拼接所有的票号*/
strcat(str,"removeSelected.x=115&removeSelected.y=9");
lr_output_message("str= %s",str);
/*通过web_custom_request进行提交删除请求*/
web_custom_request("com.mercurytours.servlet.IteneraryServlet_2",
"url=http://localhost/servlets/com.mercurytours.servlet.IteneraryServlet?procSub=1",
"Method=POST",
"RecContentType=text/html",
"Referer=http://localhost/servlets/com.mercurytours.servlet.IteneraryServlet",
"Snapshot=t8.inf",
"Mode=HTML",
str,
LAST);
//lr_save_string(lr_eval_string(fight_Name),"buffer");
/*web_submit_data("com.mercurytours.servlet.IteneraryServlet_2",
"Action=http://localhost/servlets/com.mercurytours.servlet.IteneraryServlet?procSub=1",
"Method=POST",
"RecContentType=text/html",
"Referer=http://localhost/servlets/com.mercurytours.servlet.IteneraryServlet",
"Snapshot=t8.inf",
"Mode=HTML",
ITEMDATA,
"Name={buffer}", "Value=on", ENDITEM,
"Name=removeSelected.x", "Value=115", ENDITEM,
"Name=removeSelected.y", "Value=9", ENDITEM,
LAST);
*/
return 0;
}
控件属性自己定义的还是SPY的?
自己定义的怎么回放FAILURE。。。。 |
|