Lr IP欺骗设置
IP欺騙設置IP工具:IP Wizard 開啟IP欺騙時會關閉DHCP(也就是關閉IP自動獲取 更改為手動設置IP)
注:添加IP欺騙,和釋放IP,都要重啟機器后才會生效,IP Wizard要管理員身份運行;
在controller中使用ip欺騙的注意事項;
(1)勾選“場景”->“啟用IP欺騙器”;
(2)勾選“工具”->“專家模式”;
(3)“場景”->“選項”->“常規”->“多個IP地址模式”;
設置IP欺騙后,驗證其是否生效;有兩種方法查看:
(1)可用如下代碼段來查看:
char *ip = lr_get_vuser_ip();
if (ip)
???? lr_output_message("The IP address is %s", ip);
else
???? lr_output_message("IP spoofing disabled");
(2)controller的運行頁,運行完場景后,在通過、失敗的虛擬用戶處,右鍵可顯示VUser日志,彈出的提示框頭幾行就有顯示當前使用的IP;
LoadRunner ==》Controller 開啟IP欺騙后遇見如下錯誤
報錯信息: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 setting =》 Miscellaneous設置為“run vuser as a process”
(2)安裝目錄dat =》 mdrv.dat,找到[lr_socks]段,在最后添加“ExtCmdLineConc=-UsingWinInet Yes”一句;
(3)在Controller =》?expert mode后,選擇option->general,選中“ip address allocation per process”;
(4)Controller =》?Diagnostics->configuration項,將web?page diagnostics項disable掉
轉載于:https://www.cnblogs.com/Tester-ABX/p/4844131.html
總結
- 上一篇: 饮酒的作者是谁啊?
- 下一篇: Android Acitivity 生命