Load Test

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?

Peak Load is the highest load (in terms of user or volume) identified during a day, a month or a year depending upon the production data selection criteria. To understand the peak load refer to the below graph.

Peak Load Graph
Figure 1: Production Data Graph to identify the 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:

  1. To Identify whether the application can handle the peak load
  2. Observe the behaviour of the application in terms of response time
  3. To check whether the resources (CPU, Memory and Disk) do not breach the defined performance limit
  4. 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.

Approach:

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:

Load Test
Figure 2: A Typical Load Test Graph

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:


Leave a Comment