|
2#
楼主 |
发表于 2008-12-13 14:05:42
|
只看该作者
只是录制了登录,script在下面
/* -------------------------------------------------------------------------------
Script Title :
Script Description :
Recorder Version : 1196
------------------------------------------------------------------------------- */
vuser_init()
{
web_url("com.mercurytours.servlet.WelcomeServlet",
"URL=http://localhost/servlets/com.mercurytours.servlet.WelcomeServlet",
"Resource=0",
"RecContentType=text/html",
"Referer=",
"Snapshot=t1.inf",
"Mode=HTML",
LAST);
lr_start_transaction("Sign In");
web_submit_form("com.mercurytours.servlet.SignonServlet",
"Snapshot=t2.inf",
ITEMDATA,
"Name=userName", "Value=myuser", ENDITEM,
"Name=password", "Value=MYPASSWD", ENDITEM,
"Name=login.x", "Value=13", ENDITEM,
"Name=login.y", "Value=9", ENDITEM,
EXTRARES,
"Url=../classes/calendar/showCalendar.class", "Referer=", ENDITEM,
"Url=../classes/calendar/CalSelect.class", "Referer=", ENDITEM,
"Url=../classes/calendar/Calendar.class", "Referer=", ENDITEM,
"Url=../classes/calendar/showCalendar$SymAction.class", "Referer=", ENDITEM,
LAST);
lr_end_transaction("Sign In",LR_AUTO);
return 0;
} |
|