为了账号安全,请及时绑定邮箱和手机立即绑定

没有任何辨识码

录制好脚本以后没有任何增强便可以回放成功

Action()

{


web_url("WebTours", 

"URL=http://127.0.0.1:1080/WebTours/", 

"Resource=0", 

"RecContentType=text/html", 

"Referer=", 

"Snapshot=t4.inf", 

"Mode=HTML", 

LAST);


lr_think_time(25);


lr_start_transaction("1_login");


web_submit_form("login.pl", 

"Snapshot=t5.inf", 

ITEMDATA, 

"Name=username", "Value=jojo", ENDITEM, 

"Name=password", "Value=bean", ENDITEM, 

"Name=login.x", "Value=40", ENDITEM, 

"Name=login.y", "Value=11", ENDITEM, 

LAST);


lr_think_time(36);


lr_start_transaction("2_chaZhao");


web_image("Search Flights Button", 

"Alt=Search Flights Button", 

"Snapshot=t6.inf", 

LAST);


lr_think_time(11);


web_submit_form("reservations.pl", 

"Snapshot=t7.inf", 

ITEMDATA, 

"Name=depart", "Value=London", ENDITEM, 

"Name=departDate", "Value=11/17/2018", ENDITEM, 

"Name=arrive", "Value=San Francisco", ENDITEM, 

"Name=returnDate", "Value=11/18/2018", ENDITEM, 

"Name=numPassengers", "Value=1", ENDITEM, 

"Name=roundtrip", "Value=<OFF>", ENDITEM, 

"Name=seatPref", "Value=None", ENDITEM, 

"Name=seatType", "Value=First", ENDITEM, 

"Name=findFlights.x", "Value=54", ENDITEM, 

"Name=findFlights.y", "Value=9", ENDITEM, 

LAST);


lr_think_time(28);


lr_start_transaction("3_xuanze");


web_submit_form("reservations.pl_2", 

"Snapshot=t8.inf", 

ITEMDATA, 

"Name=outboundFlight", "Value=262;1039;11/17/2018", ENDITEM, 

"Name=reserveFlights.x", "Value=55", ENDITEM, 

"Name=reserveFlights.y", "Value=9", ENDITEM, 

LAST);


lr_think_time(47);


lr_start_transaction("4_ziFu");


web_submit_form("reservations.pl_3", 

"Snapshot=t9.inf", 

ITEMDATA, 

"Name=firstName", "Value=Jojo", ENDITEM, 

"Name=lastName", "Value=Bean", ENDITEM, 

"Name=address1", "Value=beijing", ENDITEM, 

"Name=address2", "Value=erhuang", ENDITEM, 

"Name=pass1", "Value=Jojo Bean", ENDITEM, 

"Name=creditCard", "Value=123456", ENDITEM, 

"Name=expDate", "Value=123", ENDITEM, 

"Name=saveCC", "Value=<OFF>", ENDITEM, 

"Name=buyFlights.x", "Value=55", ENDITEM, 

"Name=buyFlights.y", "Value=14", ENDITEM, 

LAST);


lr_think_time(6);


web_image("Itinerary Button", 

"Alt=Itinerary Button", 

"Snapshot=t10.inf", 

LAST);


lr_think_time(23);


lr_start_transaction("5_tuiChu");


web_image("SignOff Button", 

"Alt=SignOff Button", 

"Snapshot=t11.inf", 

LAST);


return 0;

}


正在回答

1 回答

回放成功,只能代码你的脚本没有语法错误,不代表你可以进行业务场景回放成功

0 回复 有任何疑惑可以回复我~

举报

0/150
提交
取消

没有任何辨识码

我要回答 关注问题
意见反馈 帮助中心 APP下载
官方微信