What is a Load Test?
A Load Test is a type of non-functional test which verifies the performance of an application or system under a peak user/volume condition. This test also validates the resource usage, stability and reliability of the software system under peak load.
What is Peak Load?
This graph shows the number of active customers per day in Jun. The highest number of active customers is 927 on 30th Jun. Hence 927 is the peak load.
For a new application: Since a new application does not have any production data, then the peak load needs to be predicted. The client or project business analyst (BA) confirms the expected peak volume of the application. A performance tester can use the expected peak load to prepare the workload model for the load test.
Purpose of Load Test:
- To Identify whether the application can handle the peak load
- Observe the behaviour of the application in terms of response time
- To check whether the resources (CPU, Memory and Disk) do not breach the defined performance limit
- To identify if there is any bottleneck
Load Test is also conducted in a regression manner to identify the performance issue due to the weekly, fortnightly or monthly code releases.
The NFR document has some separate sets of NFRs for the load test. These NFRs are related to the count of peak user load, response time, transactions per second etc. A performance tester designs the workload model using these NFRs and executes the test. Ideally, the duration of the load test is 1 hour (excluding the ramp-up and ramp-down period). A typical load test user graph is:
The above graph has a steady state of 1 hour along with 10 minutes ramp-up and 10 minutes ramp-down period. Therefore the test will run for 1 hour and 20 minutes. After completion of the test, a performance tester verifies the result against the defined load test NFRs.
YouTube Video: Link
You may be interested: