LoadRunner調試問題之如何使用腳本錯誤日誌

在調試腳本的過程中,應該養成把Log打開的習慣,如附圖。這樣很容易看到出錯地方的前因後果,也方便找原因。

loadrunner教程

1、打開Run-time Settings->General->Log窗口;

2、勾上“Enable logging” checkbox;

3、選擇“Extended Log”,再根據需要勾選子級別,我一般會勾選前兩項;

下面分享一些問題解答:

問題1:Action.c(933): Error -26377: No match found for the requested parameter "merchantPlanid". Check whether the requested boundaries exist in the response data. Also, if the data you want to save exceeds 256 bytes, use web_set_max_html_param_len to increase the parameter size

原因:上一個接口執行失敗了,或者返回值裏沒有你期望save的參數,所以導致web_reg_save_param沒有獲取到期望的值。

問題2:在Controller裏運行腳本時,報錯: Failed to send data by channels - post message failed.

原因:Controller->Diagnostics->Configuration...->Diagnostics Distribution裏的"Uncheck "Enable the following diagnostics"選項沒有被選中。

問題3:當你改變某個關聯參數的.dat文件時,總是提示老的.dat文件不存在,或者你註釋掉腳本,仍然編譯時報錯

原因:"Vuser"->"Parameter List"裏,不再使用的參數仍然存在,找到它,並刪除掉即可。

本文轉自spasvo.com

下載最新版loadrunner試用>>

查看更多測試分析資訊和產品推薦>>>

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章