51Testing软件测试论坛

标题: web系统测试脚本回放时偶尔出现“highest severity level was "ERROR"” [打印本页]

作者: scoopdai    时间: 2010-1-23 15:58
标题: web系统测试脚本回放时偶尔出现“highest severity level was "ERROR"”
通过http协议成功录制了脚本,但出现一个奇怪的问题是在多次回放过程中偶尔有出现失败的情况,并不是说每次回放都出错,错误信息如下:
Action.c(92): Error -26612: HTTP Status-Code=500 (Internal Server Error) for "http://192.6.6.156/MIS/mis/ExplorerRemote.rpc"          [MsgId: MERR-26612]
Action.c(92): web_custom_request("ExplorerRemote.rpc") highest severity level was "ERROR", 57 body bytes, 283 header bytes          [MsgId: MMSG-26388]
=====================================================================================
根据出错信息定位到脚本如下:
        web_custom_request("ExplorerRemote.rpc",
                "URL=http://192.6.6.156/MIS/mis/ExplorerRemote.rpc",
                "Method=POST",
                "Resource=0",
                "RecContentType=application/json",
                "Referer=http://192.6.6.156/MIS/mis/886848A9EFB6B4A27A34A98A889B36C9.cache.html",
                "Snapshot=t4.inf",
                "Mode=HTML",
                "EncType=text/x-gwt-rpc; charset=utf-8",
                "Body=5|0|4|http://192.6.6.156/MIS/mis/|B09721C6377D58918E9582FADBAAA5BE|adbc.imis.client.ExplorerRemote|getSession|1|2|3|4|0|",
                LAST);

我在论坛上查了相关帖子,好像这种问题大家觉得是没有做关联,但是我通过多次录制脚本发现每次脚本之间没有不同之处,为什么还会有这种错误呢?希望得到大家的指点,谢谢了。
作者: msnshow    时间: 2010-1-25 08:33
不知道楼主用的多少虚拟用户,出现这种情况,有可能是压力过大
作者: scoopdai    时间: 2010-1-25 14:24
我这是多次回放脚本过程中有时就会出现该错误。
作者: yu8023yan    时间: 2010-1-25 14:52
换个录制协议。。
作者: yu8023yan    时间: 2010-1-25 14:54
其实网上还是有几个解决办法的。。
作者: scoopdai    时间: 2010-1-25 15:33
yu8023yan,能详细说说吗?
作者: eramyang    时间: 2010-4-16 10:49
原帖由 scoopdai 于 2010-1-23 15:58 发表
通过http协议成功录制了脚本,但出现一个奇怪的问题是在多次回放过程中偶尔有出现失败的情况,并不是说每次回放都出错,错误信息如下:
Action.c(92): Error -26612: HTTP Status-Code=500 (Internal Server Error) ...


我碰到过类似的问题,我的解决方法如下:
查看一下 这个文件名是不是不同的,“886848A9EFB6B4A27A34A98A889B36C9.cache.html”
因为每次代码编译后,这个文件名都会改变,所以需要做参数化。
作者: yu8023yan    时间: 2010-4-16 17:44
对LR回放中highest severity level was"ERROR"的解决方法 con_all">在LR中录制脚本时有如下问题: 在录制时一切正常,而回放时提示类似如下错误:
Action.c(41): Error -27979: Requested form not found
   [MsgId: MERR-27979]
Action.c(41): web_submit_form highest severity level was "ERROR",
   0 body bytes, 0 header bytes
  [MsgId: MMSG-27178]"  
这时在tree view中看不到此组件的相关URL。  
处理方法如下:
1,        打开recording options,在internet protocol下的recording中选择recording level为HTML-based script,点击HTML Advanced,选择script type为A script containing explicit.即可。
2,        2, 选择使用URL_based script录制。 另外,附上帮助中的这个错误代码的说明:
Message Code 27979
Requested form not found The form was not found in the page received from the server. Possible reasons: (i) The current or a previous HTML page was changed after the script was recorded. (ii) A previous request navigated to a wrong page or failed. (iii) One or more web_submit_form arguments are missing or incorrect (especially for manually coded, parameterized, or correlated functions). (iv) The server returned an unexpected page (e.g., under excessive load).
Troubleshooting
pSmartBullet1">
pSmartBullet2">
pSmartBullet2">
If the current or previous HTML page was changed, look for the correct properties of the form used in the text (e.g., action), and change it in the script. pSmartBullet2">
If your snapshots and extended log are disabled, enable them and run the script again.
(i) To enable Snapshots: Select Tools > General Options > Correlation, and check the Save correlation information during replay box.
(ii) To enable Extended Log: Select Run-time Settings > General: Log, and check Enable logging, Always send messages, Extended log, Data returned by server, Advanced trace. pSmartBullet2">
Compare the record and replay snapshots for each step in the script from the beginning, and locate the first difference. If you identify a difference in the snapshots, locate the corresponding HTTP request in both the recording log and the extended log. Compare the requests and, if they are different, have the replay issue exactly the same request. This can be done, for example, by adding web_add_header (for adding missing headers or adjusting existing ones), web_remove_auto_header (for removing extra headers), and web_add_cookie (for missing cookies). pSmartBullet2">
If some correlation is missing, (e.g., the recording and replay runs have different session IDs), use the correlation tool to locate and handle such cases.

没有找到这个表格所要求的形式是没有收到来自服务器的页面。可能原因我)目前或以前的HTML网页被改变后的文字记录。(二)。先前的请求一个错误页面或横越失败。(三)。一个或多个web_submit_form参数错误(特别是为手动编码,或相关参数,功能)。(四)。服务器返回了一个意想不到的页面(例如,在过度负荷)。
  故障
  pSmartBullet1 > "
  pSmartBullet2 > "
  pSmartBullet2 > "
  如果当前或过去的HTML页面被改变,寻找正确的性能在文本中使用的形式(例如,动作),改变它的script. pSmartBullet2 > "
  如果你的照片和扩展的记录被禁用,使他们再运行这个脚本。
  (我)使照片:选择工具>选项>相关,与一般的相关信息,保存在检查重箱子。
  (二)以确保运行日志:选择扩展设置>,检查一般:日志,总是能够发送日志,记录、数据传回服务器、先进的trace. pSmartBullet2 > "
  记录和回放快照比较每一步的脚本从一开始,并找到第一个不同点。如果你确定了不同的快照,找到相应的HTTP请求都记录日志和推广的日志。比较的要求,如果他们是不同的,有重播问题完全相同的要求。这可以做到,例如,通过加入web_add_header(添加标题或调整现有的缺失,web_remove_auto_header(去除多余的头),web_add_cookie(失踪饼干。pSmartBullet2 " >)。
  如果一些相关的缺失,(例如:记录和回放运行有着不同的会话id),利用相关工具来定位和处理这样的情况。
作者: yu8023yan    时间: 2010-4-16 17:45
忘了从哪看到的解决办法了。。下面的是有道翻译的。。你就凑乎着看看吧呵呵。。最近很忙。没来这里看。不好意思。。
作者: 黎明的拂晓    时间: 2013-12-6 15:49
解决办法在哪   @寂寞不再孤独
作者: chysummer    时间: 2016-8-21 11:52
我也遇到了这种问题,想问下楼主怎么解决的
作者: sc_tsunami    时间: 2016-8-31 10:18
我也遇到同样的问题,有时会出现,有时不会出现,这是为什么?




欢迎光临 51Testing软件测试论坛 (http://bbs.51testing.com/) Powered by Discuz! X3.2