|
7#
楼主 |
发表于 2010-10-12 20:31:23
|
只看该作者
Action()
{
lr_think_time(4);
web_image("Search Flights Button",
"Alt=Search Flights Button",
"Snapshot=t20.inf",
LAST);
web_image("Search Flights Button_2",
"Alt=Search Flights Button",
"Snapshot=t21.inf",
LAST);
web_url("reservations.pl",
"URL=http://127.0.0.1:1080/mercuryWebTours/reservations.pl?page=welcome",
"Resource=0",
"RecContentType=text/html",
"Referer=http://127.0.0.1:1080/mercuryWebTours/welcome.pl?page=search",
"Snapshot=t22.inf",
"Mode=HTML",
LAST);
lr_think_time(22);
web_submit_form("reservations.pl_2",
"Snapshot=t23.inf",
ITEMDATA,
"Name=depart", "Value=Frankfurt", ENDITEM,
"Name=departDate", "Value=10/14/2010", ENDITEM,
"Name=arrive", "Value=Sydney", ENDITEM,
"Name=returnDate", "Value=10/17/2010", ENDITEM,
"Name=numPassengers", "Value=2", ENDITEM,
"Name=roundtrip", "Value=on", ENDITEM,
"Name=seatPref", "Value=Aisle", ENDITEM,
"Name=seatType", "Value=First", ENDITEM,
"Name=findFlights.x", "Value=65", ENDITEM,
"Name=findFlights.y", "Value=16", ENDITEM,
LAST);
web_submit_data("reservations.pl_3",
"Action=http://127.0.0.1:1080/mercuryWebTours/reservations.pl",
"Method=POST",
"RecContentType=text/html",
"Referer=http://127.0.0.1:1080/mercuryWebTours/reservations.pl?page=welcome",
"Snapshot=t24.inf",
"Mode=HTML",
ITEMDATA,
"Name=advanceDiscount", "Value=0", ENDITEM,
"Name=depart", "Value=Frankfurt", ENDITEM,
"Name=departDate", "Value=10/14/2010", ENDITEM,
"Name=arrive", "Value=Sydney", ENDITEM,
"Name=returnDate", "Value=10/17/2010", ENDITEM,
"Name=numPassengers", "Value=2", ENDITEM,
"Name=roundtrip", "Value=on", ENDITEM,
"Name=seatPref", "Value=Aisle", ENDITEM,
"Name=seatType", "Value=First", ENDITEM,
"Name=.cgifields", "Value=roundtrip", ENDITEM,
"Name=.cgifields", "Value=seatType", ENDITEM,
"Name=.cgifields", "Value=seatPref", ENDITEM,
"Name=findFlights.x", "Value=65", ENDITEM,
"Name=findFlights.y", "Value=16", ENDITEM,
LAST);
web_submit_form("reservations.pl_4",
"Snapshot=t25.inf",
ITEMDATA,
"Name=outboundFlight", "Value=181;2037;10/14/2010", ENDITEM,
"Name=returnFlight", "Value=811;2037;10/17/2010", ENDITEM,
"Name=reserveFlights.x", "Value=39", ENDITEM,
"Name=reserveFlights.y", "Value=10", ENDITEM,
LAST);
web_submit_data("reservations.pl_5",
"Action=http://127.0.0.1:1080/mercuryWebTours/reservations.pl",
"Method=POST",
"RecContentType=text/html",
"Referer=http://127.0.0.1:1080/mercuryWebTours/reservations.pl",
"Snapshot=t26.inf",
"Mode=HTML",
ITEMDATA,
"Name=outboundFlight", "Value=181;2037;10/14/2010", ENDITEM,
"Name=returnFlight", "Value=811;2037;10/17/2010", ENDITEM,
"Name=numPassengers", "Value=2", ENDITEM,
"Name=advanceDiscount", "Value=0", ENDITEM,
"Name=seatType", "Value=First", ENDITEM,
"Name=seatPref", "Value=Aisle", ENDITEM,
"Name=reserveFlights.x", "Value=39", ENDITEM,
"Name=reserveFlights.y", "Value=10", ENDITEM,
LAST);
lr_think_time(22);
web_submit_form("reservations.pl_6",
"Snapshot=t27.inf",
ITEMDATA,
"Name=firstName", "Value=s", ENDITEM,
"Name=lastName", "Value=d", ENDITEM,
"Name=address1", "Value=f", ENDITEM,
"Name=address2", "Value=g", ENDITEM,
"Name=pass1", "Value=h", ENDITEM,
"Name=pass2", "Value=ja", ENDITEM,
"Name=creditCard", "Value=12", ENDITEM,
"Name=expDate", "Value=10/18", ENDITEM,
"Name=saveCC", "Value=<OFF>", ENDITEM,
"Name=buyFlights.x", "Value=61", ENDITEM,
"Name=buyFlights.y", "Value=13", ENDITEM,
LAST);
web_add_cookie("MTUserInfo=hash&47&firstName&Joseph&expDate&%0A&creditCard&&address1&234%20Willow%20Drive&lastName&Marshall%0A&address2&San%20Jose%2FCA%2F94085&username&jojo; DOMAIN=127.0.0.1");
web_submit_data("reservations.pl_7",
"Action=http://127.0.0.1:1080/mercuryWebTours/reservations.pl",
"Method=POST",
"RecContentType=text/html",
"Referer=http://127.0.0.1:1080/mercuryWebTours/reservations.pl",
"Snapshot=t28.inf",
"Mode=HTML",
ITEMDATA,
"Name=firstName", "Value=s", ENDITEM,
"Name=lastName", "Value=d", ENDITEM,
"Name=address1", "Value=f", ENDITEM,
"Name=address2", "Value=g", ENDITEM,
"Name=pass1", "Value=h", ENDITEM,
"Name=pass2", "Value=ja", ENDITEM,
"Name=creditCard", "Value=12", ENDITEM,
"Name=expDate", "Value=10/18", ENDITEM,
"Name=oldCCOption", "Value=", ENDITEM,
"Name=numPassengers", "Value=2", ENDITEM,
"Name=seatType", "Value=First", ENDITEM,
"Name=seatPref", "Value=Aisle", ENDITEM,
"Name=outboundFlight", "Value=181;2037;10/14/2010", ENDITEM,
"Name=advanceDiscount", "Value=0", ENDITEM,
"Name=returnFlight", "Value=811;2037;10/17/2010", ENDITEM,
"Name=JSFormSubmit", "Value=off", ENDITEM,
"Name=.cgifields", "Value=saveCC", ENDITEM,
"Name=buyFlights.x", "Value=61", ENDITEM,
"Name=buyFlights.y", "Value=13", ENDITEM,
LAST);
web_submit_form("reservations.pl_8",
"Snapshot=t29.inf",
ITEMDATA,
"Name=Book Another.x", "Value=33", ENDITEM,
"Name=Book Another.y", "Value=6", ENDITEM,
LAST);
web_submit_data("reservations.pl_9",
"Action=http://127.0.0.1:1080/mercuryWebTours/reservations.pl",
"Method=POST",
"RecContentType=text/html",
"Referer=http://127.0.0.1:1080/mercuryWebTours/reservations.pl",
"Snapshot=t30.inf",
"Mode=HTML",
ITEMDATA,
"Name=Book Another.x", "Value=33", ENDITEM,
"Name=Book Another.y", "Value=6", ENDITEM,
LAST);
web_url("welcome.pl",
"URL=http://127.0.0.1:1080/mercuryWebTours/welcome.pl?page=itinerary",
"Resource=0",
"RecContentType=text/html",
"Referer=http://127.0.0.1:1080/mercuryWebTours/nav.pl?page=menu&in=flights",
"Snapshot=t31.inf",
"Mode=HTML",
LAST);
web_url("welcome.pl_2",
"URL=http://127.0.0.1:1080/mercuryWebTours/welcome.pl?page=itinerary",
"Resource=0",
"RecContentType=text/html",
"Referer=http://127.0.0.1:1080/mercuryWebTours/nav.pl?page=menu&in=flights",
"Snapshot=t32.inf",
"Mode=HTML",
LAST);
web_url("itinerary.pl",
"URL=http://127.0.0.1:1080/mercuryWebTours/itinerary.pl",
"Resource=0",
"RecContentType=text/html",
"Referer=http://127.0.0.1:1080/mercuryWebTours/welcome.pl?page=itinerary",
"Snapshot=t33.inf",
"Mode=HTML",
LAST);
web_submit_form("itinerary.pl_2",
"Snapshot=t34.inf",
ITEMDATA,
"Name=1", "Value=<OFF>", ENDITEM,
"Name=2", "Value=<OFF>", ENDITEM,
"Name=removeAllFlights.x", "Value=57", ENDITEM,
"Name=removeAllFlights.y", "Value=7", ENDITEM,
LAST);
web_submit_data("itinerary.pl_3",
"Action=http://127.0.0.1:1080/mercuryWebTours/itinerary.pl",
"Method=POST",
"RecContentType=text/html",
"Referer=http://127.0.0.1:1080/mercuryWebTours/itinerary.pl",
"Snapshot=t35.inf",
"Mode=HTML",
ITEMDATA,
"Name=flightID", "Value=0-1393703-ab", ENDITEM,
"Name=flightID", "Value=4511556-2162934-sd", ENDITEM,
"Name=.cgifields", "Value=1", ENDITEM,
"Name=.cgifields", "Value=2", ENDITEM,
"Name=removeAllFlights.x", "Value=57", ENDITEM,
"Name=removeAllFlights.y", "Value=7", ENDITEM,
LAST);
web_url("welcome.pl_3",
"URL=http://127.0.0.1:1080/mercuryWebTours/welcome.pl?page=menus",
"Resource=0",
"RecContentType=text/html",
"Referer=http://127.0.0.1:1080/mercuryWebTours/nav.pl?page=menu&in=itinerary",
"Snapshot=t36.inf",
"Mode=HTML",
LAST);
web_url("welcome.pl_4",
"URL=http://127.0.0.1:1080/mercuryWebTours/welcome.pl?page=menus",
"Resource=0",
"RecContentType=text/html",
"Referer=http://127.0.0.1:1080/mercuryWebTours/nav.pl?page=menu&in=itinerary",
"Snapshot=t37.inf",
"Mode=HTML",
LAST);
return 0;
} |
|