51Testing软件测试论坛

 找回密码
 (注-册)加入51Testing

QQ登录

只需一步,快速开始

微信登录,快人一步

手机号码,快捷登录

查看: 1650|回复: 0
打印 上一主题 下一主题

[原创] lr录制WebTours报错。请大侠帮忙

[复制链接]

该用户从未签到

跳转到指定楼层
1#
发表于 2010-8-2 18:00:45 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
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);

        // [WCSPARAM WCSParam_Diff1 18 151;534;07/23/2010] 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          [MsgId: MMSG-26386]
Action.c(120): Error -27979: Requested form not found          [MsgId: MERR-27979]
Action.c(120): web_submit_form("reservations.pl_3") highest severity level was "ERROR", 0 body bytes, 0 header bytes          [MsgId: MMSG-26388]
Action.c(120): Notify: Transaction "order_ticket" ended with "Fail" status (Duration: 2.0407 Wasted Time: 0.0001).
Ending action Action.
分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
收藏收藏
回复

使用道具 举报

本版积分规则

关闭

站长推荐上一条 /1 下一条

小黑屋|手机版|Archiver|51Testing软件测试网 ( 沪ICP备05003035号 关于我们

GMT+8, 2024-11-17 17:32 , Processed in 0.165904 second(s), 27 queries .

Powered by Discuz! X3.2

© 2001-2024 Comsenz Inc.

快速回复 返回顶部 返回列表