|
我用2个随机数字参量代替时间和日期
{date1}-》1-29
{Month1}=1-12
源码
web_submit_form("reservations.pl",
"Snapshot=t4.inf",
ITEMDATA,
"Name={CSRule_1_UID6}", "Value=London", ENDITEM,
"Name={CSRule_1_UID7}", "Value=12/01/2009", ENDITEM,
"Name={CSRule_1_UID8}", "Value=London", ENDITEM,
"Name={CSRule_1_UID9}", "Value=01/12/2009", ENDITEM,
"Name={CSRule_1_UID10}", "Value=1", ENDITEM,
"Name={CSRule_1_UID11}", "Value=<OFF>", ENDITEM,
"Name={CSRule_1_UID12}", "Value=Window", ENDITEM,
"Name={CSRule_1_UID13}", "Value=First", ENDITEM,
"Name={CSRule_1_UID14}.x", "Value=62", ENDITEM,
"Name={CSRule_1_UID14}.y", "Value=14", ENDITEM,
LAST);
用parameter改过以后的
web_submit_form("reservations.pl",
"Snapshot=t4.inf",
ITEMDATA,
"Name={CSRule_1_UID6}", "Value=London", ENDITEM,
"Name={CSRule_1_UID7}", "Value={date1}/{Month1}/2009", ENDITEM,
"Name={CSRule_1_UID8}", "Value=London", ENDITEM,
"Name={CSRule_1_UID9}", "Value=01/12/2009", ENDITEM,
"Name={CSRule_1_UID10}", "Value=1", ENDITEM,
"Name={CSRule_1_UID11}", "Value=<OFF>", ENDITEM,
"Name={CSRule_1_UID12}", "Value=Window", ENDITEM,
"Name={CSRule_1_UID13}", "Value=First", ENDITEM,
"Name={CSRule_1_UID14}.x", "Value=62", ENDITEM,
"Name={CSRule_1_UID14}.y", "Value=14", ENDITEM,
LAST);
提交的时候发现下面还有一个reservations2 日期是个固定的12/01所以改了
web_submit_form("reservations.pl_2",
"Snapshot=t5.inf",
ITEMDATA,
"Name=outboundFlight", "Value=221;0;{date1}/{Month1}/2009", ENDITEM,
"Name={CSRule_1_UID26}.x", "Value=39", ENDITEM,
"Name={CSRule_1_UID26}.y", "Value=11", ENDITEM,
LAST);
改过出错
Action.c(277): Continuing after Error -27979: Requested form not found [MsgId: MERR-27979]
Action.c(277): Warning -26379: Pending web_reg_save_param/reg_find/create_html_param[_ex] request(s) are deleted and will be handled as "not found" [MsgId: MWAR-26379]
Action.c(277): Warning -26378: No buffer having "RelFrameID=1" has been received. The web_reg_save_param/reg_find request(s) specifying this RelFrameID will be handled as "not found" [MsgId: MWAR-26378]
Action.c(277): Continuing after Error -26377: No match found for the requested parameter "CSRule_1_UID28". Check whether the requested boundaries exist in the response data. Also, if the data you want to save exceeds 4096 bytes, use web_set_max_html_param_len to increase the parameter size [MsgId: MERR-26377]
参量设置看下图each iteration |
|