关于Loadrunner 错误解决
錄制腳本時(shí),總會(huì)出現(xiàn)一些莫名其妙的錯(cuò)誤,下面總結(jié)了一些:
1、[MsgId: MESG-26388] 錯(cuò)誤解決方法:
Action.c(29): web_submit_form("UserLogin.action") highest severity level was "ERROR", 172503 body bytes, 19076 header bytes [MsgId: MMSG-26388]
改用基于URL的腳本錄制方式,然后回放后,就一切ok了。
?
2、[MsgId: MERR-27979] 錯(cuò)誤解決方法:
在LR中錄制腳本時(shí)有如下問(wèn)題:
? ?? ?? ?? ? Action.c(41): web_submit_form highest severity level was "ERROR",? ?? ?? ?? ???0 body bytes, 0 header bytes??? ? ? ? ? ?? ?? ?? ? [MsgId: MMSG-27178]"
?
這時(shí)在tree view中看不到此組件的相關(guān)URL。 處理方法如下: 1,?打開(kāi)recording options,在internet protocol下的recording中選擇recording level為HTML-based script,點(diǎn)擊HTML Advanced,選擇script type為A script containing explicit.即可。 2,?選擇使用URL_based script錄制。 另外,附上幫助中的這個(gè)錯(cuò)誤代碼的說(shuō)明:3、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: 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.
- 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.
錯(cuò)誤:
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.解決?。
總結(jié)
以上是生活随笔為你收集整理的关于Loadrunner 错误解决的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問(wèn)題。
 
                            
                        - 上一篇: 51nod 1623 完美消除(数位DP
- 下一篇: cifs文件的存储
