TA的每日心情 | 奋斗 2018-11-1 08:22 |
---|
签到天数: 3 天 连续签到: 1 天 [LV.2]测试排长
|
3#
楼主 |
发表于 2018-10-25 15:20:03
|
只看该作者
Action()
{
web_url("WebTours",
"URL=http://localhost:1080/WebTours/",
"Resource=0",
"RecContentType=text/html",
"Referer=",
"Mode=HTTP",
LAST);
web_url("header.html",
"URL=http://localhost:1080/WebTours/header.html",
"Resource=0",
"RecContentType=text/html",
"Referer=http://localhost:1080/WebTours/",
"Mode=HTTP",
LAST);
web_url("welcome.pl",
"URL=http://localhost:1080/WebTours/welcome.pl?signOff=true",
"Resource=0",
"RecContentType=text/html",
"Referer=http://localhost:1080/WebTours/",
"Snapshot=t1.inf",
"Mode=HTTP",
LAST);
web_set_max_html_param_len("1024000");
web_concurrent_start(NULL);
web_url("home.html",
"URL=http://localhost:1080/WebTours/home.html",
"Resource=0",
"RecContentType=text/html",
"Referer=http://localhost:1080/WebTours/welcome.pl?signOff=true",
"Mode=HTTP",
LAST);
//Correlation comment - Do not change!Original value='124783.274767112ztVifDQpzQfiDDDDDifVVpcDiVHf' Name ='CorrelationParameter_1'
web_reg_save_param_ex(
"ParamName=CorrelationParameter_1",
"LB=name=userSession value=",
"RB=>",
SEARCH_FILTERS,
"Scope=Body",
"RequestUrl=*/nav.pl*",
LAST);
web_url("nav.pl",
"URL=http://localhost:1080/WebTours/nav.pl?in=home",
"Resource=0",
"RecContentType=text/html",
"Referer=http://localhost:1080/WebTours/welcome.pl?signOff=true",
"Snapshot=t2.inf",
"Mode=HTTP",
LAST);
web_concurrent_end(NULL);
lr_think_time(7);
web_submit_data("login.pl",
"Action=http://localhost:1080/WebTours/login.pl",
"Method=POST",
"RecContentType=text/html",
"Referer=http://localhost:1080/WebTours/nav.pl?in=home",
"Snapshot=t3.inf",
"Mode=HTTP",
ITEMDATA,
"Name=userSession", "Value={CorrelationParameter_1}", ENDITEM,
"Name=username", "Value=jojo", ENDITEM,
"Name=password", "Value=bean", ENDITEM,
"Name=login.x", "Value=40", ENDITEM,
"Name=login.y", "Value=3", ENDITEM,
"Name=login", "Value=Login", ENDITEM,
"Name=JSFormSubmit", "Value=off", ENDITEM,
LAST);
web_url("nav.pl_2",
"URL=http://localhost:1080/WebTours/nav.pl?page=menu&in=home",
"Resource=0",
"RecContentType=text/html",
"Referer=http://localhost:1080/WebTours/login.pl",
"Snapshot=t4.inf",
"Mode=HTTP",
LAST);
web_url("Search Flights Button",
"URL=http://localhost:1080/WebTours/welcome.pl?page=search",
"Resource=0",
"RecContentType=text/html",
"Referer=http://localhost:1080/WebTours/nav.pl?page=menu&in=home",
"Snapshot=t5.inf",
"Mode=HTTP",
LAST);
web_concurrent_start(NULL);
web_url("nav.pl_3",
"URL=http://localhost:1080/WebTours/nav.pl?page=menu&in=flights",
"Resource=0",
"RecContentType=text/html",
"Referer=http://localhost:1080/WebTours/welcome.pl?page=search",
"Snapshot=t6.inf",
"Mode=HTTP",
LAST);
web_url("reservations.pl",
"URL=http://localhost:1080/WebTours/reservations.pl?page=welcome",
"Resource=0",
"RecContentType=text/html",
"Referer=http://localhost:1080/WebTours/welcome.pl?page=search",
"Snapshot=t7.inf",
"Mode=HTTP",
LAST);
web_concurrent_end(NULL);
web_concurrent_start(NULL);
web_url("FormDateUpdate.class",
"URL=http://localhost:1080/WebTours/FormDateUpdate.class",
"Resource=1",
"RecContentType=*/*",
"Referer=http://localhost:1080/WebTours/reservations.pl?page=welcome",
"Snapshot=t8.inf",
LAST);
web_url("FormDateUpdate.class_2",
"URL=http://localhost:1080/WebTours/FormDateUpdate.class",
"Resource=1",
"RecContentType=*/*",
"Referer=http://localhost:1080/WebTours/reservations.pl?page=welcome",
"Snapshot=t9.inf",
LAST);
web_concurrent_end(NULL);
lr_think_time(4);
web_submit_data("reservations.pl_2",
"Action=http://localhost:1080/WebTours/reservations.pl",
"Method=POST",
"RecContentType=text/html",
"Referer=http://localhost:1080/WebTours/reservations.pl?page=welcome",
"Snapshot=t10.inf",
"Mode=HTTP",
ITEMDATA,
"Name=advanceDiscount", "Value=0", ENDITEM,
"Name=depart", "Value=Denver", ENDITEM,
"Name=departDate", "Value=10/26/2018", ENDITEM,
"Name=arrive", "Value=Denver", ENDITEM,
"Name=returnDate", "Value=10/27/2018", ENDITEM,
"Name=numPassengers", "Value=1", ENDITEM,
"Name=seatPref", "Value=None", ENDITEM,
"Name=seatType", "Value=Business", ENDITEM,
"Name=findFlights.x", "Value=60", ENDITEM,
"Name=findFlights.y", "Value=4", ENDITEM,
"Name=.cgifields", "Value=roundtrip", ENDITEM,
"Name=.cgifields", "Value=seatType", ENDITEM,
"Name=.cgifields", "Value=seatPref", ENDITEM,
LAST);
web_submit_data("reservations.pl_3",
"Action=http://localhost:1080/WebTours/reservations.pl",
"Method=POST",
"RecContentType=text/html",
"Referer=http://localhost:1080/WebTours/reservations.pl",
"Snapshot=t11.inf",
"Mode=HTTP",
ITEMDATA,
"Name=outboundFlight", "Value=001;0;10/26/2018", ENDITEM,
"Name=numPassengers", "Value=1", ENDITEM,
"Name=advanceDiscount", "Value=0", ENDITEM,
"Name=seatType", "Value=Business", ENDITEM,
"Name=seatPref", "Value=None", ENDITEM,
"Name=reserveFlights.x", "Value=45", ENDITEM,
"Name=reserveFlights.y", "Value=13", ENDITEM,
LAST);
web_submit_data("reservations.pl_4",
"Action=http://localhost:1080/WebTours/reservations.pl",
"Method=POST",
"RecContentType=text/html",
"Referer=http://localhost:1080/WebTours/reservations.pl",
"Snapshot=t12.inf",
"Mode=HTTP",
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=", ENDITEM,
"Name=expDate", "Value=", ENDITEM,
"Name=oldCCOption", "Value=", ENDITEM,
"Name=numPassengers", "Value=1", ENDITEM,
"Name=seatType", "Value=Business", ENDITEM,
"Name=seatPref", "Value=None", ENDITEM,
"Name=outboundFlight", "Value=001;0;10/26/2018", ENDITEM,
"Name=advanceDiscount", "Value=0", ENDITEM,
"Name=returnFlight", "Value=", ENDITEM,
"Name=JSFormSubmit", "Value=off", ENDITEM,
"Name=buyFlights.x", "Value=37", ENDITEM,
"Name=buyFlights.y", "Value=2", ENDITEM,
"Name=.cgifields", "Value=saveCC", ENDITEM,
LAST);
web_url("Itinerary Button",
"URL=http://localhost:1080/WebTours/welcome.pl?page=itinerary",
"Resource=0",
"RecContentType=text/html",
"Referer=http://localhost:1080/WebTours/nav.pl?page=menu&in=flights",
"Snapshot=t13.inf",
"Mode=HTTP",
LAST);
web_concurrent_start(NULL);
web_url("itinerary.pl",
"URL=http://localhost:1080/WebTours/itinerary.pl",
"Resource=0",
"RecContentType=text/html",
"Referer=http://localhost:1080/WebTours/welcome.pl?page=itinerary",
"Snapshot=t14.inf",
"Mode=HTTP",
LAST);
web_url("nav.pl_4",
"URL=http://localhost:1080/WebTours/nav.pl?page=menu&in=itinerary",
"Resource=0",
"RecContentType=text/html",
"Referer=http://localhost:1080/WebTours/welcome.pl?page=itinerary",
"Snapshot=t15.inf",
"Mode=HTTP",
LAST);
web_concurrent_end(NULL);
return 0;
}
|
|