Apache JMeter

Ramya P
YavarTechWorks
Published in
3 min readNov 30, 2022

Hi friends!!!…In this blog we are going to see some basics about Apache JMeter.

Each and every software product realesed in market must be tested whether the actual software product matches expected requirements and to ensure that software product is defect free. It involves execution of software components using manual or automated tools to evaluate one or more properties of interest. The purpose of software testing is to identify errors, gaps or missing requirements in contrast to actual requirements.

One of the tool we used to test the performance and load testing is Apache JMeter.

What is Apache JMeter -> The Apache JMeter is an open-source, purely Java-based software. It was originally designed for testing Web Applications.

Why Apache JMeter-> This software is used to perform performance testing, functional testing, and load testing of web applications. JMeter is mostly used to test the performance of web applications under load and stress.

JMeter Features->

  • Being an open source software, it is freely available.
  • JMeter can conduct load and performance test for many different server types − Web — HTTP, HTTPS, SOAP, Database via JDBC, LDAP, JMS, etc.
  • JMeter store its test plans in XML format. This means you can generate a test plan using a text editor.

JMeter Work Flow

System Requirement

  • Java (version of 8+)
  • Apache JMeter tool — Download from =>

https://dlcdn.apache.org//jmeter/binaries/apache-jmeter-5.5.zip

How to start JMeter

What is a Test Plan?

A Test Plan can be viewed as a container for running tests. It defines what to test and how to go about it. A complete test plan consists of one or more elements such as thread groups, logic controllers, sample-generating controllers, listeners, timers, assertions, and configuration elements. A test plan must have at least one thread group.

Step 1: Start the JMeter Window

Click File->New => The ‘test plan’ will appear where real test plan is kept.This is a plain and blank JMeter window without any additional elaments added to it.

Step 2: Add or Remove Elements

Right click on Test Plan->Add->Listeners,Thread Users,etc => For example, Adding thread users means where we can set number of users,loop count and ramp-up seconds to perform test.

Step 3: Adding First HTTP request

Right click on Thread group->Add-> Samplers->HTTP Request, where we can add the server name (IP), protocol(http) and http method.

Step 4: Save test plan and Run test plan

In main menu bar Click Save->Run, where we can see results in table or tree format.There are various format available to view the results. Right click on thread group->Add->Listener->View results in Table.

This is the way to start and run the simple test plan in Apache Jmeter.

Thank You!!

--

--