Let’s start Performance testing with JMeter

Manul Wickramanayaka
Test Automation Hub
3 min readMay 8, 2021

What is Performance testing?

Performance Testing is a type of software testing that ensures the speed, response time, stability, reliability, scalability and resource usage of software applications under their expected workload.

What is Apache JMeter?

Apache JMeter is an Apache project that can be used to execute load testing stress testing and functional testing of web applications.

JMeter can be used to test the performance of both static resources such as JavaScript and HTML, as well as dynamic resources, such as JSP, Servlets, and AJAX.

JMeter can discover a maximum number of concurrent users that your website can handle.

JMeter provides a variety of graphical analyses of performance reports.

Installation steps

  1. First, install JDK to your computer

https://www.oracle.com/java/technologies/javase-downloads.html

After installation is finished you can use the following command to check whether Java JDK is installed successfully in your system and installed version.

In Windows/Linux, go to Terminal
Enter command java -version

JMeter is compatible with Java 8 or higher. Make sure you install the latest version for security and performance reasons.

2.Download JMeter

Follow this path to the Apache website to download JMeter.
https://jmeter.apache.org/download_jmeter.cgi

Choose the Binaries file (either zip or tgz) to download as shown in the figure below.

3.Installation

Installation of JMeter is extremely easy and simple. You simply unzip the zip/tar file into the directory where you want JMeter to be installed. No hard code needed to unzip and you are done.

After installation directory structure should look like as figure below

Given below is the description of the JMeter directories and their importance JMeter directory contains many files and directory

  • /bin: Contains JMeter script file for starting JMeter
  • /docs: JMeter documentation files
  • /extras: ant related extra files
  • /lib/: Contains the required Java library for JMeter
  • /lib/ext: contains the core jar files for JMeter and the protocols
  • /lib/junit: Junit library used for JMeter
  • /printable_docs:

4.Launch JMeter in GUI Mode

If you are using Windows, just run the batch file /bin/jmeter.bat to start JMeter in GUI mode as shown below
If you are in mac OS search for the jmeter.sh

And this is how the GUI looks like…….

Let’s talk about how to create a test plan in the next article.

THINK QUALITY!

--

--