对白boy
2018-09-04 15:14
web_url("index.htm",
"URL=http://127.0.0.1:1080/WebTours/index.htm",
"Resource=0",
"RecContentType=text/html",
"Referer=",
"Snapshot=t3.inf",
"Mode=HTML",
LAST);
lr_think_time(19);
lr_start_transaction("1_Login");
web_submit_form("login.pl",
"Snapshot=t4.inf",
ITEMDATA,
"Name=username", "Value=jojo", ENDITEM,
"Name=password", "Value=bean", ENDITEM,
"Name=login.x", "Value=0", ENDITEM,
"Name=login.y", "Value=0", ENDITEM,
LAST);
lr_end_transaction("1_Login",LR_AUTO);
lr_think_time(15);
web_image("Search Flights Button",
"Alt=Search Flights Button",
"Snapshot=t5.inf",
LAST);
lr_think_time(34);
lr_start_transaction("2_find flight");
web_submit_form("reservations.pl",
"Snapshot=t6.inf",
ITEMDATA,
"Name=depart", "Value=London", ENDITEM,
"Name=departDate", "Value=09/05/2018", ENDITEM,
"Name=arrive", "Value=Paris", ENDITEM,
"Name=returnDate", "Value=09/06/2018", ENDITEM,
"Name=numPassengers", "Value=1", ENDITEM,
"Name=roundtrip", "Value=<OFF>", ENDITEM,
"Name=seatPref", "Value=Window", ENDITEM,
"Name=seatType", "Value=First", ENDITEM,
"Name=findFlights.x", "Value=42", ENDITEM,
"Name=findFlights.y", "Value=15", ENDITEM,
LAST);
generator的菜单栏里点击tool--Recording Options--Rceording--HTMLbased script--HTML Advanced中选择第二项web_submit_data
美女带你走入LR性能测试框架基础
48932 学习 · 385 问题
相似问题