How To Record Using BlazeMeter Plugin (JMeter)

Record a simple script using blazemeter browser plugin

Table of Contents

Honestly speaking if you already have a mature or established process using ‘native’ JMeter from Apache, without any kind of wrappers utilities or third-party tools then this article is of little value to you.

However, there are many companies and/or projects out there who may employ some wrappers or third-party tools, plugins etc. around JMeter, in order to ease out their NFT process while addressing limitations of ‘native’ Apache JMeter. In this regard, there are a number of solutions and plugins available from Blazemeter.

If you don’t want to work natively with JMeter then one such solution from Blazemeter is the Chrome Plugin. The Chrome extension records all of the HTTP/S requests and can create a synced JMeter and Selenium scripts. Furthermore, If you are a registered or licensed user of Blazemeter then it automatically uploads it to BlazeMeter, where you can execute it with a single click.

In this case, there is no need to install JMeter nor Selenium to record or run your performance test, the Chrome extension will create the JMeter and Selenium scripts automatically. The extension will also allow you to debug and test your recorded Selenium session on your local Chrome browser.

However, in this article, we shall be only demonstrating a quick recording scenario using BlazeMeter chrome plugin.We’ll be doing a Login test on a website called demo.taotesting.com.

1. Adding Blazemeter Plugin to Browser

You will need to download and install the BlazeMeter plugin form the Chrome Web store.Simply add the plugin and you are good to go.

2. Recording Script via BlazeMeter Plugin

If you are new to BlazeMeter, you will need to Sign-up. If you are already registered, just Login

Step 1: Name your test.

blank

Step 2: Click the Record button to begin recording the steps of the test.

Step 3: Go to the demo testing site.

blank

Step 4: Enter the Login ID and Password provided therein.

blank

Step 5: Click Log in and ensure that you have successfully logged in.

Step 6: Click “Stop”. BlazeMeter will begin to process your test.

blank

Step 7: Download the .jmx file by clicking the Save Button. In the prompted screen, select “JMeter only” and the domain as taotesting.com. Now click “Save” and the .jmx file will be downloaded.

blank
blank

Now we can start our work with JMeter.

3. Importing Script (.jmx file) into JMeter

Let’s import the test that we just recorded.

Step 1: Click Open in the menu bar and open the downloaded.jmx file into JMeter and save it with your project name.

Step 2. Then you will see the imported components under your Test Plan. Under the Thread Group, you will find the Test scenarios.

blank

The Login ID and Password that was used under the Test will be displayed
>> Test>>https://demo.taotesting.com/tao/Main/login.

blank

4. Adding JMeter Listeners

Listeners are used to display test results in JMeter. They help to monitor the requests sent by JMeter and analyze responses from the server while testing. Time and capacity related information collected for requests and responses from JMeter and statistical information such as distribution and percentages are the main things that listeners deal with.

We have to add a Result Tree listener to view our results.

Right-click on your Test Plan (Testing 2 in my case) >>Add >>Listener >>View Result Tree and you can have the result tree pane.

blank

5. Viewing Result Tree Listener

This listener displays the samplers generated by JMeter and their assertion results. This listener provides request parameters, response parameters, and the response data. It displays the results under the relevant tabs named Sampler Result, Request, and Response Data.

In the Sampler Result, tab you will find information about headers, response code, time-related information such as latency, cookies, error count, etc. The Request tab gives information about HTTP methods, Cookies added, the URL and about the JMeter Script added.

This Listener is able to render the information transmitted into simple formats such as text, HTML or XML. Also, the substrings are filtered by this listener, this helps to construct and validate some post processors. Apart from that, it can display the unsuccessful assertions and compare the actual and expected results. These are some valuable features of View Result Tree Listener.

6. Running and Validating Our Script

Let’s follow these steps to validate our test.

Step 1: Run the test by clicking Start in the menu bar. You will see the verified results in the Result Tree Listener.

blank

Step 2: Check the validated Sampler result, Request, and Response data to see the sample, code verified results, HTML scripts, and Response Headers respectively.

Hint: Change the names of your HTTP Requests to identify them easily. A meaningful name can be provided instead of the HTTP address.

blank

Apache JMeter with BlazeMeter is surely one of the top solutions if you are thinking of venturing with non-native JMeter territory. Even though JMeter has many built-in solutions and features, BlazeMeter is more useful because of the additional features it provides.

Its worth giving a shot, so try it out and see if it works for you. Cheers!

Tushar Sharma
Tushar Sharmahttps://www.automationdojos.com
Hi! This is Tushar, the author of 'Automation Dojos'. A passionate IT professional with a big appetite for learning, I enjoy technical content creation and curation. Hope you are having a good time! Don't forget to subscribe and stay in touch. Wishing you happy learning!

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Recent Posts

RELATED POSTS

How To Create FTP Test Plan in JMeter

About File Transfer Protocol File Transfer Protocol is a widely used standard network protocol for FIle sharing between a client and server in the same...

Working with JMeter Listeners

About Listeners Listeners are used for displaying test results in JMeter. Listeners allow system engineers to analyze the responses from the testing system and monetize...

Getting Started with Apache JMeter

1. Introduction As a developer, you may have tested the functionality of your code hundreds of times during development. This is known as functional testing....

Â

RECENT 'HOW-TO'

How To Install Oh-My-Posh On Windows PowerShell

Oh-My-Posh is a powerful custom prompt engine for any shell that has the ability to adjust the prompt string with a function or variable. It does not...

SIMILAR ON CODEX

FEATURED PROJECTS

SEPA Bulk File Generator and Validator

ADjo LABS PROJECT: SEPA Bulk File Generator and Validator. Supported File Types PAIN008, PAIN001, PACS003 and PACS008. Tested for supporting PAIN.008.001.001 and PAIN.008.001.002 (version 1&2). The XML...

MORE IN THIS CATEGORY

A Prologue For HP Load Runner

Performance testing is one of the important processes of the software QA segment. While the application is efficiently designed and tested for functionality, it...

How To Set XAMPP To Run As-Admin By Default

Why run XAMPP as-admin The XAMPP is recommended to be executed as-admin as it requires running a couple of system services such as Apache, MySQL...

Getting Started with Apache JMeter

1. Introduction As a developer, you may have tested the functionality of your code hundreds of times during development. This is known as functional testing....

CHECKOUT TUTORIALS

Java Tutorial #4 – Control Statements

Introduction Control statements are used to change the flow of execution based on changes to certain variables in the code. One of the types of...
- Advertisement -spot_img