TA的每日心情 | 衰 2016-6-30 20:23 |
---|
签到天数: 3 天 连续签到: 3 天 [LV.2]测试排长
|
第一次用这么高端的工具,一筹莫展,求助。。。
安装的LR版本是11.5,但是只找到11的教程。
想着应该差不多,就按照教程录了一个 Sample 的脚本(就是订机票那个)。
录制感觉是成功了,可是无法回放。
一点回放,Virtual User Generator(是叫VuGen吧?)就卡死了一样(但是标题的地方没有显示(未响应)),我也不知道他到底在干吗,什么反应都没,浏览器没有启动,VuGen下方的Output也没有东西输出,也不能对他做任何操作,移动窗口都不可以。
我用任务管理器看到新起了一个叫 HP.Utt.StandaloneDebugger.exe 的进程,我把这个进程杀掉,VuGen 会蹦出一个错误来(下图)
然后 VuGen 就恢复可以操作了,但是也找不到任何 error log。(可能是我没找到,如果有的话,请告诉我)
------------------------------------------------------------------------------------------------------------
录制的脚本如下
Action()
{
web_url("WebTours",
"URL=http://localhost:1080/WebTours",
"Resource=0",
"RecContentType=text/html",
"Referer=",
"Snapshot=t14.inf",
"Mode=HTML",
LAST);
lr_think_time(7);
web_submit_form("login.pl",
"Snapshot=t15.inf",
ITEMDATA,
"Name=username", "Value=jojo", ENDITEM,
"Name=password", "Value=bean", ENDITEM,
"Name=login.x", "Value=54", ENDITEM,
"Name=login.y", "Value=7", ENDITEM,
LAST);
web_image("Search Flights Button",
"Alt=Search Flights Button",
"Snapshot=t16.inf",
LAST);
lr_think_time(4);
web_submit_form("reservations.pl",
"Snapshot=t17.inf",
ITEMDATA,
"Name=depart", "Value=Frankfurt", ENDITEM,
"Name=departDate", "Value=06/28/2016", ENDITEM,
"Name=arrive", "Value=Denver", ENDITEM,
"Name=returnDate", "Value=06/29/2016", ENDITEM,
"Name=numPassengers", "Value=1", ENDITEM,
"Name=roundtrip", "Value=<OFF>", ENDITEM,
"Name=seatPref", "Value=None", ENDITEM,
"Name=seatType", "Value=Coach", ENDITEM,
"Name=findFlights.x", "Value=37", ENDITEM,
"Name=findFlights.y", "Value=9", ENDITEM,
LAST);
web_submit_form("reservations.pl_2",
"Snapshot=t18.inf",
ITEMDATA,
"Name=outboundFlight", "Value=101;343;06/28/2016", ENDITEM,
"Name=reserveFlights.x", "Value=44", ENDITEM,
"Name=reserveFlights.y", "Value=5", ENDITEM,
LAST);
lr_think_time(8);
web_submit_form("reservations.pl_3",
"Snapshot=t19.inf",
ITEMDATA,
"Name=firstName", "Value=", ENDITEM,
"Name=lastName", "Value=", ENDITEM,
"Name=address1", "Value=", ENDITEM,
"Name=address2", "Value=", ENDITEM,
"Name=pass1", "Value=", ENDITEM,
"Name=creditCard", "Value=12345678", ENDITEM,
"Name=expDate", "Value=06/10", ENDITEM,
"Name=saveCC", "Value=<OFF>", ENDITEM,
"Name=buyFlights.x", "Value=43", ENDITEM,
"Name=buyFlights.y", "Value=10", ENDITEM,
LAST);
lr_think_time(9);
web_image("SignOff Button",
"Alt=SignOff Button",
"Snapshot=t20.inf",
LAST);
return 0;
}
任何信息对我都是有帮助的,help~~
|
|