LR 使用agent proess的幾個問題
新來了一批機子,打算用來做性能測試的負載機,安裝好完整的LR程序后(可能有些人認為只安裝agent proess程序就行了,但我還是安裝了完整版的,避免出現一些未知的問題,反正花費的時間差不多),通過Contorller進行調用,在調用HTTP協議的代碼時,一切順利,但是調用JAVA代碼時,遇到了一些問題,現總結如下:
1. 啟動 agent proess時,報如下錯誤
28/10/2013 14:55:06 Error: Communication error: Failed to bind socket while calling bind function. [MsgId: MERR-10344] 28/10/2013 14:55:06 Error: Communication error: Failed to create a TCP server for the HTTP channel's server. [MsgId: MERR-10344] 28/10/2013 14:55:06 Error: Two Way Communication Error: Function two_way_comm_create_acceptor failed. [MsgId: MERR-60999] 28/10/2013 14:55:06 Warning: Failed to create "router" server. [MsgId: MWAR-29974] |
可以不用去理會,不影響運行結果
2. Contorller調用JAVA程序,在負載機上運行時,報如下錯誤:
Error: Failed to open .eve file: "d:\lr_results\sw\smx\login\res\192.168.32.114_8.eve”
這個是負載機環境的.NET環境有問題(謝謝MIKE的提醒),更新完最新的相關補丁后,解決!(360打補丁還是很好用的)
3. 解決完問題2后,再次調用運行后,報如下錯誤:
Compilation process failed
最后的解決方案記錄如下:
在負載機上,把腳本中使用到的其它jar包或class文件,放到loadrunner安裝路徑下的classes目錄下
如:D:\Program Files\HP\LoadRunner\classes
注意:如果import 時,調用的class文件,有路徑,則放到classes時,也需要對應放置
如:import com.seaway.test.CookieCallServer;
那么,放到D:\Program Files\HP\LoadRunner\classes下的,也要為com.seaway\test\CookieCallServer;
即,完整路徑為:D:\Program Files\HP\LoadRunner\classes\com.seaway\test\CookieCallServer;
問題解決!
posted on 2013-11-04 13:12 順其自然EVO 閱讀(1229) 評論(0) 編輯 收藏 所屬分類: loadrunner