Recordring Test Scripts in JMeter

Record Testing help tester to record & run their activity against test target. It is a type of automated testing but for multiple users. This tutorial guides you on how to use Proxy Server to record your Test.

The Proxy Server allows JMeter to watch and record user activity while they are browsing web application with a normal browser.

The Test Plan consists of all actions that you need to execute your performance test script. The test plan can be taken as a practice area or temporary storage as the test plan.

The most important component in HTTP(S)TestRecorder is which can record the scripts directly, and the tester can put the load on those later on.

Introduction to JMeter

Basic Settings to do While Recording the Test Scripts

  • Launch the JMeter in your system.
  • Once the JMeter has opened, Right-click on the Test Plan-->Add--> Non-Test Element-->HTTP(s)Test Script Recorder add-http-test-script-recorder-jmeter
  • The HTTP(s) Test Script recorder page will look like, as shown below.
  • If you want, you can change the name of the Test script recorder, or else you can keep the same name.
  • The port number inside the HTTP(s) Test Script Recorder represents the user actions. That means JMeter is listening to the port number for any further actions to record.
  • And you can consider HTTPs Domains as an optional field because the JMeter automatically captures your domain name.
  • Next, there are two tabs, such as Test Plan Creation and Requests Filtering.
  • Where the Test Plan Creation contains two fields, such as Target Controller and Grouping under Test Plan Content.
  • The Target Controller is used to store the Recorded scripts.
  • Click on the Target Controller and select Test Plan>HTTP(s) Test script Recorder. target-controller-test-plan-text-script-recorder-jmeter
  • Next, click on the Requests Filtering tab, which is used to filter the Images, adds, and buttons, and so many components that are generated on the full website.
  • But do not need all the components which are generated on the website; basically, we just need HTTP Request and Response.
  • You can exclude elements on the UI like images and others using Add Suggested Excludes while recording the Test script. adding-suggested-excludes-jmeter
  • If it has come across any unnecessary thinks, then it will just skip them.
  • So These are the basic settings you need to do while recording the Test Script.

Installation and Configuration of JMeter

The Settings to do while Recording JMeter using Firefox Browser

  • Install Firefox browser in your system if it is not installed
  • Next, open the Firefox browser and then click on the horizontal lines and select the Options.
  • Next, go to the Network Settings and click on the Settings.
  • Once you click on Settings, the Connection Settings page will open, as shown below.
  • When you initially open the Connection setting, by default, the Use System Proxy Settings will be selected.
  • Select the Manual Proxy Configuration and then enter the port as 8888 and then enter the HTTP Proxy as and click on the Also use This Proxy for FTP and HTTPS Checkbox and then click on Ok.
  • So that we have set a proxy to our browser
  • Now go back to the Jmeter window and then click on the Start button to start recording.
  • Before recording anything that you have to ensure that you need to insert one certificate into your browser
  • If you want to connect through HTTPS and start recording securely, that specific https website needs a certificate to trust you.
  • Without any certificate, you cannot record any https website.
  • And this certificate will be provided by the JMeter.
  • After configuring everything in the connection setting, just click on the start button in the JMeter, you can see the pop-up message. root-ca-certificate-jmeter
  • Now the Root CA certificate has been created in your JMeter bin directory.
  • Once you install that certificate in your firefox browser and then your browser interacts with HTTPs, and it recognizes that the certificate provided by the JMeter, then it works as expected.
  • Go to your browser, and when you are still in the Settings page, search for a Certificate. And then click on the View Certificate option.
  • Next, go to the Authorities and then click on the Import.
  • After clicking on Import, go to your JMeter bin folder, there you can find the ApacheJMeterTemporaryRootCA certificate.
  • Once you find the certificate, click on Open, so that it will install the certificate into the browser. find-root-ca-certificate-folder-jmeter
  • After installing, the browser will Ask Do you want to trust "_JMeter Root CA for Recording for the following purpose?, then select the required checkbox and then click on Ok. do-you-want-to-trust-ca-crtificate-jmetr

JMeter Distributed Testing

Test Recording using JMeter to generate scripts

  • Launch your JMeter in your system
  • Click on the Start button to start Recording and then,
  • Go to the link from the firefox browser for practice.
  • And next, select some items from each drop-down.
  • Next, go back to the JMeter and then click on the Stop button.
  • And if you click on the HTTPS Test Script recorder, you will find the recorded scripts.

How to Use JMeter for Performance Testing

Recording the JMeter in Chrome using Blazemeter Extension

BlazeMeter provides developers with tools using the Amazon Elastic Compute Cloud (EC2) service that provides a mobile, web application, website, web-service, or database testing that can simulate thousands of users visiting a site simultaneously. BlazeMeter can be extended with a series of custom plugins.

To Add Blazemeter to the Chrome Extension, Go to the Google Search and search for Blazemeter Recorder Plugin. You can see the below page. and then click on Add to Chrome. blazemeter-load-test-jmeter

And then, click on the Add Extension.


After adding BlazeMeter to the chrome, you will find the icon at the top of the Chrome Browser. If you click on that icon, you can find the pop-up window below.

Click on the BlazeMeter®v2.3.0, and then the below page will open. Next, click on the Start Testing Now.

After clicking on Start Testing Now button, the below page will open, First-time users, have to register and create an account by entering valid credentials on the below page.

After entering credentials, click on Register and then go to your register email id, the BlazeMeter has sent a verification mail.

Click on set your password and then Set your password to login to your BlazeMeter account.


Set your password, After setting your password, you will see the below message.

Next, go to the chrome browser page and then click on the login, as shown below.

Enter your Email, Password and click on the login, after successful login you will find the below page

Now go to BlazeMeter Icon, you can see your name from which name you are logged in.

Next, Open the website from which you wanted to record the actions, I am recording the activities from website. So open the website and then open the BlazeMeter Icon, as shown below.

Next, enter the name of the Test as per your convenience, I am giving as DEMO and then click on the red button to start recording and perform any actions that you want to record.

I am selecting the Flight from Portland to Rome and then click on the Find Flight select-portland-and-rome-jmeter

Next, choose the flight according to your budget and time and then click on Choose this flight. And then enter the required details on the reservation page and then click on the purchase flight button. click-on-purchase-flight-jmeter

After purchasing the flight, you will receive a confirmation message as follow. thankq-msg-for-purchasing-light-jmeter

After performing the actions, click on Stop recording and then click on the Save button.

Once you click on the Save button and then select.JMX as shown below

After clicking on Save, the DEMO file will be downloaded then save the downloaded File in your project folder.

Now launch the JMeter in your system and then click on the File-->Open.


Next, select the DEMO.JMX file and then click on Open


Now the Demo test plan has been opened in the JMeter. You can click on the Test, and you will find all the steps.

If you click on the first step, you can see that the From and To cities which I have clicked.

And if you click on the second test script, you will find the details below.

In the second step, you can see the details of the flight number, from port, price, and then to port and airline name, which I had clicked.

Recording using the BlazeMeter shows Save Option only if you register and log in; otherwise, the Save button will be disabled.

Thread Group in JMeter

Recording JMeter by using BadBoy Software

Badboy is a powerful tool designed to aid in testing and development of complex dynamic applications.

Badboy makes web testing and development easier with dozens of features, including a comprehensive yet straightforward capture/replay interface, powerful load testing support, detailed reports, graphs, and much more.

We have to follow the below steps :

  • First, we need to Download and Setup the Badboy tool in our system.
  • Record Script in the Badboy tool.
  • Export recording to the JMX format.
  • Use recorded Script in JMeter.
  • Let us start by downloading the Badboy tool.
  • Navigate to the website BadBoy Software
  • Once you navigate to the website, the below page will be displayed. Click on the Download button.
  • Once the software got downloaded successfully, save that File into your system.
  • Open the .exe File and then install it into your system. Click on I Agree and then click on Install.
  • Click on the Yes to create a program in your systems Strat Menu.
  • Now go to the Start Menu and Search for Badboy, you will find the Badboy Software Icon.
  • Double click on the Badboy and the badboy recording page will look like as below.
  • Enter the Website link from which you want to record the actions in the badboy software, as shown below. Here I am using
  • And then click on the Red Button and then click on the Green button to proceed further.
  • Once you click on the green arrow mark, the website will be open, that you can be noticed in the left corner.
  • Next, you can click on the Scenario, and then Register.
  • Next stop the Recording.
  • Once you click on the stop recording. you can see the all steps you have been recorded, and you can notice that on the left side.
  • export-to-the-jmeter
  • Now, click on the File and then select Export to JMeter.
  • Next, Save the exported File into the project folder, as shown below.
  • Next, Launch JMeter in your system and then click on File and then select Open.
  • When I open the Script.jmx file, I am getting below. I will try to resolve this problem as soon as possible.
0 results
Comment / Suggestion Section
Point our Mistakes and Post Your Suggestions