51Testing软件测试论坛
标题:
lr录制WebTours报错。请大侠帮忙
[打印本页]
作者:
diu130
时间:
2010-8-2 18:00
标题:
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);
// [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.
欢迎光临 51Testing软件测试论坛 (http://bbs.51testing.com/)
Powered by Discuz! X3.2