How to write to jmeter when proxy settings are configured to connect to the Internet

To write scripts in Jmeter, we need to run the proxy in the local port 8080, where, like in the browser, I need to configure the proxy server to connect to the Internet.

The company I work with provides me the Internet through a proxy server.

Anyone who knows how to write a script using Jmeter while the internet proxy is already installed in the browser to connect to the Internet.

thanks

+7
proxy automated-tests jmeter
source share
2 answers

You can specify proxy server settings by running JMeter from the command line as follows:

jmeter -H [proxy server hostname or ip address] -P [proxy server password] -u[username for proxy authentication - if required] -a [password for proxy authentication - if required] 

Then you must set localhost and the port specified in the HTTP (S) Test Script Recorder as the proxy address and port in your browser.

+1
source share

I believe your company uses a PAC file to connect to the Internet. JMeter will not execute the PAC file. Contact JMeter is not a browser . The PAC file has javascript that will not be executed by JMeter.

Using the browser developer tools or by asking for a network administrator or IT support team, you can get what IP address your company uses to connect to the Internet.

Once you get the IP address, you can follow the steps George mentioned in this thread to write / reply successfully.

+1
source share

All Articles