diu130 发表于 2010-8-2 18:00:45

lr录制WebTours报错。请大侠帮忙

Action()
{

        lr_think_time(9);

        lr_start_transaction("order_ticket");

        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_url("FormDateUpdate.class",
                "URL=http://127.0.0.1:1080/WebTours/FormDateUpdate.class",
                "Resource=0",
                "RecContentType=text/html",
                "Referer=",
                "Mode=HTML",
                LAST);

        web_url("CalSelect.class",
                "URL=http://127.0.0.1:1080/WebTours/CalSelect.class",
                "Resource=0",
                "RecContentType=text/html",
                "Referer=",
                "Mode=HTML",
                LAST);


        web_url("Calendar.class",
                "URL=http://127.0.0.1:1080/WebTours/Calendar.class",
                "Resource=0",
                "RecContentType=text/html",
                "Referer=",
                "Mode=HTML",
                LAST);
        lr_think_time(4);

        web_url("YearMonthPanel.class",
                "URL=http://127.0.0.1:1080/WebTours/YearMonthPanel.class",
                "Resource=0",
                "RecContentType=text/html",
                "Referer=",
                "Mode=HTML",
                LAST);

        web_url("DayPanel.class",
                "URL=http://127.0.0.1:1080/WebTours/DayPanel.class",
                "Resource=0",
                "RecContentType=text/html",
                "Referer=",
                "Mode=HTML",
                LAST);


        web_url("DateInfo.class",
                "URL=http://127.0.0.1:1080/WebTours/DateInfo.class",
                "Resource=0",
                "RecContentType=text/html",
                "Referer=",
                "Mode=HTML",
                LAST);
        lr_think_time(16);

        // Parameter {WCSParam_Diff1} created by Correlation Studio
        web_reg_save_param("WCSParam_Diff1",
                "LB=outboundFlight value=",
                "RB=>",
                "Ord=2",
                "RelFrameId=1",
                "Search=Body",
                "IgnoreRedirections=Yes",
                LAST);
        web_submit_data("reservations.pl",
                "Action=http://127.0.0.1:1080/WebTours/reservations.pl",
                "Method=POST",
                "RecContentType=text/html",
                "Referer=http://127.0.0.1:1080/WebTours/reservations.pl?page=welcome",
                "Snapshot=t4.inf",
                "Mode=HTML",
                ITEMDATA,
                "Name=advanceDiscount", "Value=0", ENDITEM,
                "Name=depart", "Value={depart_name}", ENDITEM,
                "Name=departDate", "Value={depart_time}", ENDITEM,
                "Name=arrive", "Value={arrive_name}", ENDITEM,
                "Name=returnDate", "Value={arrive_time}", ENDITEM,
                "Name=numPassengers", "Value={passengers_num}", ENDITEM,
                "Name=seatPref", "Value={set_pref}", ENDITEM,
                "Name=seatType", "Value={seat_type}", ENDITEM,
                "Name=.cgifields", "Value=roundtrip", ENDITEM,
                "Name=.cgifields", "Value=seatType", ENDITEM,
                "Name=.cgifields", "Value=seatPref", ENDITEM,
                "Name=findFlights.x", "Value=51", ENDITEM,
                "Name=findFlights.y", "Value=7", ENDITEM,
                LAST);

    lr_think_time(4);


        web_submit_form("reservations.pl_2",
                "Snapshot=t5.inf",
                ITEMDATA,
                "Name=outboundFlight", "Value={WCSParam_Diff1}", ENDITEM,
                "Name=reserveFlights.x", "Value=54", ENDITEM,
                "Name=reserveFlights.y", "Value=7", ENDITEM,
                LAST);
        lr_think_time(57);

        web_submit_form("reservations.pl_3",
                "Snapshot=t6.inf",
                ITEMDATA,
                "Name=firstName", "Value={Firstname}", ENDITEM,
                "Name=lastName", "Value={lastname}", ENDITEM,
                "Name=address1", "Value={StreetAddress}", ENDITEM,
                "Name=address2", "Value={cityZip}", ENDITEM,
                "Name=pass1", "Value={PassengerNames}", ENDITEM,
                "Name=pass2", "Value=", ENDITEM,
                "Name=creditCard", "Value={CreditCard}", ENDITEM,
                "Name=expDate", "Value={EpxDate}", ENDITEM,
                "Name=saveCC", "Value={SaveCC}", ENDITEM,
                "Name=buyFlights.x", "Value=28", ENDITEM,
                "Name=buyFlights.y", "Value=13", ENDITEM,
                LAST);

        lr_end_transaction("order_ticket", LR_AUTO);

        return 0;
}
设置了2此迭代。运行第1次迭代没有报错。运行第二次迭代报错如下:
Action.c(111): web_submit_form("reservations.pl_2") was successful, 2589 body bytes, 253 header bytes       
Action.c(120): Error -27979: Requested form not found       
Action.c(120): web_submit_form("reservations.pl_3") highest severity level was "ERROR", 0 body bytes, 0 header bytes       
Action.c(120): Notify: Transaction "order_ticket" ended with "Fail" status (Duration: 2.0407 Wasted Time: 0.0001).
Ending action Action.
页: [1]
查看完整版本: lr录制WebTours报错。请大侠帮忙