How To Record Test Plan In Jmeter For Load Testing

How To Record Test Plan In Jmeter For Load Testing

Jmeter is open source and very popular tool for performance testing, load testing and stress testing. Jmeter provides excellent facility to record website requests and then tester can put load on web pages easily.

I assume that Jmter is installed correctly and running in your computer.

Following steps help you to record your test plan with Jmeter :

  1. Add Thread Group

Open Jmeter and do Right click on “Test Plan” option.


Enter No. of threads, Ramp up Time and Loop count as per your need or test requirement. Do not forget to save test plan.

2. Add Recording Controller to Thread Group

As you are going to record test plan so it is require to add Recording controller to your thread group. Do right click on Thread group and add  Recording controller.


3. Add HTTP Request Default


Specify your website URL or IP as web server data and Add port number which you want to use while recording. Generally 8080 port is fine but if that gets busy by another application then you can use other ports like 8081,8082 etc.


4. Add HTTP Test script recorder

Add it from workbench as per below :


Change port number here which should be same port which you have specified in step – 3. Once you do this it means all setting from jmeter is done. Now its time to set proxy in browser.

5. Set Proxy in Browser

Each browser has different setting to set proxy , I assume that you are using Google chrome browser. To setup proxy in google chrome do these steps :

  • Go to Setting or type : chrome://settings/ in address bar
  • Select option “Change Proxy Setting”
  • Click on LAN Setting.
  • By default option “Automatically detect setting” is selected , you just unchecked that.
  • Select option which is under “Proxy Server”
  • In field “Address” , Enter your computer IP Address.
  • In field “Port”, Enter port which you have specified in step – 3 here.
  • Press OK , That’s it , you have done for proxy setting.

6.Generate Jmeter certificate  for recording

To record your webite and every action , it is required to import jmeter security certificate in your browser. So Let’s do that.

  • Go to Jmeter , and Go to “HTTP(S) Test Script Recorder”
  • Click on “Start” button. It will give you following message :


  • Now Go to your Bin direcroty of Jmeter folder. I.e Yourjmeter/bin
  • You will get one new file called “ApacheJMeterTemporaryRootCA”.
  • Import this file in your browser.
  • All browse has option to import certificate so it will be very easy for any one.
  • After import , just restart your browser.

7. Let us start recording 🙂

  • Open brower.
  • Open your website and that’s it , now jmeter is recording each and every request of your website.
  • You can see all requests in jmeter. Check it at just below to “Recording Controller” , it will be look like :


You can check detail of every request by click on it. I.e what data comes in GET , POST requests and a lot more.



  • Posted at 5:03 pm, September 21, 2015

    Thanks for great guide, it’s clear and useful. By the way, there is an alternative way of recording a JMeter test – via JMeter Chrome Extension, with it you don’t need to worry about proxies, SSL certificates, etc. you only need Chrome browser and the extension itself. It records all your steps and once finished it is possible to export the recording as JMeter .jmx test script.

  • Posted at 8:48 am, January 4, 2016

    Thank you very much, your tutorial helped me a lot.