Introduction to JMeter

Today, in digital era, where websites and its users are increasing drastically, seamless user experience is must have for organisations because unnecessary delay in response of the website or application distract users attention. Now we have greater expectations of the software we use than ever before. This is the number one reason why performance testing has become so important. Research suggests that just a 1 second delay in page load time results in 7% fewer conversions, 11% fewer page views, and a 16% decrease in customer satisfaction. And this translates to real dollars – if your site earns $100,000 per day, you’re losing $2.5 million every year due to this 1 second. Therefore, organisations prefer doing performance and load test on application before launching them or after every major release.

In this tutorial we are going to learn about:

What is Performance Testing?

Importance of Performance Testing

What is JMeter and its History

Features of JMeter

How does JMeter works

What is performance testing?

Performance testing is a non-functional type of testing which is used to evaluate application under test(AUT) performance in terms of its responsiveness as well as behaviour of AUT under various workload.

An application is performant if it lets the end user carry out a given task without undue delay or irritation. An application which is performing well always have a good response time. So, responsiveness of an application plays a very important role just like it’s user interface and functionality because nowadays users are very demanding and want everything quick.

A slow website results into a bad user experience and have negative financial impact. Even delay of second, for longer period of time, may result into huge revenue loss. Thus, performance test of websites comes into picture. To performance test a website there are tools available, for example: JMeter, LoadRunner, WebLoad, LoadView and many more.

Importance of Performance Testing

Helps in evaluating potential bottlenecks of an AUT.

Slowness of an application or web service can be evaluated under heavy load.

We can find out how many parallel users an AUT can handle.

Helps in finding out impact of changes in each release in terms of performance.

Note : An application or software system which is when tested is called AUT or Application Under Test.

What is JMeter and Its Brief History

Apache JMeteris an open source, pure Java platform software which is designed to load test functional behaviour and measure performance.

Initially, JMeter was introduced for load and performance test web applications, but later on its scope has widened and can perform load and performance test on Web Pages, Web Applications and static or dynamic resources Like Database, Rest Webservices, LDAP, Java Objects and more.

Stefano Mazzocchi of the Apache Software Foundation was the original developer of JMeter. He wrote it primarily to test the performance of Apache JServ (currently known as Apache Tomcat project which is popularly used as server) . Later on, Apache community redesigned it to enhance the GUI, to add more features and functional testing capabilities.

How JMeter Works

JMeter simulates a number of users sending request to the Application Under Test. As soon as JMeter simulates requests, server responds and Jmeter starts collecting data. Jmeter saves all the responses and based on the server response it return statistics. These statistics shows performance of the AUT in the form of various formats as per the requirements.

Thus, with the help of JMeter we can simulate load on server, network or objects which are coming from different machines to implement real world scenario.

JMeter Workflow

When we start load or perform test of an application, JMeter creates requests to target server and simulates number of users sending requests to the target server. As soon as server starts responding to the requests, JMeter starts saving all the responses. On the basis of data/response JMeter gathers data to calculate statistical information. Finally, using this statistical information JMeter prepares a report which tells about performance of the AUT.

So, this was a brief about what is JMeter and how is it useful for us. In the upcoming section we will be installing this open source, user friendly software and slowly we will try to get hands on this performance testing tool.

Author: Ankita Agarwal

I am Ankita Agarwal, I have approximately 3.5 years of experience in Software Testing. It is rightly said "Knowledge is of no use unless you put into practice". Here I would request you to go to the tutorials, learn and practice as "Practice makes everyone perfect". Feel free to connect me on www.linkedin.com/in/aagarwaal.