Recording of Jmeter Script Part -1

Reading Time: 3 minutes

Nowadays our life in this innovative era is driven by web application. With such a growing significance of web applications,there is also a requirement to conduct performance testing.

So in this blog we will learn to create/record  the script for load testing. Here we will record the script in two different ways.

  1. Using Blazemeter Extension.
  2. Using Jmeter Proxy.

Now to record the script using jmeter for the performance testing we need to install some software-

Prerequisites

Here is a list of the software that requires to record the script:

You have installed all these software in your computer now we start recording using the first way. Blazemeter Chrome Extension also supports recording of HTTPS traffic.

1.Using Blazemeter Extension:

It is one of the fastest and easiest ways to record your performance scripts. It is also free, is to use the BlazeMeter Recorder Chrome extension. These recordings can be run in JMeter or in BlazeMeter.

The extension is so useful because it lets you record performance scripts from your browser without having to configure your proxy. The Blazemeter Chrome Extension also supports recording of HTTPS traffic.

Steps to record:-

  • Start recording:-
  1. After adding  the extension in the chrome, you will get the red icon. Click on this icon and login into blazemeter. Now again open that icon you will get your user name at the top.
  1. Enter a test name in the top field, you can give any name to this field.Start recording by clicking on the record button, in the shape of a circle.
  1. Now enter the web application URL in any of the browser tabs and perform the web actions you want to record.

  • Stop Recording:

4. After you finish recording, click on the stop button, in the shape of a square. You can also pause your recording and then resume to continue the recording after some time.

5.Again Click on the blazemeter icon and click on edit. All your requests will be captured and you can perform any given operation from edit-remove any request or duplicate it.

  • Download Recorded JMX

6.Now you can download /save the recorded request in .jmx or JSON format, or in the cloud.You have to select the domain on which you have recorded the script .Export your recording – to run the test in JMeter, export to .jmx format by clicking on the .jmx button.

  • Run the JMX file

7. Now Open the Jmeter application and import this jmx file in jmeter. Add the Listeners and configuration as per requirement.You can edit the jmx also as per needs.Run the Jmeter test in your Jmeter and get the results in the added listener.

This is how we can record the script and perform the performance testing in jmeter.Hopefully, after going through this guide you will be capable of recording JMeter script. 

I will cover the second part -Recording  script Using Jmeter Proxy in my upcoming blog.

Stay Tuned.

Knoldus-blog-footer-image

Written by 

Aditi is Sr. Software Consultant -QA having experience of 3 years in Software Testing. She is familiar with API Testing & Performance Testing Using the tools like Jmeter,Postman, ReadyAPI(SoapUI),LoadUI are her expertise .Also having Knowledge of core concepts of manual and automation both as basic of Selenium Webdriver.She is always ready to adopt any environment and zeal to learn the new tools & technologies