0
votes

While running HTTP(S) Test Script Recorder under Workbench in JMeter, why we have to set the HTTP Proxy to "localhost" and Port to "8080"? Why can't we perform recording without touching the proxy settings?

1

1 Answers

0
votes

Because JMeter needs to capture outgoing requests in order to be able to convert them to HTTP Request samplers and the only way JMeter can do it - is by injecting itself in between. Moreover, when it comes to recording HTTPS traffic - you need to install JMeter self-signed certificate (ApacheJMeterTemporaryRootCA.crt) so JMeter could decrypt the requests.

  • "Normal" configuration:

    Browser < - > Application Under Test
    
  • "Proxy" configuration:

    Browser <-> JMeter Proxy <-> Application Under Test
    

More details:

If for some reason you are unable to change browser proxy settings you can consider using JMeter Chrome Extension as an alternative.