The Wayback Machine - https://web.archive.org/web/20260507124222/https://www.geeksforgeeks.org/software-testing/software-testing-endurance-testing/

Endurance Testing - Software Testing

Last Updated : 4 May, 2026

Endurance Testing (Soak Testing) is a type of non-functional testing that evaluates how a system performs under continuous load over a long period. It helps ensure the application remains stable, responsive, and reliable during extended usage.

  • Checks system stability over long duration
  • Identifies memory leaks and performance degradation
  • Ensures consistent performance under continuous load
  • Detects problems missed in short-duration load or stress testing

Endurance Testing Graph Explanation

This graph shows how Endurance Testing is performed over time using virtual users (load).

endurance-testing
Endurance Testing

X-axis: Test Time (long duration)

Y-axis: Virtual Users (number of users/load)

Phases in the Graph

  • Ramp-Up Phase: At the beginning, the number of users is gradually increased. This helps the system reach the desired load smoothly without sudden stress.
  • Steady State (Endurance Phase) : The load is kept constant for a long period. This is the most important phase where the system is observed for memory leaks, performance degradation, and stability.
  • Ramp-Down Phase: At the end, the load is gradually reduced. This ensures the system shuts down smoothly without errors.

Types of Endurance Testing

Endurance Testing includes different types based on system behavior and testing goals.

  • Load-Based Endurance Testing: The system is tested under a constant expected user load for a long time. It checks if performance remains stable without degradation.
  • Stress-Based Endurance Testing: The system is tested with high or near-maximum load for an extended period. It helps identify system limits and failure points over time.
  • Volume-Based Endurance Testing: A large amount of data is processed continuously to check system performance. It ensures the system can handle heavy data loads without issues.
  • Configuration-Based Endurance Testing: Testing is performed with different system configurations (hardware/software). It ensures consistent performance across environments.
  • Memory Leak Testing: Focuses on detecting memory leaks during long execution. It checks whether memory usage increases continuously and affects performance.
  • Performance Stability Testing: Evaluates if the system maintains consistent response time and throughput over time. It ensures no gradual slowdown occurs.

Example: A social media app is tested with constant user activity for 72 hours to verify that it maintains performance without memory leaks or crashes.

Endurance Testing Process

This diagram illustrates the step-by-step process of Endurance Testing, from environment setup to test closure.

Endurance-Testing-Process
Process of Endurance Testing
  • Establish the Test Environment : Set up a production-like environment with proper hardware, software, and network configuration to get accurate results.
  • Create Test Plan: Define objectives, scope, workload, success criteria, and testing approach for the endurance test.
  • Test Estimation: Estimate required resources like tools, time, data, and manpower needed for long-duration testing.
  • Risk Analysis: Identify possible risks (e.g., system crash, data loss) and prepare strategies to minimize them.
  • Test Schedule: Prepare a timeline for all testing activities. Include phases like data preparation, execution, monitoring, and result analysis.
  • Test Execution: Run the system under continuous load for a long duration. Monitor system behavior, collect performance data, and identify bottlenecks.
  • Test Closure: Analyze results, compare with expected outcomes, and prepare a final report with findings and improvements.

Metrics of Endurance Testing

Metrics of Endurance Testing are used to measure system performance and stability over a long duration.

  • Response Time: Measures the time taken by the system to respond to user requests. It should remain stable throughout long execution.
  • Throughput: Indicates the number of requests processed per second. Consistent throughput shows good system performance over time.
  • CPU Utilization: Tracks how much CPU is used during testing. High or continuously increasing usage may indicate performance issues.
  • Memory Usage: Monitors memory consumption over time. A steady increase may indicate memory leaks.
  • Disk I/O: Measures read/write operations on disk. High disk activity can slow down system performance.
  • Error Rate: Counts the number of failed or incorrect requests. Increasing errors over time indicate system instability.
  • Network Usage: Tracks data transfer across the network. Helps identify bottlenecks in communication.
  • System Stability/Uptime: Measures how long the system runs without failure. Longer stable uptime indicates better endurance.

Example: During a 48-hour test, if response time increases and memory usage keeps rising, it indicates performance degradation or a memory leak.

Endurance Testing Tools

Here are some popular tools that can help automate and execute endurance testing:

  • JMeter: Apache JMeter is a powerful, open-source tool used for performance and endurance testing. It can simulate many virtual users and track how the system performs during long periods of use.
  • LoadRunner: HP LoadRunner is widely used for load and performance testing. It supports various protocols and provides many monitoring options, making it ideal for running endurance tests across different systems.
  • Gatling: Gatling is a user-friendly load testing tool designed for developers. It allows for continuous load generation, helping simulate prolonged high traffic and ensuring the system can handle long periods of stress.
  • New Relic: New Relic is a performance monitoring tool that helps track system resources and performance. It gives valuable insights into potential bottlenecks, allowing you to monitor and optimize performance during endurance testing.

Advantages of Endurance Testing

  • It determines the amount of workload a system can handle.
  • It helps in the identification of performance problems that occur when the system is used for a long period.
  • It helps in identifying the amount of memory leakage.
  • If the testing is done effectively then there will be a reduction in maintenance costs.
  • It ensures client and customer satisfaction.
  • It can help identify performance issues that may not be immediately apparent during shorter testing periods, such as memory leaks, performance degradation, or other problems that may only occur after prolonged usage.

Application of Endurance Testing

  • It is widely used in e-commerce platforms to ensure system stability during prolonged high-traffic events such as sales and festivals by simulating continuous user activity over many hours or days.
  • In online banking and financial systems, endurance testing helps verify the reliability of continuous transaction processing and overnight batch jobs by detecting memory leaks and resource exhaustion over extended periods.
  • Streaming services and media platforms apply endurance testing to confirm that long-duration video or audio playback sessions do not cause performance degradation or crashes under sustained concurrent user load.
  • SaaS applications and enterprise software undergo endurance testing to maintain consistent performance for global users working across different time zones without gradual slowdowns or failures.
  • Mission-critical systems such as healthcare monitoring applications and multiplayer gaming servers use endurance testing to ensure uninterrupted and reliable operation over several hours or days in real-world conditions.

Load Testing Vs Endurance Testing

BasisLoad TestingEndurance Testing
PurposeCheck performance under expected loadCheck stability over long duration
DurationShort-term testingLong-term testing (hours/days)
FocusResponse time, throughputMemory leaks, performance degradation
GoalEnsure system handles expected usersEnsure system runs continuously without failure
Load TypeNormal or peak loadConstant load for long period
Issues DetectedBottlenecks, slow responseMemory leaks, resource exhaustion
Testing NatureImmediate performance checkLong-term reliability check
Comment

Explore