liuleidelang 发表于 2012-4-3 16:48:29

LR关联问题。

Action()
{
   
        lr_start_transaction("出发地点");

        lr_think_time(26);

        web_set_max_html_param_len("1024");

        web_reg_save_param("departvalue","LB/IC=depart Value=","RB=", LAST);
       

        web_url("welcome.pl",
                "URL=http://127.0.0.1:1080/WebTours/welcome.pl?page=search",
                "Resource=0",
                "RecContentType=text/html",
                "Referer=http://127.0.0.1:1080/WebTours/nav.pl?page=menu&in=home",
                "Snapshot=t3.inf",
                "Mode=HTML",
                LAST);

        web_submit_form("reservations.pl",
                "Snapshot=t4.inf",
                ITEMDATA,
                "Name=depart", "Value={departvalue}", ENDITEM,
                "Name=departDate", "Value=04/04/2012", ENDITEM,
                "Name=arrive", "Value=London", ENDITEM,
                "Name=returnDate", "Value=04/05/2012", ENDITEM,
                "Name=numPassengers", "Value=1", ENDITEM,
                "Name=roundtrip", "Value=on", ENDITEM,
                "Name=seatPref", "Value=Window", ENDITEM,
                "Name=seatType", "Value=Business", ENDITEM,
                "Name=findFlights.x", "Value=47", ENDITEM,
                "Name=findFlights.y", "Value=12", ENDITEM,
                LAST);

        lr_end_transaction("出发地点",LR_AUTO);

提示如下错误: Action.c(13): Error -26377: No match found for the requested parameter "departvalue". Check whether the requested boundaries exist in the response data. Also, if the data you want to save exceeds 1024 bytes, use web_set_max_html_param_len to increase the parameter size       

msnshow 发表于 2012-4-4 20:51:28

左右边界不对吧

liuleidelang 发表于 2012-4-5 10:28:11

能告诉我要怎么改吗?我改过几次了都不对。

Air1242 发表于 2012-4-5 17:18:03

LB= Value=,RB=>好像是这样吧 其实我也是刚写没多久。。。

ymwang119 发表于 2012-4-6 15:37:02

web_reg_save_param("departvalue",
                "LB= value=\"",
                "RB=\"",
                "Search=Body",
                LAST);
页: [1]
查看完整版本: LR关联问题。