|
9#
楼主 |
发表于 2007-6-30 15:43:11
|
只看该作者
这是我录制的代码
Action()
{
web_set_max_html_param_len("2048");
/* Registering parameter(s) from source task id 3
// {Siebel_Analytic_ViewState2} = "dDwxOTkxNjg0Mjg1Ozs+Gwh8PX8Gcsw4BO9cuTnXsHovcl8="
// */
web_reg_save_param("Siebel_Analytic_ViewState2",
"LB/IC=ViewState\" value=\"",
"RB/IC=\"",
"Ord=1",
"RelFrameId=1",
"Search=Body",
LAST);
web_url("Login.aspx",
"URL=http://192.168.1.251/Login.aspx?ReturnUrl=%2fDefault.aspx",
"Resource=0",
"RecContentType=text/html",
"Referer=",
"Snapshot=t1.inf",
"Mode=HTTP",
LAST);
web_url("WebFrame.css",
"URL=http://192.168.1.251/Css/WebFrame.css",
"Resource=1",
"RecContentType=text/css",
"Referer=http://192.168.1.251/Login.aspx?ReturnUrl=%2fDefault.aspx",
"Snapshot=t2.inf",
LAST);
web_concurrent_start(NULL);
web_url("user.gif",
"URL=http://192.168.1.251/Images/user.gif",
"Resource=1",
"RecContentType=image/gif",
"Referer=http://192.168.1.251/Login.aspx?ReturnUrl=%2fDefault.aspx",
"Snapshot=t3.inf",
LAST);
web_url("password.gif",
"URL=http://192.168.1.251/Images/password.gif",
"Resource=1",
"RecContentType=image/gif",
"Referer=http://192.168.1.251/Login.aspx?ReturnUrl=%2fDefault.aspx",
"Snapshot=t4.inf",
LAST);
web_concurrent_end(NULL);
lr_think_time(9);
web_custom_request("Login.aspx_2",
"URL=http://192.168.1.251/Login.aspx?ReturnUrl=%2fDefault.aspx&Anthem_CallBack=true",
"Method=POST",
"Resource=0",
"RecContentType=text/html",
"Referer=http://192.168.1.251/Login.aspx?ReturnUrl=%2fDefault.aspx",
"Snapshot=t5.inf",
"Mode=HTTP",
"EncType=application/x-www-form-urlencoded; charset=utf-8",
"Body=&Anthem_UpdatePage=true&__VIEWSTATE={Siebel_Analytic_ViewState2_URL}&TextBox1=chenhaitao&TextBox2=123456&TextBox3=&__EVENTTARGET=loginButton&__EVENTARGUMENT=",
LAST);
web_convert_param("Siebel_Analytic_ViewState2_URL",
"SourceString={Siebel_Analytic_ViewState2}",
"SourceEncoding=HTML",
"TargetEncoding=URL",
LAST);
web_url("Default.aspx",
"URL=http://192.168.1.251//Default.aspx",
"Resource=0",
"RecContentType=text/html",
"Referer=",
"Snapshot=t6.inf",
"Mode=HTTP",
LAST);
web_concurrent_start(NULL);
web_url("MainMenu.js",
"URL=http://192.168.1.251//common/MainMenu.js",
"Resource=1",
"RecContentType=application/x-javascript",
"Referer=http://192.168.1.251//Default.aspx",
"Snapshot=t7.inf",
LAST);
web_url("WebFrame.css_2",
"URL=http://192.168.1.251//Css/WebFrame.css",
"Resource=1",
"RecContentType=text/css",
"Referer=http://192.168.1.251//Default.aspx",
"Snapshot=t8.inf",
LAST);
web_url("MainMenu.css",
"URL=http://192.168.1.251//Css/MainMenu.css",
"Resource=1",
"RecContentType=text/css",
"Referer=http://192.168.1.251//Default.aspx",
"Snapshot=t9.inf",
LAST);
web_url("MainMenu.js_2",
"URL=http://192.168.1.251/Common/MainMenu.js",
"Resource=1",
"RecContentType=application/x-javascript",
"Referer=http://192.168.1.251//Default.aspx",
"Snapshot=t10.inf",
LAST);
web_url("closemenu.gif",
"URL=http://192.168.1.251//Images/closemenu.gif",
"Resource=1",
"RecContentType=image/gif",
"Referer=http://192.168.1.251//Default.aspx",
"Snapshot=t12.inf",
LAST);
web_url("arrow.gif",
"URL=http://192.168.1.251/Images/arrow.gif",
"Resource=1",
"RecContentType=image/gif",
"Referer=http://192.168.1.251//Default.aspx",
"Snapshot=t13.inf",
LAST);
web_url("NoticeRoll.aspx",
"URL=http://192.168.1.251//BaseData/NoticeRoll.aspx",
"Resource=0",
"RecContentType=text/html",
"Referer=http://192.168.1.251//Default.aspx",
"Snapshot=t16.inf",
"Mode=HTTP",
LAST);
web_url("MainInfo.aspx",
"URL=http://192.168.1.251//MainInfo.aspx",
"Resource=0",
"RecContentType=text/html",
"Referer=http://192.168.1.251//Default.aspx",
"Snapshot=t17.inf",
"Mode=HTTP",
LAST);
web_concurrent_end(NULL);
web_url("title.gif",
"URL=http://192.168.1.251//Images/title.gif",
"Resource=1",
"RecContentType=image/gif",
"Referer=http://192.168.1.251//Default.aspx",
"Snapshot=t11.inf",
LAST);
web_concurrent_start(NULL);
web_url("close1.jpg",
"URL=http://192.168.1.251//images/close1.jpg",
"Resource=1",
"RecContentType=image/jpeg",
"Referer=http://192.168.1.251//Default.aspx",
"Snapshot=t14.inf",
LAST);
web_url("bg_w1.gif",
"URL=http://192.168.1.251//images/bg_w1.gif",
"Resource=1",
"RecContentType=image/gif",
"Referer=http://192.168.1.251//Default.aspx",
"Snapshot=t15.inf",
LAST);
web_concurrent_end(NULL);
web_concurrent_start(NULL);
web_url("tabpane.js",
"URL=http://192.168.1.251//common/tabpane/js/tabpane.js",
"Resource=1",
"RecContentType=application/x-javascript",
"Referer=http://192.168.1.251//MainInfo.aspx",
"Snapshot=t18.inf",
LAST);
web_url("tab.css",
"URL=http://192.168.1.251//common/tabpane/css/luna/tab.css",
"Resource=1",
"RecContentType=text/css",
"Referer=http://192.168.1.251//MainInfo.aspx",
"Snapshot=t19.inf",
LAST);
web_url("ProgressBar.js",
"URL=http://192.168.1.251/common/ProgressBar.js",
"Resource=1",
"RecContentType=application/x-javascript",
"Referer=http://192.168.1.251//MainInfo.aspx",
"Snapshot=t20.inf",
LAST);
web_url("winlib.js",
"URL=http://192.168.1.251/common/winlib.js",
"Resource=1",
"RecContentType=application/x-javascript",
"Referer=http://192.168.1.251//MainInfo.aspx",
"Snapshot=t22.inf",
LAST);
web_concurrent_end(NULL);
web_url("loading.gif",
"URL=http://192.168.1.251/images/loading.gif",
"Resource=1",
"RecContentType=image/gif",
"Referer=http://192.168.1.251//MainInfo.aspx",
"Snapshot=t21.inf",
LAST);
web_concurrent_start(NULL); |
|