-->
Gatling Load Testing is one of the best tools for performance testing based on Scala-Akka-Netty that you can easily use by generating beautiful reports. There are a few ways to script to run in Gatling, all of which are well documented on the tool’s website:
The script we will make as an example uses the Gatling Recorder through a HAR file, in our case, it is from the page “globo.com”.
Now with the script ready, we can do our report. Just run Gatling load testing, select the number of your simulation, and some description if you wish. Then, the simulation begins. In the end, it generates an HTML report to visualize the information in more detail.
The main page displays a graph that shows the number of requests made in the script concerning time. By default, Gatling considers that the time below 800ms is good. Between 800 and 1200 is worrying, and above 1200 is bad, but this can be changed in the config file according to our needs.
By clicking on a request, we have detailed information about it which is the same information that was on the main page, except with a specific graph for it and with the separation of the information from the failed requests and those that were successful.
Returning to the main screen, at the bottom, we have the graph of the number of users who were used in the simulation with time.
Performance testing in software testing helps to ensure that the software or applications perform properly under their workload. This testing technique is performed to determine the performance of the system in terms of stability, sensitivity, workload, and reactivity.
Hence, the process of performance testing helps to analyze the capability and quality of a product. This testing method helps us to determine the performance of the software in terms of speed, reliability, stability and different workloads. The performance testing process is also known as Perf testing.
Different attributes of performance testing are as follows:
So, what is the main purpose of conducting the performance testing process? What goals or objectives does the process help us to achieve?
The objectives of conducting the performance testing process are as follows:
After knowing the objectives of performance testing, you can initiate the process of performance testing, but before that, you should also know the various types of performance testing. Let us have a look at them.
This type of performance testing helps the testers to verify the ability of a software product to perform under anticipated user loads. The main goal of performing load testing is to evaluate performance congestion before launching the product to all the people out there in the market.
A good software product should be able to handle the expected load in a long period. Hence, endurance testing is performed to ensure that the software product can handle the expected load.
A software product should also be able to handle high traffic in extreme situations. Thus, stress testing helps to substantiate whether a product can handle high traffic under extreme workloads or not. The main objective is to recognize the breaking point of the software.
Despite testing helps to identify whether the product is capable to adhere to the large spikes in the load generated by the users.
Volume testing helps to know whether the overall system behaviour is accurate or not. It helps to check the performance of the product under different database volumes.
Scalability testing helps to determine the effectiveness of a software application.
Now, we can start improving our Script by opening the Scala file generated by the Recorder and changing what is necessary. You can delete requests that we consider unnecessary, edit the name of the requisitions to improve their identification in the reports, and test with the number of different users.
Hence, now you must know about Gatling load testing, which is one of the best tools for performance testing. You should also be able to answer the question- What performance testing is?