在LR脚本回放中遇到这样一个问题。
add.c(330): The server's response is a redirection specifying neither Content-Length nor chunked Transfer-Encoding. This causes closing of the connection and ignoring the body of URL="http://192.168.1.102/dsis20072/Common/Reg/Step1.aspx"add.c(330): Redirecting "http://192.168.1.102/dsis20072/Common/Reg/Step1.aspx" (redirection depth=0)
add.c(330): To location "http://192.168.1.102/dsis20072/ErrorPage.aspx?aspxerrorpath=/dsis20072/Common/Reg/Step1.aspx"
add.c(330): Error -26627: HTTP Status-Code=404 (Not Found) for "http://192.168.1.102/dsis20072/ErrorPage.aspx?aspxerrorpath=/dsis20072/Common/Reg/Step1.aspx"
add.c(330): Error -26377: No match found for the requested parameter "Siebel_Analytic_ViewState8". Check whether the requested boundaries exist in the response data. Also, if the data you want to save exceeds 1864 bytes, use web_set_max_html_param_len to increase the parameter size
add.c(330): web_submit_data("Step1.aspx_2") highest severity level was "ERROR", 1377 body bytes, 519 header bytes
Ending action add.
用中文的编译后是这样的
add.c(81): 服务器的响应是重定向,既不指定内容长度也不指定成块的传输编码。这将导致连接关闭并忽略 URL=“http://192.168.1.102/dsis20072/Common/Reg/Step1.aspx”的正文。
add.c(81): 重定向“http://192.168.1.102/dsis20072/Common/Reg/Step1.aspx”(重定向深度=0)
add.c(81): 目标位置“http://192.168.1.102/dsis20072/ErrorPage.aspx?aspxerrorpath=/dsis20072/Common/Reg/Step1.aspx”
add.c(81): 错误 -26627: 对于“http://192.168.1.102/dsis20072/ErrorPage.aspx?aspxerrorpath=/dsis20072/Common/Reg/Step1.aspx”,HTTP 状态代码=404 (Not Found)
add.c(81): 错误 -26377: 找不到请求的参数“Siebel_Analytic_ViewState8”的匹配项。检查请求的边界是否存在于响应数据中。此外,如果要保存的数据超过 1864 个字节,请使用 web_set_max_html_param_len 增加参数大小
add.c(81): web_submit_data("Step1.aspx_2") 最高严重级别为“ERROR”,1377 个正文字节,519 个标头字节
正在结束操作 add。
请问应该如何解决,关键就是等这样的几个错误,寻求帮助啊
脚本重新录制了好多次,回放总是这样的一个错误。 我把代码贴出来。。
web_reg_save_param("Siebel_Analytic_ViewState8",
"LB/IC=ViewState\" value=\"",
"RB/IC=\"",
"Ord=1",
"Search=Body",
"RelFrameId=1",
LAST);
lr_think_time(18);
web_submit_data("Step1.aspx_2",
"Action=http://192.168.1.102/dsis20072/Common/Reg/Step1.aspx",
"Method=POST",
"RecContentType=text/html",
"Referer=http://192.168.1.102/dsis20072/Common/Reg/Step1.aspx",
"Snapshot=t55.inf",
"Mode=HTTP",
ITEMDATA,
"Name=__EVENTTARGET", "Value=", ENDITEM,
"Name=__EVENTARGUMENT", "Value=", ENDITEM,
"Name=__VIEWSTATE", "Value={Siebel_Analytic_ViewState6}", ENDITEM,
"Name=CustomerNO", "Value=C08042100027", ENDITEM,
"Name=RecommendNO", "Value=C07012200001", ENDITEM,
"Name=RecommendNO_p", "Value=C07012200001", ENDITEM,
"Name=ParentNO", "Value=C07012200001", ENDITEM,
"Name=ParentNO_p", "Value=C07012200001", ENDITEM,
"Name=Region", "Value=1", ENDITEM,
"Name=ApplyGrade", "Value=1", ENDITEM,
"Name=ShopNO", "Value=s1000001", ENDITEM,
"Name=ShopNO_p", "Value=s1000001", ENDITEM,
"Name=BranchID", "Value=0", ENDITEM,
"Name=Nationality", "Value=CN", ENDITEM,
"Name=PersonPwd", "Value=", ENDITEM,
"Name=rePersonPwd", "Value=", ENDITEM,
"Name=PersonPwd2", "Value=", ENDITEM,
"Name=rePersonPwd2", "Value=", ENDITEM,
"Name=btnNext", "Value=下一步", ENDITEM,
"Name=__EVENTVALIDATION", "Value=/wEWGALHirLFCQK4gM43Aqu8+5MFAqq8+5MFAqTT0f0JAv2216sKAvy216sKAv+216sKApGH4OEGAqrUqOAFAsfNvokHAqrU4LQLAr7/pfoFAtvov4EKAo2Bv7UHAriBs7UHAryBw7UHArOBo7UHAruB07UHAtKx2eYOAu2V8dMEAtKxkeYOAu2ViesHArXh844KDJMF+0SGlOtHRobwUMLh5SmkHGs=", ENDITEM,
LAST);
/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HRvbl9vbm1vdXNlb3ZlcicfAgUjdGhpcy5jbGFzc05hbWU9J2J1dHRvbl9vbm1vdXNlZG93bicfAwUidGhpcy5jbGFzc05hbWU9J2J1dHRvbl9vbk1vdXNlT3V0J2QYAQUeX19Db250cm9sc1JlcXVpcmVQb3N0QmFja0tleV9fFgEFCWNiU2VuZFNtcxc3MOX5W/YEyKT3WC/S3NA9yLHl"
// */
web_reg_save_param("Siebel_Analytic_ViewState10",
"LB/IC=ViewState\" value=\"",
"RB/IC=\"",
"Ord=1",
"Search=Body",
"RelFrameId=1",
LAST);
web_submit_data("Step2.aspx",
"Action=http://192.168.1.102/dsis20072/Common/Reg/Step2.aspx",
"Method=POST",
"RecContentType=text/html",
"Referer=http://192.168.1.102/dsis20072/Common/Reg/Step2.aspx",
"Snapshot=t56.inf",
"Mode=HTTP",
ITEMDATA,
"Name=__EVENTTARGET", "Value=", ENDITEM,
"Name=__EVENTARGUMENT", "Value=", ENDITEM,
"Name=__VIEWSTATE", "Value={Siebel_Analytic_ViewState8}", ENDITEM,
"Name=CustomerName", "Value=123", ENDITEM,
"Name=NickName", "Value=123", ENDITEM,
"Name=Sex", "Value=男", ENDITEM,
"Name=Birthday_hidden", "Value=", ENDITEM,
"Name=Birthday_input", "Value=输入或选择日期....", ENDITEM,
"Name=Birthday_DrpPnl_Calendar1", "Value=%3Cx%20PostData%3D%221975x1x-1x-1x-1%22%3E%3C/x%3E", ENDITEM,
"Name=CardType", "Value=1", ENDITEM,
"Name=CardNO", "Value=", ENDITEM,
"Name=BankName", "Value=1", ENDITEM,
"Name=BankCard", "Value=", ENDITEM,
"Name=BankUser", "Value=", ENDITEM,
"Name=Email", "Value=123", ENDITEM,
"Name=QQ", "Value=123", ENDITEM,
"Name=Mobile", "Value=1321", ENDITEM,
"Name=Phone", "Value=123", ENDITEM,
"Name=Fax", "Value=", ENDITEM,
"Name=Province", "Value=0", ENDITEM,
"Name=PostCode", "Value=", ENDITEM,
"Name=Address", "Value=", ENDITEM,
"Name=Address2", "Value=", ENDITEM,
"Name=btnNext", "Value=下一步", ENDITEM,
"Name=__EVENTVALIDATION", "Value=/wEWQQLr8cqxAgLdhYGMAgKE8PygBALmkv2sAwKiyv2sAwLvl9bCDwK6xOPLDgKdrO/XBALg5+ngCwLh5+ngCwLi5+ngCwLj5+ngCwLk5+ngCwLl5+ngCwL5luzTAgKQv/jOBQKS18aDDQLv7+bwDAKFwsiVBwKQibuWDQLcl+"
"bCDwKSkLieBAKnkLSeBAKjkMSeBAKskKSeBAKkkNSeBALFjs6PBQLajs6PBQLbjs6PBQLYjs6PBQLZjs6PBQLejs6PBQLfjs6PBQLcjs6PBQLNjs6PBQLCjs6PBQLajo6MBQLajoKMBQLajoaMBQLajrqMBQLajr6MBQLajrKMBQLajraMBQLajqqMBQLaju6PBQLajuKPBQLbjo6MBQLbjoKMBQLbjoaMBQLbjrqMBQLbjr6MBQLbjrKMBQLbjraMBQLbjqqMBQLbju6PBQLbjuKPBQLYjo6MBQLYjoKMBQLYjoaMBQLYjrqMBQK04YLJCwLLodLgCALLobquDALWs7u7BwK14fOOCoGrgMlC3tr9Vmt/nDhQLZe6E5xU", ENDITEM,
LAST);
web_submit_data("Step3.aspx",
"Action=http://192.168.1.102/dsis20072/Common/Reg/Step3.aspx",
"Method=POST",
"RecContentType=text/html",
"Referer=http://192.168.1.102/dsis20072/Common/Reg/Step3.aspx",
"Snapshot=t57.inf",
"Mode=HTTP",
ITEMDATA,
"Name=__VIEWSTATE", "Value={Siebel_Analytic_ViewState10}", ENDITEM,
"Name=btnEnd", "Value=完成注册", ENDITEM,
"Name=__EVENTVALIDATION", "Value=/wEWBAL939W3AgKPjKzGCgLWs7u7BwKCk7HrDEeW0/qQeoASUUOfTLewrfWHWRVG", ENDITEM,
LAST); 等待解决,顶一下,别被埋没了:Q :Q 楼主第二处的关联名称是“Siebel_Analytic_ViewState10”,而在随后取关联值是第一处关联的名称“Siebel_Analytic_ViewState8”
你试一试改为URL-based script录制脚本 我的脚本录制的方式是 URL-based script啊
回复 5# 的帖子
楼主第二处的关联名称是“Siebel_Analytic_ViewState10”,而在随后取关联值是第一处关联的名称“Siebel_Analytic_ViewState8”;第二次取关联值不正确吧你把第二处关联改为Value={Siebel_Analytic_ViewState10}" 试一试 唉,目前可以推测出是关联的问题,具体在哪里,自己也找不到。。
录制的时候可以成功,但是回放就是失败。
网页的重定向 有问题。 问问开发人员开发技术是什么样的 帮顶,我也遇到了这样的问题,不知道你有没有解决呢? 是不是关联的那个参数名称太长? 也遇到了同样问题,不知怎么解决。。。
页:
[1]