对LR回放中highest severity level was"ERROR"的解决方法

发表于:2007-4-17 15:35

字体: | 上一篇 | 下一篇 | 我要投稿

 作者:zee    来源:51testing博客

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 levelHTML-based script,点击HTML Advanced,选择script typeA script containing explicit.即可。
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

    • 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.
    • If your snapshots and extended log are disabled, enable them and run the script again.
      (i) To enable Snapshots: SelectTools > General Options > Correlation, and check theSave correlation information during replaybox.
      (ii) To enable Extended Log: SelectRun-time Settings > General: Log, and checkEnable logging,Always send messages,Extended log,Data returned by server,Advanced trace.
    • 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).
    • 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.
 
《2023软件测试行业现状调查报告》独家发布~

关注51Testing

联系我们

快捷面板 站点地图 联系我们 广告服务 关于我们 站长统计 发展历程

法律顾问:上海兰迪律师事务所 项棋律师
版权所有 上海博为峰软件技术股份有限公司 Copyright©51testing.com 2003-2024
投诉及意见反馈:webmaster@51testing.com; 业务联系:service@51testing.com 021-64471599-8017

沪ICP备05003035号

沪公网安备 31010102002173号