|
4#
楼主 |
发表于 2008-7-21 09:35:17
|
只看该作者
这个是完整的脚本,帮我看看吧谢谢!!!
Action()
{
web_set_max_html_param_len("1024");
web_url("examsystem",
"URL=http://192.168.8.2/examsystem/",
"Resource=0",
"RecContentType=text/html",
"Referer=",
"Snapshot=t1.inf",
"Mode=HTML",
EXTRARES,
"Url=image/bgp.jpg", ENDITEM,
LAST);
/* Registering parameter(s) from source task id 46
// {Siebel_Analytic_ViewState3} = "/wEPDwUKMTYyODM0NDA1OGQYAQUeX19Db250cm9sc1JlcXVpcmVQb3N0QmFja0tleV9fFgUFDEltYWdlQnV0dG9uMwUMSW1hZ2VCdXR0b240BQxJbWFnZUJ1dHRvbjUFDEltYWdlQnV0dG9uMQUMSW1hZ2VCdXR0b24yLOrxk4GH48eVhEXaOX5iqHQoKQs="
// */
web_reg_save_param("Siebel_Analytic_ViewState3",
"LB/IC=ViewState\" value=,\"",
"RB/IC=,\"",
"Ord=1",
"Search=Body",
"RelFrameId=1.1",
LAST);
web_submit_form("Login.aspx",
"Snapshot=t2.inf",
ITEMDATA,
"Name=txtuserid", "Value=HMD", ENDITEM,
"Name=txtpassword", "Value=8888", ENDITEM,
"Name=ImageButton1.x", "Value=24", ENDITEM,
"Name=ImageButton1.y", "Value=10", ENDITEM,
EXTRARES,
"Url=image/top_01.jpg", "Referer=http://192.168.8.2/examsystem/tpFrame.aspx", ENDITEM,
LAST);
web_url("tFrame.aspx",
"URL=http://192.168.8.2/examsystem/tFrame.aspx?index=0",
"Resource=0",
"RecContentType=text/html",
"Referer=",
"Snapshot=t3.inf",
"Mode=HTML",
EXTRARES,
"Url=Study/bulletin/DisplayBulletin.aspx", "Referer=", ENDITEM,
LAST);
web_image("dhaniu_03.jpg",
"Src=image/dhaniu_03.jpg",
"Snapshot=t4.inf",
LAST);
lr_think_time(4);
web_submit_data("tpFrame.aspx",
"Action=http://192.168.8.2/examsystem/tpFrame.aspx",
"Method=POST",
"RecContentType=text/html",
"Referer=http://192.168.8.2/examsystem/tpFrame.aspx",
"Snapshot=t5.inf",
"Mode=HTML",
ITEMDATA,
"Name=__VIEWSTATE", "Value={Siebel_Analytic_ViewState3}", ENDITEM,
"Name=__EVENTVALIDATION", "Value=/wEWBgK0q+maCgLSwsGJCgLSwv2aBALSwum/CwLSwpnTCALSwtXkAvT3dM+6ss0X92j6sdLFv3SV7PqL", ENDITEM,
"Name=ImageButton1.x", "Value=20", ENDITEM,
"Name=ImageButton1.y", "Value=11", ENDITEM,
LAST);
web_url("login.aspx",
"URL=http://192.168.8.2/examsystem/login.aspx",
"Resource=0",
"RecContentType=text/html",
"Referer=",
"Snapshot=t6.inf",
"Mode=HTML",
LAST);
return 0;
} |
|