Setup JMeter Proxy for Recording

Q

How to setup JMeter to be a proxy server for HTTP communication recording?

✍: FYIcenter.com

A

You can follow this tutorial to setup JMeter to be a proxy server for HTTP communication recording.

1. Run JMeter and click "File > Template" menu or the template icon. You see the template screen.

2. Select the "Recording" template and click the "Create" button. You see a new test plan created with a some default components:

  • User Defined Variables - Where you can add some variables later to parameterize your test.
  • HTTP Request Default - To provide default setting for all HTTP requests.
  • HTTP Cookie Manager - To return cookies automatically in subsequent HTTP requests.
  • Recording Controller - To act as a container to hold selected HTTP requests as part of the final test plan.
  • HTTP(S) Test Script Recorder - To control the proxy server and hold all HTTP requests including those excluded by the filter like requests for images and JavaScript codes.

3. Review the "HTTP(S) Test Script Recorder" component under the "WorkBench". It runs an HTTP proxy to record all HTTP requests fired from your browser. The default proxy port is 8888.

4. Click "File > Save Test Plan As" menu and save it to Recording-Controller-HTTP-Proxy.jmx.

The picture below shows you how to setup JMeter to be a proxy server for HTTP communication recording:

JMeter Proxy Server for HTTP Recording
JMeter Proxy Server for HTTP Recording

 

Run JMeter Proxy Server

Recording with JMeter HTTP Proxy

Recording with JMeter HTTP Proxy

⇑⇑ Apache JMeter Tutorials

2018-02-01, 2037🔥, 0💬