今天早上在使用LoadRunner時,報瞭如下的錯誤,開始並未看錯誤以爲是錄製問題引起,就重新錄製了一遍,簡單施壓看看錯誤是否還有,結果錯誤仍然有,如下所示: Error: Socket descriptor not found. Hint: the problem might be solved applying the following:
(1) Update Run-Time Settings to Run Vuser as a process.
(2) Add the following line into mdrv.dat, [lr_socks] section: 'ExtCmdLineConc=-UsingWinInet Yes'.
根據提示進行如下處理:
思路:
1.修改Run-Time Settings(默認是線程);
2.看mdrv.dat文件,搜索後在loadrunner安裝目錄下dat文件中;
解決方法詳細如下:
1.在run-time setting中的Miscellaneous項中設置“run vuser as a process”;
2.在安裝目錄的dat文件夾中查找mdrv.dat,找到[lr_socks]段,在最後添加“ExtCmdLineConc=-UsingWinInet Yes”一句; 然後再選擇了expert mode後,選擇option->general,選中“ip address allocation per process”;
3.運行Controller施壓,如果仍然報錯,在菜單欄中點擊Diagnostics->configuration項,將web page diagnostics項disable掉。
在解決問題中突然想起上週在使用loadrunner時,使用了虛擬IP(IP欺騙)。用完後忘記回覆如初了。雖然這樣解決了當下,但是還是需要將虛擬IP(IP欺騙)去掉。
下一篇給大家介紹一下如何讓 虛擬IP 回覆如初。
測試系列在線視頻,獨家在線銷售
http://edu.51cto.com/lecturer/user_id-968349.html