How to record in JMeter when proxy settings is configured to connect to internet



  • To record scripts in JMeter we need to run the proxy on local port 8080, where as in browser I need to configure for internet connectivity proxy to connect to internet.

    The company I work for is providing me internet through a proxy server.

    Anyone who knows how to record script using Jmeter while there is already internet proxy set up in the browser to connect to internet?



  • According to the JMeter documentation, if you want to run JMeter behind a proxy server, you should launch JMeter with the following settings:

    -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

    Alternatively, you can use --proxyHost, --proxyPort, --username, and --password.



Suggested Topics

  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2