Load Testing Tutorial: What is? How to? (with Examples)

Load Testing

Load Testing is a non-functional software testing process in which the performance of software application is tested under a specific expected load. It determines how the software application behaves while being accessed by multiple users simultaneously. The goal of Load Testing is to improve performance bottlenecks and to ensure stability and smooth functioning of software application before deployment.

In this tutorial, you will learn-

Need of Load Testing:

Some extremely popular sites have suffered serious downtimes when they get massive traffic volumes. E-commerce websites invest heavily in advertising campaigns, but not in Load Testing to ensure optimal system performance, when that marketing brings in traffic.

Consider the following examples

Many sites suffer delayed load times when they encounter heavy traffic. Few Facts -

Why Load Testing?

Goals of Load Testing:

Loading testing identifies the following problems before moving the application to market or Production:

Load testing will determine whether the system needs to be fine-tuned or modification of hardware and software is required to improve performance.

Prerequisites of load testing:

The chief metric for load testing is response time. Before you begin load testing, you must determine -

An environment needs to be set up before starting the load testing:

Hardware Platform Software Configuration
  • Server Machines
  • Processors
  • Memory
  • Disk Storage
  • Load Machines configuration
  • Network configuration
  • Operating System
  • Server Software

Strategies of load Testing:

There are many numbers of ways to perform load testing. Following are a few load testing strategies- The load testing process can be briefly described as below -

  1. Create a dedicated Test Environment for load testing
  2. Determine the following
  3. Load Test Scenarios
  4. Determine load testing transactions for an application
    • Prepare Data for each transaction
    • Number of Users accessing the system need to be predicted
    • Determine connection speeds. Some users may be connected via leased lines while others may use dial-up
    • Determine different browsers and operating systems used by the usersĀ 
    • A configuration of all the servers like web, application and DB Servers
  5. Test Scenario execution and monitoring. Collecting various metrics
  6. Analyze the results. Make recommendations
  7. Fine-tune the System
  8. Re-test

Guidelines for load testing

Advantages and disadvantages of Load testing:

Following are the advantages of Load testing:

Disadvantages of Load testing:

Summary:

 

YOU MIGHT LIKE: