|
Loadrunner在回放时报错:
/* -------------------------------------------------------------------------------
Script Title :
Script Description :
Recorder Version : 1196
------------------------------------------------------------------------------- */
vuser_init()
{
web_url("c6",
"URL=http://192.168.1.33/c6",
"Resource=0",
"RecContentType=text/html",
"Referer=",
"Snapshot=t1.inf",
"Mode=HTML",
LAST);
/* Registering parameter(s) from source task id 5
// {Siebel_Analytic_ViewState2} = "dDwtMTk4NjAzMTQ0OTt0PDtsPGk8MD47PjtsPHQ8O2w8aTwyPjtpPDM+O2k8ND47aTw1PjtpPDY+O2k8Nz47PjtsPHQ8cDxsPFZpc2libGU7PjtsPG88Zj47Pj47Oz47dDxwPGw8VmlzaWJsZTs+O2w8bzxmPjs+Pjs7Pjt0PHA8bDxWaXNpYmxlOz47bDxvPGY+Oz4+Ozs+O3Q8cDxsPFZpc2libGU7PjtsPG88Zj47Pj47Oz47dDx0PDs7bDxpPDA+Oz4+Ozs+O3Q8dDxwPHA8bDxWaXNpYmxlOz47bDxvPGY+Oz4+Oz47Oz47Oz47Pj47Pj47PvWk6H/nojcaO8u/RkZwWxjudkcB"
// */
web_reg_save_param("Siebel_Analytic_ViewState2",
"LB/IC=ViewState\" value=\"",
"RB/IC=\"",
"Ord=1",
"Search=Body",
"RelFrameId=1",
LAST);
web_url("PassWord.aspx",
"URL=http://192.168.1.33/c6/Jhsoft.Web.login/PassWord.aspx",
"Resource=0",
"RecContentType=text/html",
"Referer=",
"Snapshot=t2.inf",
"Mode=HTML",
EXTRARES,
"Url=images/zh-cn/landing_bg.jpg", ENDITEM,
"Url=images/zh-cn/bottom_bg.gif", ENDITEM,
"Url=images/zh-cn/login_bt_off.gif", ENDITEM,
"Url=images/zh-cn/re_pw_on.gif", ENDITEM,
LAST);
return 0;
}
Action()
{
lr_start_transaction("2");
lr_rendezvous("2");
web_set_max_html_param_len("102400");
lr_think_time(10);
web_url("login_bt_off.gif",
"URL=http://192.168.1.33/c6/Jhsoft.Web.login/images/zh-cn/login_bt_off.gif",
"Resource=1",
"RecContentType=image/gif",
"Referer=http://192.168.1.33/c6/Jhsoft.Web.login/PassWord.aspx",
"Snapshot=t3.inf",
LAST);
web_url("login_bt_on.gif",
"URL=http://192.168.1.33/c6/Jhsoft.Web.login/images/zh-cn/login_bt_on.gif",
"Resource=1",
"RecContentType=image/gif",
"Referer=http://192.168.1.33/c6/Jhsoft.Web.login/PassWord.aspx",
"Snapshot=t4.inf",
LAST);
web_url("login_bt_off.gif_2",
"URL=http://192.168.1.33/c6/Jhsoft.Web.login/images/zh-cn/login_bt_off.gif",
"Resource=1",
"RecContentType=image/gif",
"Referer=http://192.168.1.33/c6/Jhsoft.Web.login/PassWord.aspx",
"Snapshot=t5.inf",
LAST);
web_submit_data("PassWord.aspx_2",
"Action=http://192.168.1.33/c6/Jhsoft.Web.login/PassWord.aspx",
"Method=POST",
"RecContentType=text/html",
"Referer=http://192.168.1.33/c6/Jhsoft.Web.login/PassWord.aspx",
"Snapshot=t6.inf",
"Mode=HTML",
ITEMDATA,
"Name=__EVENTTARGET", "Value=LBEnter", ENDITEM,
"Name=__EVENTARGUMENT", "Value=", ENDITEM,
"Name=__VIEWSTATE", "Value={Siebel_Analytic_ViewState2}", ENDITEM,
"Name=UserName", "Value=wangr", ENDITEM,
"Name=Password2", "Value=2", ENDITEM,
"Name=ddlLogin", "Value=密码登录", ENDITEM,
"Name=hidEpass", "Value=2", ENDITEM,
"Name=hidLoginState", "Value=", ENDITEM,
"Name=hidIsValid", "Value=0", ENDITEM,
EXTRARES,
"Url=images/zh-cn/bottom_bg.gif", ENDITEM,
"Url=images/zh-cn/landing_bg.jpg", ENDITEM,
"Url=images/zh-cn/re_pw_on.gif", ENDITEM,
LAST);
web_url("Index.aspx",
"URL=http://192.168.1.33/c6/JHSoft.Web.WorkFlat/Index.aspx",
"Resource=0",
"RecContentType=text/html",
"Referer=",
"Snapshot=t7.inf",
"Mode=HTML",
EXTRARES,
"Url=../images/bluecrystal/index_bg.gif", ENDITEM,
"Url=../images/bluecrystal/logo.gif", ENDITEM,
"Url=../images/bluecrystal/index_01.gif", ENDITEM,
"Url=../images/bluecrystal/index_10.gif", ENDITEM,
"Url=../images/bluecrystal/index_03.gif", ENDITEM,
"Url=../images/bluecrystal/index_07.gif", ENDITEM,
"Url=../images/bluecrystal/index_05.gif", ENDITEM,
"Url=../images/bluecrystal/index_16.gif", ENDITEM,
"Url=../images/bluecrystal/index_17.gif", ENDITEM,
"Url=../images/ico_119.gif", ENDITEM,
"Url=../images/bluecrystal/index_04.gif", ENDITEM,
"Url=../images/bluecrystal/index_06.gif", ENDITEM,
"Url=../images/ico_32.gif", ENDITEM,
"Url=../images/bluecrystal/index_02.gif", ENDITEM,
LAST);
web_custom_request("aspsession.asp",
"URL=http://192.168.1.33/c6/Control/aspsession.asp?user=wangr",
"Method=POST",
"Resource=0",
"RecContentType=text/html",
"Referer=http://192.168.1.33/c6/JHSoft.Web.WorkFlat/Index.aspx",
"Mode=HTML",
"EncType=",
"Body=<root></root>",
LAST);
lr_end_transaction("2",LR_AUTO);
web_url("wangr.xml",
"URL=http://192.168.1.33/c6/JHSoft.Web.WorkFlat/ShortcutSetting/wangr.xml",
"Resource=0",
"RecContentType=text/xml",
"Referer=http://192.168.1.33/c6/JHSoft.Web.WorkFlat/Index.aspx",
"Snapshot=t8.inf",
"Mode=HTML",
LAST);
web_custom_request("GetGroupNavigation.aspx",
"URL=http://192.168.1.33/c6/JHSoft.Web.WorkFlat/GetGroupNavigation.aspx?nodecode=",
"Method=POST",
"Resource=0",
"RecContentType=text/html",
"Referer=http://192.168.1.33/c6/JHSoft.Web.WorkFlat/NavigationBar.aspx",
"Snapshot=t9.inf",
"Mode=HTML",
"EncType=",
LAST);
web_custom_request("aspsession.asp_2",
"URL=http://192.168.1.33/c6/Control/aspsession.asp?user=wangr",
"Method=POST",
"Resource=0",
"RecContentType=text/html",
"Referer=http://192.168.1.33/c6/JHSoft.Web.WorkFlat/NavigationBar.aspx",
"Mode=HTML",
"EncType=",
LAST);
return 0;
}
错误信息如下:
vuser_init.c(33): Error -26377: No match found for the requested parameter "Siebel_Analytic_ViewState2". Check whether the requested boundaries exist in the response data. Also, if the data you want to save exceeds 256 bytes, use web_set_max_html_param_len to increase the parameter size [MsgId: MERR-26377]
vuser_init.c(33): web_url("PassWord.aspx") highest severity level was "ERROR", 121856 body bytes, 3681 header bytes [MsgId: MMSG-26388] |
|