假如你的IE版本号太高,或者是chrome,firfox,又或者想录手机上的包,可以用loadrunner的wplus_init_wsock工具
1.在创建LR脚本的Start Recording窗口,点击'Program to record'后面的按钮,选择loadrunner安装目录下的inwplus_init_wsock.exe,之后点击左下角的'Options'

2.在打开的窗口中点击'Port Mapping'-'New Entry'

3.在打开的窗口中Socket Service栏填写:
Target Server:你要录制的地址IP
Port:你要录制的地址端口
service ID:你要录制的协议
Traffic Forwarding一栏选中'Allow Forwarding to target server from local port',并填写一个代理的端口(1024以下是系统保留)

4.(1)如果是要用PC浏览器,打开浏览器的相应设置,这里以IE演示,填写本机地址和刚才设置的9999端口
(2)如果是要录手机,需要手机和电脑连接的同一WIFI,如果是PC没有无线网卡,就买个小米WIFI,PC当热点,手机连接。网络连接好后,打开手机WIFI的高级设置,代理选择'手动',之后填写本机地址和刚才设置的9999端口

5.LR开始录制后,会出现如下窗口,当录制结束再关闭

5.LR开始录制后,会出现如下窗口,当录制结束再关闭

--------------------------------------------------------------------------------
关注微信公众号(测试工程师小站)即可在手机上查阅,并可接收更多测试分享,发送【测试资料】更可获取百G测试教程~