loadrunner录制脚本的时候每一个操作步骤都有停顿
loadrunner录制脚本的时候每一个操作步骤都有停顿,但是在脚本里没有生成thinktime方法<p>Action()
{
web_reg_find("Text=Web Tours",
LAST);</p><p>web_url("WebTours",
"URL=http://127.0.0.1:1080/WebTours/",
"Resource=0",
"RecContentType=text/html",
"Referer=",
"Snapshot=t1.inf",
"Mode=HTML",
LAST);</p><p>web_url("favicon.ico",
"URL=http://127.0.0.1:1080/favicon.ico",
"Resource=1",
"Referer=",
LAST);</p><p>lr_start_transaction("login");</p><p>web_reg_find("Text=Web Tours",
LAST);</p><p>web_submit_form("login.pl",
"Snapshot=t2.inf",
ITEMDATA,
"Name=username", "Value=jojo", ENDITEM,
"Name=password", "Value=bean", ENDITEM,
"Name=login.x", "Value=63", ENDITEM,
"Name=login.y", "Value=15", ENDITEM,
LAST);</p><p>lr_end_transaction("login",LR_AUTO);</p><p>lr_start_transaction("buy");</p><p>web_reg_find("Text=Web Tours",
LAST);</p><p>web_image("Search Flights Button",
"Alt=Search Flights Button",
"Snapshot=t3.inf",
LAST);</p><p>web_reg_find("Text=Flight Selections",
LAST);</p><p>web_submit_form("reservations.pl",
"Snapshot=t4.inf",
ITEMDATA,
"Name=depart", "Value=Denver", ENDITEM,
"Name=departDate", "Value=01/02/2020", ENDITEM,
"Name=arrive", "Value=Frankfurt", ENDITEM,
"Name=returnDate", "Value=01/03/2020", ENDITEM,
"Name=numPassengers", "Value=14", ENDITEM,
"Name=roundtrip", "Value=<OFF>", ENDITEM,
"Name=seatPref", "Value=None", ENDITEM,
"Name=seatType", "Value=Coach", ENDITEM,
"Name=findFlights.x", "Value=53", ENDITEM,
"Name=findFlights.y", "Value=4", ENDITEM,
LAST);</p><p>web_reg_find("Text=Flight Reservation",
LAST);</p><p>web_submit_form("reservations.pl_2",
"Snapshot=t5.inf",
ITEMDATA,
"Name=outboundFlight", "Value=011;343;01/02/2020", ENDITEM,
"Name=reserveFlights.x", "Value=37", ENDITEM,
"Name=reserveFlights.y", "Value=13", ENDITEM,
LAST);</p><p>web_reg_find("Text=Reservation Made!",
LAST);</p><p>web_submit_form("reservations.pl_3",
"Snapshot=t6.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=pass2", "Value=141", ENDITEM,
"Name=pass3", "Value=", ENDITEM,
"Name=pass4", "Value=", ENDITEM,
"Name=pass5", "Value=", ENDITEM,
"Name=pass6", "Value=", ENDITEM,
"Name=pass7", "Value=", ENDITEM,
"Name=pass8", "Value=", ENDITEM,
"Name=pass9", "Value=", ENDITEM,
"Name=pass10", "Value=", ENDITEM,
"Name=pass11", "Value=", ENDITEM,
"Name=pass12", "Value=", ENDITEM,
"Name=pass13", "Value=", ENDITEM,
"Name=pass14", "Value=", ENDITEM,
"Name=creditCard", "Value=", ENDITEM,
"Name=expDate", "Value=", ENDITEM,
"Name=saveCC", "Value=<OFF>", ENDITEM,
"Name=buyFlights.x", "Value=36", ENDITEM,
"Name=buyFlights.y", "Value=10", ENDITEM,
LAST);</p><p>lr_end_transaction("buy",LR_AUTO);</p><p>return 0;
}</p>
看看选项内是否配置了
页:
[1]