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

上一篇 / 下一篇  2009-02-09 14:48:00 / 个人分类:LoadRunner

解决方案一:

在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 scrīpt,点击HTML Advanced,选择scrīpt type为A scrīpt containing explicit.即可。

2, 选择使用URL_based scrīpt录制。

另外,附上帮助中的这个错误代码的说明:

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 scrīpt 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 scrīpt.

If your snapshots and extended log are disabled, enable them and run the scrīpt 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 scrīpt 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.
 
解决方案二:

错误:

ction.c(34): Error -27727: Step download timeout (120 seconds) has expired when downloading resource(s). Set the "Resource Page Timeout is a Warning" Run-Time Setting to Yes/No to have this message as a warning/error, respectively  [MsgId: MERR-27727]
Action.c(34): web_link("****") highest severity level was "ERROR", 14506915 body bytes, 547 header bytes  [MsgId: MMSG-26388]Ending action Action.

解决方法:


取消选中run time settings-browser emulation-download non-html resources.解决 


TAG: Error -27979: Requested form not found LoadRunner

zcl432106 引用 删除 zcl432106   /   2012-08-03 10:51:30
好了耶
引用 删除 蓝色水滴   /   2010-03-22 14:29:37
还是无效啊!!!!
软件测试工程师 引用 删除 wanghuiwan   /   2010-02-26 11:49:33
 

评分:0

我来说两句

Open Toolbar