|
2#
楼主 |
发表于 2005-8-31 10:43:14
|
只看该作者
是这样吗?
vuser_init()
{
/*
* 登录部分
*/
web_url("webbms",
"URL=http://201.14.0.9/wes/",
"Resource=0",
"RecContentType=text/html",
"Referer=",
"Snapshot=t1.inf",
"Mode=HTML",
LAST);
web_submit_form("login.aspx",
"Snapshot=t2.inf",
ITEMDATA,
"Name=DropDownListdb", "Value=debug", ENDITEM,
"Name=TextBoxpassword", "Value=b", ENDITEM,
"Name=TextBoxusername", "Value=kfb", ENDITEM,
"Name=Buttonok", "Value=鐧诲綍", ENDITEM,
LAST);
lr_think_time(10);
return 0;
}
Action()
{
/*
* 操作部分
*/
web_url("default.aspx",
"URL=http://201.14.0.9/wes//default.aspx?action=new",
"Resource=0",
"RecContentType=text/html",
"Referer=",
"Snapshot=t3.inf",
"Mode=HTML",
LAST);
lr_think_time(4);
web_url("operatebug.aspx",
"URL=http://201.14.0.9/wes//operatebug.aspx?action=new",
"Resource=0",
"RecContentType=text/html",
"Referer=",
"Snapshot=t4.inf",
"Mode=HTML",
LAST);
return 0;
}
vuser_end()
{
/*
* 退出部分
*/
web_url("login.aspx_2",
"URL=http://201.14.0.9/wes/login.aspx",
"Resource=0",
"RecContentType=text/html",
"Referer=",
"Snapshot=t9.inf",
"Mode=HTML",
LAST);
return 0;
} |
|