|
重装loadrunner后,录制的问题一个接一个,真是烦死了!
Action()
{
lr_think_time(12);
web_submit_data("login.pl",
"Action=http://127.0.0.1:1080/mercuryWebTours/login.pl",
"Method=POST",
"RecContentType=text/html",
"Referer=http://127.0.0.1:1080/mercuryWebTours/nav.pl?in=home",
"Snapshot=t3.inf",
"Mode=HTML",
ITEMDATA,
"Name=userSession", "Value=98383.9232077764fAzAzcDpAfDADzDpHDiD", ENDITEM,
"Name=username", "Value=jojo", ENDITEM,
"Name=password", "Value=bean", ENDITEM,
"Name=JSFormSubmit", "Value=off", ENDITEM,
"Name=login.x", "Value=39", ENDITEM,
"Name=login.y", "Value=5", ENDITEM,
LAST);
web_image("Search Flights Button",
"Alt=Search Flights Button",
"Snapshot=t4.inf",
EXTRARES,
"Url=FormDateUpdate.class", "Referer=", ENDITEM,
"Url=CalSelect.class", "Referer=", ENDITEM,
LAST);
lr_think_time(5);
web_submit_form("reservations.pl",
"Snapshot=t5.inf",
ITEMDATA,
"Name=depart", "Value=Denver", ENDITEM,
"Name=departDate", "Value=06/28/2008", ENDITEM,
"Name=arrive", "Value=Los Angeles", ENDITEM,
"Name=returnDate", "Value=06/29/2008", ENDITEM,
"Name=numPassengers", "Value=1", ENDITEM,
"Name=roundtrip", "Value=<OFF>", ENDITEM,
"Name=seatPref", "Value=Aisle", ENDITEM,
"Name=seatType", "Value=Coach", ENDITEM,
"Name=findFlights.x", "Value=57", ENDITEM,
"Name=findFlights.y", "Value=8", ENDITEM,
LAST);
web_submit_form("reservations.pl_2",
"Snapshot=t6.inf",
ITEMDATA,
"Name=outboundFlight", "Value=030;251;06/28/2008", ENDITEM,
"Name=reserveFlights.x", "Value=52", ENDITEM,
"Name=reserveFlights.y", "Value=6", ENDITEM,
LAST);
lr_think_time(10);
web_submit_form("reservations.pl_3",
"Snapshot=t7.inf",
ITEMDATA,
"Name=firstName", "Value=Joseph", ENDITEM,
"Name=lastName", "Value=Marshall", ENDITEM,
"Name=address1", "Value=234 Willow Drive", ENDITEM,
"Name=address2", "Value=San Jose/CA/94085", ENDITEM,
"Name=pass1", "Value=Joseph Marshall", ENDITEM,
"Name=creditCard", "Value=12345678", ENDITEM,
"Name=expDate", "Value=06/06", ENDITEM,
"Name=saveCC", "Value=<OFF>", ENDITEM,
"Name=buyFlights.x", "Value=46", ENDITEM,
"Name=buyFlights.y", "Value=10", ENDITEM,
LAST);
return 0;
}
日志:
Starting action Action.
Action.c(6): web_submit_data("login.pl") was successful, 748 body bytes, 225 header bytes [MsgId: MMSG-26386]
Action.c(22): Error -27987: Requested image not found [MsgId: MERR-27987]
Action.c(22): web_image("Search Flights Button") highest severity level was "ERROR", 0 body bytes, 0 header bytes [MsgId: MMSG-26388]
Ending action Action.
请大侠帮忙分析!!!
这就是最简单的订票系统中的订票动作,但是却出错误了,真不敢相信! |
|