The number of failures experienced by an application can be considerably reduced by implementing and performing proper Load testing strategies throughout the development cycle. It can significantly reduce the number of failures occurring in an application and can also affect the revenue of the application. However, it is expensive to fix. Performance testing is performed to understand the behavior of the system as well as to measure the overall response time with other application in the system.
There are various kinds and strategy of load testing, which can be used to simulate different load on the application. Here, each strategy can help us to identify different types of problems in the application/infrastructure.
Note: We have already seen the concept of parameterization and how to store response data in the CSV file.
Now, let’s move ahead with script validation
- First, add “View Result Tree” listener.Make sure the number of users and number of iteration (loop count) is 1.
- Click on run.
- Validate each response to make sure the script is working as expected.
Adding List of Listener
- Add required listeners, which need to be monitored during execution.
- Also, pass result file name where the result will be saved for the future. That result can be analyzed importing in the same.
- For high users load view result tree is recommended for Errors only.
- The delay between steps some time needs to pass some delay between a request to make scenario realistic or for controlling the load. It can be done as shown below.
- Pass number of users, ramp up period and number of iterations (in below example all 10 will be ramped up in 60 seconds and it will be executed for forever – here need to stop test manually).2. Now start the test and monitor listeners.
You may also like: How to Store Responsive Data while working with JMeter?