|
用loadrunner9.0 录制示例 登陆 flight ,回放脚本失败,提示信息:
Warning: Extension LrXml.dll reports error -1 on call to function ExtPerThreadInitialize
Error: Vuser failed to initialize extension LrXml.dll.
Vuser Terminated.
什么意思呢,请教 高手。以前用8.1版本录制回放都很顺利,操作一模一样阿。8.1过期,下了个9.0试用版。
附脚本:
/* -------------------------------------------------------------------------------
Script Title :
Script Description :
Recorder Version : 1362
------------------------------------------------------------------------------- */
vuser_init()
{
web_url("WebTours",
"URL=http://127.0.0.1:1080/WebTours/",
"Resource=0",
"RecContentType=text/html",
"Referer=",
"Snapshot=t1.inf",
"Mode=HTML",
LAST);
lr_think_time(7);
web_submit_form("login.pl",
"Snapshot=t2.inf",
ITEMDATA,
"Name=username", "Value=jojo", ENDITEM,
"Name=password", "Value=bean", ENDITEM,
"Name=login.x", "Value=25", ENDITEM,
"Name=login.y", "Value=9", ENDITEM,
LAST);
web_image("Search Flights Button",
"Alt=Search Flights Button",
"Snapshot=t3.inf",
LAST);
lr_think_time(4);
web_submit_form("reservations.pl",
"Snapshot=t4.inf",
ITEMDATA,
"Name=depart", "Value=Denver", ENDITEM,
"Name=departDate", "Value=08/25/2007", ENDITEM,
"Name=arrive", "Value=London", ENDITEM,
"Name=returnDate", "Value=08/26/2007", 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=42", ENDITEM,
"Name=findFlights.y", "Value=10", ENDITEM,
LAST);
web_submit_form("reservations.pl_2",
"Snapshot=t5.inf",
ITEMDATA,
"Name=outboundFlight", "Value=020;338;08/25/2007", ENDITEM,
"Name=reserveFlights.x", "Value=40", ENDITEM,
"Name=reserveFlights.y", "Value=15", ENDITEM,
LAST);
lr_think_time(9);
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=creditCard", "Value=1234578", ENDITEM,
"Name=expDate", "Value=06/06", ENDITEM,
"Name=saveCC", "Value=<OFF>", ENDITEM,
"Name=buyFlights.x", "Value=43", ENDITEM,
"Name=buyFlights.y", "Value=10", ENDITEM,
LAST);
web_image("Itinerary Button",
"Alt=Itinerary Button",
"Snapshot=t7.inf",
LAST);
web_image("Home Button",
"Alt=Home Button",
"Snapshot=t8.inf",
LAST);
web_image("SignOff Button",
"Alt=SignOff Button",
"Snapshot=t9.inf",
LAST);
return 0;
} |
|