Jmeter:配置我的移动 wifi 代理后,互联网无法连接
Jmeter: After configuration of proxy of my mobile wifi, internet is not getting connected
我已经在我的 android 手机中配置了我的 PC IP 和端口的代理服务器和端口。但是我无法在我的手机上连接互联网。
在 Jmeter 中,Root CA Certification is install.
让我知道哪里不对。
几个假设:
- 以防万一,你有没有启动JMeter的代理服务器?
- 添加View Results Tree listener to your Test Plan to see whether are any requests being sent through JMeter. If yes - it might be the case you're sitting behind the corporate proxy. See Using JMeter behind a proxy章节:
If you are testing from behind a firewall/proxy server, you may need to provide JMeter with the firewall/proxy server hostname and port number. To do so, run the jmeter[.bat] file from a command line with the following parameters:
-H [proxy server hostname or ip address]
-P [proxy server port]
-N [nonproxy hosts] (e.g. *.apache.org|localhost)
-u [username for proxy authentication - if required]
-a [password for proxy authentication - if required]
Example: jmeter -H my.proxy.server -P 8000 -u username -a password -N localhost
- 您可能会发现 Mobile Recorder 服务比 JMeter 的内置代理更容易。
因为它之前已经连接并且在我的浏览器中安装了认证。清除缓存和cookies后,我重新安装了认证,现在可以正常使用了。
我已经在我的 android 手机中配置了我的 PC IP 和端口的代理服务器和端口。但是我无法在我的手机上连接互联网。 在 Jmeter 中,Root CA Certification is install.
让我知道哪里不对。
几个假设:
- 以防万一,你有没有启动JMeter的代理服务器?
- 添加View Results Tree listener to your Test Plan to see whether are any requests being sent through JMeter. If yes - it might be the case you're sitting behind the corporate proxy. See Using JMeter behind a proxy章节:
If you are testing from behind a firewall/proxy server, you may need to provide JMeter with the firewall/proxy server hostname and port number. To do so, run the jmeter[.bat] file from a command line with the following parameters:
-H [proxy server hostname or ip address]
-P [proxy server port]
-N [nonproxy hosts] (e.g. *.apache.org|localhost)
-u [username for proxy authentication - if required]
-a [password for proxy authentication - if required]
Example: jmeter -H my.proxy.server -P 8000 -u username -a password -N localhost
- 您可能会发现 Mobile Recorder 服务比 JMeter 的内置代理更容易。
因为它之前已经连接并且在我的浏览器中安装了认证。清除缓存和cookies后,我重新安装了认证,现在可以正常使用了。