|
-Web 服务器 .Net 1.1
-操作系统 Windows Server 2003 with SP1
-应用程序 IIS
数据库:SQL server 2000
开发语言:C#
LR协议:web(http/html)
操作:录制一个登陆事件
问题:当录制开始时,登陆界面出现,这个时候LR中已经录制了一段脚本,也就是下面脚本中登陆事件前的脚本,录制完后,回放出错(请看附件)。这个错误如何解决,请高手指点。
LR脚本错误:
vuser_init.c(18): Error -26612: HTTP Status-Code=500 (Internal Server Error) for "http://10.21.109.31/culture/Logon.aspx?ReturnUrl=%2fculture%2fDefault.aspx" [MsgId: MERR-26612]
vuser_init.c(18): Error -26377: No match found for the requested parameter "Siebel_Analytic_ViewState3". 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(18): web_url("Default.aspx") highest severity level was "ERROR", 56125 body bytes, 1457 header bytes [MsgId: MMSG-26388]
备注:参数化Url=http://10.21.109.31/culture/;http://10.21.109.31/culture/Logo ... ture%2fDefault.aspx这个连接在IE中可以正常使用
尝试:1.使用web_set_max_html_param_len改变关联字段长度;2.把viewstate的关联用源码替换回来;3.把 web_url("Default.aspx",
"URL=http://10.21.109.31/culture/Default.aspx",
LAST);单独拿出来运行
附件中有脚本运行完后的错误抓图。
脚本: web_reg_save_param("Siebel_Analytic_ViewState3",
"LB/IC=ViewState\" value=\"",
"RB/IC=\"",
"Ord=1",
"Search=Body",
"RelFrameId=1",
LAST);
web_url("Default.aspx",
"URL=http://10.21.109.31/culture/Default.aspx",
"TargetFrame=",
"Resource=0",
"RecContentType=text/html",
"Referer=",
"Snapshot=t1.inf",
"Mode=HTML",
EXTRARES,
"Url=images/deng_13.jpg", "Referer=http://10.21.109.31/culture/Logon.aspx?ReturnUrl=%2fculture%2fDefault.aspx", ENDITEM,
"Url=images/deng_4.jpg", "Referer=http://10.21.109.31/culture/Logon.aspx?ReturnUrl=%2fculture%2fDefault.aspx", ENDITEM,
"Url=images/deng_7.jpg", "Referer=http://10.21.109.31/culture/Logon.aspx?ReturnUrl=%2fculture%2fDefault.aspx", ENDITEM,
LAST);
web_submit_data("self.ini",
"Action=http://go.moview.com.cn/files/self.ini",
"Method=POST",
"TargetFrame=",
"Referer=",
"Mode=HTML",
ITEMDATA,
LAST);
lr_start_transaction("Login in");
/* Registering parameter(s) from source task id 25
// {Siebel_Analytic_ViewState5} = "dDwtMzU4MjQzNTk3O3Q8O2w8aTwxPjs+O2w8dDw7bDxpPDE5PjtpPDIxPjs+O2w8dDxwPDtwPGw8b25jbGljazs+O2w8cmV0dXJuIGNvbmZpcm0oJ+aCqOehruWumumAgOWHuuWQlz8nKTs+Pj47Oz47dDxwPHA8bDxUZXh0Oz47bDzmrKLov47mgqjvvJrns7vnu5/nrqHnkIblkZggICAg5LuK5aSp5pivMjAwNuW5tDjmnIgx5pelICAgIOaYn+acn+S6jCAgIOaCqOacieaWsOmCruS7tlw8YSBocmVmPSMgb25jbGljaz0nVG9NYWlsKClcOydcPlw8Zm9udCBjb2xvcj1yZWRcPjBcPC9mb250XD5cPC9hXD7lsIE7Pj47Pjs7Pjs+Pjs+PjtsPGltYkRlc2t0b3A7aW1iQ29tbW9uT0E7aW1iRXhlY3V0ZUxhdztpbWJDb21wYW55SW5mbztpbWJFeGVMYXdNb25pdG9yO2ltYkN1bHR1cmVNYWtldDtpbWJHcmFkZTtpbWJTeXNNYW5hZ2VyO2ltYkhlbHA7aW1iTG9naW5PdXQ7Pj7WHePUFwHp4p2xh2Q1SDO2y/zFZQ=="
// */
web_reg_save_param("Siebel_Analytic_ViewState5",
"LB/IC=ViewState\" value=\"",
"RB/IC=\"",
"Ord=1",
"Search=Body",
"RelFrameId=1.1",
LAST);
web_submit_data("Logon.aspx",
"Action=http://10.21.109.31/culture/Logon.aspx?ReturnUrl=%2fculture%2fDefault.aspx",
"Method=POST",
"TargetFrame=",
"RecContentType=text/html",
"Referer=http://10.21.109.31/culture/Logon.aspx?ReturnUrl=%2fculture%2fDefault.aspx",
"Snapshot=t3.inf",
"Mode=HTML",
ITEMDATA,
"Name=__VIEWSTATE", "Value={Siebel_Analytic_ViewState3}", ENDITEM,
"Name=txtUserName", "Value={UserName}", ENDITEM,
"Name=txtPassWord", "Value={PassWord}", ENDITEM,
"Name=hidUser", "Value=", ENDITEM,
"Name=hidState", "Value=-1", ENDITEM,
"Name=imbLogin.x", "Value=48", ENDITEM,
"Name=imbLogin.y", "Value=18", ENDITEM,
EXTRARES,
"Url=images/index_23.gif", "Referer=http://10.21.109.31/culture/topFrame.aspx", ENDITEM,
"Url=images/index_2.gif", "Referer=http://10.21.109.31/culture/topFrame.aspx", ENDITEM,
"Url=../webctrl_client/1_0/treeview.htc", "Referer=http://10.21.109.31/culture/Default.aspx", ENDITEM,
"Url=images/index_5.gif", "Referer=http://10.21.109.31/culture/topFrame.aspx", ENDITEM,
LAST);
web_url("mainFrame.aspx",
"URL=http://10.21.109.31/culture/mainFrame.aspx",
"TargetFrame=",
"Resource=0",
"RecContentType=text/html",
"Referer=http://10.21.109.31/culture/Default.aspx",
"Snapshot=t4.inf",
"Mode=HTML",
LAST);
web_url("leftFrame.aspx",
"URL=http://10.21.109.31/culture/leftFrame.aspx?FunctionID=1000",
"TargetFrame=",
"Resource=0",
"RecContentType=text/html",
"Referer=http://10.21.109.31/culture/Default.aspx",
"Snapshot=t5.inf",
"Mode=HTML",
LAST);
web_url("TaskList.aspx",
"URL={Url}TaskList.aspx?TaskTypeID=99&ProcStatus=0",
"TargetFrame=",
"Resource=0",
"RecContentType=text/html",
"Referer={Url}Default.aspx",
"Snapshot=t6.inf",
"Mode=HTML",
EXTRARES,
"Url=../webctrl_client/1_0/treeview.htc", "Referer=", ENDITEM,
"Url=images/index_23.gif", "Referer={Url}leftFrame.aspx?FunctionID=1000", ENDITEM,
"Url=../webctrl_client/1_0/treeimages/Rminus.gif", "Referer={Url}leftFrame.aspx?FunctionID=1000", ENDITEM,
"Url=../webctrl_client/1_0/treeimages/Tminus.gif", "Referer={Url}leftFrame.aspx?FunctionID=1000", ENDITEM,
"Url=../webctrl_client/1_0/treeimages/white.gif", "Referer={Url}leftFrame.aspx?FunctionID=1000", ENDITEM,
"Url=../webctrl_client/1_0/treeimages/T.gif", "Referer={Url}leftFrame.aspx?FunctionID=1000", ENDITEM,
"Url=../webctrl_client/1_0/treeimages/I.gif", "Referer={Url}leftFrame.aspx?FunctionID=1000", ENDITEM,
"Url=../webctrl_client/1_0/treeimages/L.gif", "Referer={Url}leftFrame.aspx?FunctionID=1000", ENDITEM,
LAST);
lr_end_transaction("Login in", LR_AUTO); |
|