Hii folks, In this blog we will go through the performance testing, types of performance testing and briefly we will go through the Jmeter tool for performance testing.
It ensures software applications will perform well under their expectation of workload. it is nothing but testing the stability and response time of an application by applying load is called performance testing.
Stability:-ability to withstand a designed number of users is called stability.
Response time:-Time taken to send the request to the server such as running the program in the server, and getting back the request from the server is called response time.
Load:-number of users using the application is called load.
Types of performance testing:-
In load testing, you test the stability and response time of an application by applying load which is equal to the design no of users or which is less than the design no of users. this is the load testing.
For example:-we have developed an application for 50 users. when I am doing the load testing I am testing it with only 45 users or a maximum only of 50 users.
In Stress testing, you test the stability and response time of an application by applying load which is more than the design no of users. this is stress testing.
Suppose you have developed an application and requirement is telling that my application should be able to handle 1000 requests at a time and it should give the response time within 3 sec. this is my requirement but in stress testing, I will apply the load more than the requirement.
In Scalability testing, you test the stability and response time of an application by applying load which is more than the design no of users, and here we try to find out where exactly my software is going to crash.
For example, you have developed the software for 100 users at any moment of time. which should be the response time within 2 sec.in scalability testing, I will try to break my software by applying more load and I will check my software can handle 100 users at a time but what happens when you will apply 1000 of the user at a time your software will crash.
In Volume testing, you test the stability and response time of an application by transferring a huge no of data such as In volume, we test the capacity of my database.
Performance Testing Process:-
Identify Test Enviroment:-
you should know the physical test environment and production test environment and what testing tools are available. you should also know the hardware, software, and network configurations before you begin the testing process.it will help the tester to create more efficient tests.
Testers should set the testing criteria and goals. we will do the setup of the tool which is used for performance testing.
Plan and Design:-
It is the test plan that decides how to perform the test that will take place such as how to perform our test cases.
Test Plan Development:-
Here use cases create for the identified functionality once the client approves the use cases the development begins.
Performance test modeling:-
here performance test model is made for test execution it is checked if the performance testing matrices are achieved.
Execution Test Plan:-
Initially, the test is not executing with a maximum number of users that are in the load model. test execution is complete in the incremental order. there are 1000 users. then the scenario will begin testing with 100 then 200 then 300 and go up to 1000.
This is the most important step of performance testing. here the productivity that may provide by performance testing is present.
It is necessary to have a simple conclusion. development team needs more information such as a comparison of results, and the details of how the result will come. A brief descriptive, and end to the point test report should be clear.
Performance Testing tools:-
Following are some tools for performance testing
- Apache JMeter
Here we will talk about only the JMeter tool for testing.
Jmeter for performance testing
- It is also known as the Apache JMeter.
- it is an open-source tool for testing.
- JMeter is use for the analyze the load and performance of an application.
- Apache JMeter is software that is use such as a load testing tool for measuring the performance of a variety of services.
- JMeter is use for testing web application or FTP application
- it is use for a functional test,Database server test,API testing etc.
Element of JMeter:-
- Thread Group
Advantage of Jmeter:-
Open source licence:-we don’t have any license for JMeter.it is totally free so we can just download and install JMeter.
Platform Independent:-JMeter is a 100% java based application so it can run on multiple platforms like MAC, Linux, or Windows.
Visualize Test Result:-test results can display in different formats such as a chart, table, or log files so we can see different kinds of reports.
Easy Installation:-so you can just copy and run some small files to run JMeter so we don’t need to install anything you just need small files and JMeter will start.
Support Multiple Protocol:-it supports multiple protocols like JMeter does not only support web applications testing but is also able to database server performance and API testing. Jmeter supports all basic protocols such as HTTP, JDBC, FTP.
How we do JMeter performance testing:-
JMeter performance testing doing by the Apache JMeter tool for testing the web application.JMeter performance testing includes the load test and stress test of an application.
Create a test plan in JMeter
- Add Thread Group
- Adding JMeter Elements
- Add Graph Result
- Result and get the result