lr回放过程错误-Error -26612: HTTP Status-Code=500 (Internal Server Error) ...
我刚刚学习lr,录制脚本后出现两个问题,希望高手给以指教,谢谢。:L1.脚本里面有乱码文字,按照网上说的方法修改了配置,还是存在,系统是win2003 中文的
2.回放过程出现两个错误信息如下:
Action中错误
Action.c(84): Error -26612: HTTP Status-Code=500 (Internal Server Error) for "http://192.168.1.200/WoodWeb/Index.aspx"
Action.c(84): web_submit_data("Index.aspx_6") highest severity level was "ERROR", 8271 body bytes, 240 header bytes
初始化代码错误
vuser_init.c(267): Warning -26612: HTTP Status-Code=500 (Internal Server Error) for "http://192.168.1.200/WoodWeb/ChartImg.axd?i=chart_0_3.png&g=52d9bdec47bc4e81907d73de197b7ad4"
出现问题函数如下:
初始化脚本:
web_url("ChartWeb.aspx",
"URL=http://192.168.1.200/WoodWeb/WoodLandWeb/ChartWeb.aspx?fullCode=510129100&type=1&1280887987218",
"Resource=0",
"RecContentType=text/html",
"Referer=http://192.168.1.200/WoodWeb/WoodLandWeb/ViewZoneStaInfo.aspx?1280887978046",
"Snapshot=t7.inf",
"Mode=HTML",
EXTRARES,
"Url=../ChartImg.axd?i=chart_0_3.png&g=52d9bdec47bc4e81907d73de197b7ad4", "Referer=http://192.168.1.200/WoodWeb/WoodLandWeb/ChartWeb.aspx?fullCode=510129100&type=1&1280887987218", ENDITEM,
LAST);
lr_end_transaction("log_in", LR_AUTO);
动作脚本:
web_submit_data("Index.aspx_6",
"Action=http://192.168.1.200/WoodWeb/Index.aspx",
"Method=POST",
"RecContentType=text/html",
"Referer=http://192.168.1.200/WoodWeb/Index.aspx",
"Snapshot=t12.inf",
"Mode=HTML",
ITEMDATA,
"Name=submitAjaxEventConfig", "Value={\"config\":{\"extraParams\":{\"nodeid\":\"5101291000080002\",\"nodetext\":\"2缁\x84\"}}}", ENDITEM,
"Name=cbTheme_Value", "Value=Slate", ENDITEM,
"Name=cbTheme", "Value=鏆楄摑", ENDITEM,
"Name=cbTheme_SelIndex", "Value=2", ENDITEM,
"Name=__EVENTTARGET", "Value=SManager", ENDITEM,
"Name=__EVENTARGUMENT", "Value=-|public|TreeNode_Click", ENDITEM,
"Name=__VIEWSTATE", "Value={Siebel_Analytic_ViewState4}", ENDITEM,
"Name=ESRIWebADFHiddenFields", "Value=ToolbarMain_Group_current_tool,", ENDITEM,
"Name=ToolbarMain_Group_current_tool", "Value=MapPan", ENDITEM,
"Name=__EVENTVALIDATION", "Value=/wEWBAKW18H2CwKr5OO0BgK+vMamDQLo7a3VB9YXq858t48KQhRT1CKW4DT06D3T", ENDITEM,
"Name=tbp_ActiveTab", "Value=tbp:0", ENDITEM,
LAST); :Q 乱码没所谓的,你参数化的时候直接用中文即可,别外也可以直接用英文嘛
另外报错是所有都报错么 谢谢版主,嗯是每次录制的时候都会出现乱码回放时候中文有些就不能识别我按照网上收集的修改了UTF-8 及IE 设置也不行
希望版主及其它同仁指教哦 :L 问题现在解决了么 能分享一下吗 该做关联的地方没有去做关联,则报HTTP500错误。
做关联试试~~ 乱码是因为服务器没有把响应的编码设置为GB2312,你试试:在 IIS中找到Web.Config文件,在<system.web>….</system.web>节加入<globalization requestEncoding="gb2312" responseEncoding="gb2312" fileEncoding="gb2312"/>后再次录制脚本,乱码应该可以变回中文的
页:
[1]