LR录制回放后出现的问题
回放后,出现以下问题:Action.c(64): Error -26377: No match found for the requested parameter "Siebel_Analytic_ViewState5". Check whether the requested boundaries exist in the response data. Also, if the data you want to save exceeds 1024 bytes, use web_set_max_html_param_len to increase the parameter size
Action.c(64): Notify: Saving Parameter "Siebel_Analytic_ViewState5 = "
Action.c(64): web_url("main.aspx") highest severity level was "ERROR", 9098 body bytes, 548 header bytes
在网上也找了类似问题的解决方法,但是还会出现,不知道该怎么解决。希望能得到大家的帮助!!!!!!!!!!!
录制脚本如下:
#include "web_api.h"
Action()
{
web_set_max_html_param_len("1024");
/* Registering parameter(s) from source task id 2
// {Siebel_Analytic_ViewState2} = "/wEPDwUKLTQ4MzY3MzY3M2RkY9DKNpQaQP+c+vaSGjgtpMbsX5M="
// */
web_reg_save_param("Siebel_Analytic_ViewState2",
"LB/IC=ViewState\" value=\"",
"RB/IC=\"",
"Ord=1",
"Search=Body",
"RelFrameId=1",
LAST);
web_url("192.168.0.95:88",
"URL=http://192.168.0.95:88/",
"TargetFrame=",
"Resource=0",
"RecContentType=text/html",
"Referer=",
"Snapshot=t1.inf",
"Mode=HTML",
EXTRARES,
"Url=/images/login-center.gif", ENDITEM,
"Url=/images/key.gif", ENDITEM,
LAST);
lr_think_time( 10 );
web_submit_data("login.aspx",
"Action=http://192.168.0.95:88/login.aspx",
"Method=POST",
"TargetFrame=",
"RecContentType=text/html",
"Referer=http://192.168.0.95:88/",
"Snapshot=t2.inf",
"Mode=HTML",
ITEMDATA,
"Name=__EVENTTARGET", "Value=", ENDITEM,
"Name=__EVENTARGUMENT", "Value=", ENDITEM,
"Name=__VIEWSTATE", "Value={Siebel_Analytic_ViewState2}", ENDITEM,
"Name=txtUserName", "Value=admin", ENDITEM,
"Name=txtPwd", "Value=123", ENDITEM,
"Name=txtCode", "Value=EHW5L", ENDITEM,
"Name=btnOk", "Value=登 录", ENDITEM,
"Name=__EVENTVALIDATION", "Value=/wEWBQK7lLPZDQKl1bKzCQKd+7qdDgLChPzDDQL9kpmPAcGbHa/cF/m6Ccwt+KRwahjl65jD", ENDITEM,
LAST);
/* Registering parameter(s) from source task id 22
// {Siebel_Analytic_ViewState5} = "/wEPDwUJMjA3ODg2NzYyD2QWAgIDD2QWBgIFDxAPFgIeB0VuYWJsZWRoZBAVCwnmna3lt57luIIJ5rip5bee5biCCeWYieWFtOW4ggnmuZblt57luIIJ57uN5YW05biCCemHkeWNjuW4ggnooaLlt57luIIJ6Iif5bGx5biCCeWPsOW3nuW4ggnkuL3msLTluIIV5rWZ5rGf55yB5YS/56ul5Yy76ZmiFQsCMDECMDMCMDQCMDUCMDYCMDcCMDgCMDkCMTACMjUCOTkUKwMLZ2dnZ2dnZ2dnZ2cWAQIBZAIHDxBkEBUMBuWFqOmDqAnpub/ln47ljLoJ6b6Z5rm+5Yy6CeeTr+a1t+WMugnmtJ7lpLTljr8J5rC45ZiJ5Y6/CeW5s+mYs+WOvwnoi43ljZfljr8J5paH5oiQ5Y6/CeazsOmhuuWOvwnnkZ7lronluIIJ5LmQ5riF5biCFQwABDAzMDIEMDMwMwQwMzA0BDAzMjIEMDMyNAQwMzI2BDAzMjcEMDMyOAQwMzI5BDAzODEEMDM4MhQrAwxnZ2dnZ2dnZ2dnZ2cWAWZkAgkPEGQQFQEG5YWo6YOoFQEAFCsDAWcWAWZkZJW60JxrHPpPiLHntLKEdKee93hZ"
// */
web_reg_save_param("Siebel_Analytic_ViewState5",
"LB/IC=ViewState\" value=\"",
"RB/IC=\"",
"Ord=1",
"Search=Body",
"RelFrameId=1.2",
LAST);
web_url("main.aspx",
"URL=http://192.168.0.95:88/main.aspx",
"TargetFrame=",
"Resource=0",
"RecContentType=text/html",
"Referer=",
"Snapshot=t3.inf",
"Mode=HTML",
EXTRARES,
"Url=/images/admin_default/admin_top_bg.gif", "Referer=http://192.168.0.95:88/topframe.aspx", ENDITEM,
"Url=/images/admin_default/admin_title_bg_show.gif", "Referer=http://192.168.0.95:88/leftframe.aspx", ENDITEM,
"Url=/images/admin_default/admin_title_bg_quit.gif", "Referer=http://192.168.0.95:88/leftframe.aspx", ENDITEM,
"Url=/Images/Design/BlueTopMiddle.gif", "Referer=http://192.168.0.95:88/Reportframe.aspx", ENDITEM,
"Url=/Images/Design/BlueBottomLeft.gif", "Referer=http://192.168.0.95:88/Reportframe.aspx", ENDITEM,
"Url=/Images/Design/BlueBottomRight.gif", "Referer=http://192.168.0.95:88/Reportframe.aspx", ENDITEM,
"Url=/Images/Design/BlueTopLeft.gif", "Referer=http://192.168.0.95:88/Reportframe.aspx", ENDITEM,
"Url=/Images/Design/BlueTopRight.gif", "Referer=http://192.168.0.95:88/Reportframe.aspx", ENDITEM,
"Url=/Reportframe.aspx?RVC_HospitalResult1_ReportViewer1_state=unload", "Referer=http://192.168.0.95:88/Reportframe.aspx", ENDITEM,
LAST);
lr_think_time( 6 );
web_submit_data("topframe.aspx",
"Action=http://192.168.0.95:88/topframe.aspx",
"Method=POST",
"TargetFrame=",
"RecContentType=text/html",
"Referer=http://192.168.0.95:88/topframe.aspx",
"Snapshot=t4.inf",
"Mode=HTML",
ITEMDATA,
"Name=__EVENTTARGET", "Value=", ENDITEM,
"Name=__EVENTARGUMENT", "Value=", ENDITEM,
"Name=__LASTFOCUS", "Value=", ENDITEM,
"Name=__VIEWSTATE", "Value={Siebel_Analytic_ViewState5}", ENDITEM,
"Name=txtStartDateTime", "Value=2008-5-1", ENDITEM,
"Name=txtEndDateTime", "Value=2008-9-19", ENDITEM,
"Name=DropDCounty", "Value=", ENDITEM,
"Name=DropDHospital", "Value=", ENDITEM,
"Name=btnSet", "Value=设置查询条件", ENDITEM,
"Name=__EVENTVALIDATION", "Value=/wEWHwKVvPXxBAKqvsy6DgLmtq2iDQKl9IibBwK1m+72CwK1m9b2CwK1m9L2CwK1m972CwK1m9r2CwK1m8b2CwK1m4L1CwK1m471CwKqm+L2CwKrm972CwKym471CwKjwpDMBAKjwpDMBAKJ7ImdCgKJ7JW6AQKJ7OHWCQLDwsW3BgLDwr2JBQLDwpXDBALDwuH/AwLDwo3HDgLDwpn8BQLxpq7OAgLxprrrCQKXy7iHBgKXy7iHBgKLk9nUCXpk4iKBKKXGh3KgCLVPMhMos0xL", ENDITEM,
EXTRARES,
"Url=/images/admin_default/admin_top_bg.gif", ENDITEM,
LAST);
web_url("Reportframe.aspx",
"URL=http://192.168.0.95:88/Reportframe.aspx",
"TargetFrame=",
"Resource=0",
"RecContentType=text/html",
"Referer=http://192.168.0.95:88/leftframe.aspx",
"Snapshot=t5.inf",
"Mode=HTML",
LAST);
lr_think_time( 3 );
web_url("Reportframe.aspx_2",
"URL=http://192.168.0.95:88/Reportframe.aspx?act=search&requestID=16&num=1&PageIndex=1",
"TargetFrame=",
"Resource=0",
"RecContentType=text/html",
"Referer=http://192.168.0.95:88/main.aspx",
"Snapshot=t6.inf",
"Mode=HTML",
LAST);
lr_think_time( 4 );
web_url("Reportframe.aspx_3",
"URL=http://192.168.0.95:88/Reportframe.aspx?act=search&requestID=16&num=2&PageIndex=1",
"TargetFrame=",
"Resource=0",
"RecContentType=text/html",
"Referer=http://192.168.0.95:88/main.aspx",
"Snapshot=t7.inf",
"Mode=HTML",
LAST);
lr_think_time( 3 );
web_url("Reportframe.aspx_4",
"URL=http://192.168.0.95:88/Reportframe.aspx?act=search&requestID=16&num=3&PageIndex=1",
"TargetFrame=",
"Resource=0",
"RecContentType=text/html",
"Referer=http://192.168.0.95:88/main.aspx",
"Snapshot=t8.inf",
"Mode=HTML",
EXTRARES,
"Url=/Images/Design/BlueTopMiddle.gif", "Referer=http://192.168.0.95:88/Reportframe.aspx?act=return", ENDITEM,
"Url=/Images/Design/BlueBottomLeft.gif", "Referer=http://192.168.0.95:88/Reportframe.aspx?act=return", ENDITEM,
"Url=/Images/Design/BlueBottomRight.gif", "Referer=http://192.168.0.95:88/Reportframe.aspx?act=return", ENDITEM,
"Url=/Images/Design/BlueTopRight.gif", "Referer=http://192.168.0.95:88/Reportframe.aspx?act=return", ENDITEM,
"Url=/Images/Design/BlueTopLeft.gif", "Referer=http://192.168.0.95:88/Reportframe.aspx?act=return", ENDITEM,
LAST);
return 0;
我也是出现这种问题
麻烦的很web_submit_data("Default.aspx") highest severity level was "ERROR", 6985 body bytes, 241 header bytes
我也是这种问题
我用的;LR8.1
出错的信息如上面的
出错指向代码
web_submit_data("Default.aspx",
"Action=http://192.0.0.14:8000/BJCostWeb/Default.aspx",
"Method=POST",
"RecContentType=text/html",
"Referer=http://192.0.0.14:8000/BJCostWeb/",
"Snapshot=t2.inf",
"Mode=HTML", 按照网上说的 RECORDING OPTIONS在RECORDING 项里面 设置RECORDING LEVEL
把原来的 HTML-BASED ECRIPT 设置成为
URL-BASED SCRIPT还是不成。照样重新录制会报错误 同问,怎么没答案?
:Q 提交之后的关联出了问题,没有找到关联的数据
页:
[1]