soak testing

Soak testing is a type of performance evaluation that gauges how an application handles a growing number of users or increasingly taxing tasks over an extended period of time. Soak testing is both a type of nonfunctional test and a form of stress testing. The process informs software testers whether an application performs satisfactorily after hours -- or days -- of usage. Soak testing uncovers software issues that only become apparent after it runs for extended periods of time, such as a gradual memory leak.

During soak testing, a QA team records metrics for key performance indicators, such as throughput, response time and memory usage, and compares them from when the test begins to when it ends.

A quality assurance (QA) professional incorporates soak testing before an application or an app update reaches production, where it is available to real users. Soak testing typically takes place alongside system testing, which examines components of the software as one system to make sure they align with specified requirements. Other non-functional tests often occur at this test level, such as Load testing.

A testing team could choose to run soak tests overnight or on a weekend, instead of during the work day, to avoid disrupting other members of the software development team.

Soak vs. load vs. stress testing

Soak testing can be confused or conflated with other types of performance tests, including load and stress tests.

Alan Richardson explains Agile testing and
how it helps organizations.

Load testing subjects an application or system to a level of work it is expected to handle. This process aims to determine the ideal limits of work that an application or software can handle. Stress tests expose applications to more than 100% of the expected level of traffic -- aka the intended load -- to determine the threshold at which the software or system can no longer reliably perform. Unlike load testing, stress testing typically is performed until the target breaks.

Soak testing differs from both of these methods as it focuses on long-term performance sustainability -- not determining the upper limits of a system's performance capabilities. A soak test ascertains if an application functions when it's subjected to as much as 100% of its intended load for a prolonged period. In a soak test, testers monitor the effects of accrued load.

Soak testing tools

Many tools are able to execute soak tests in accordance with other techniques. Typically, a QA professional would use a load testing tool to execute a soak test, and program in periods of high, medium or low traffic as needed, as well as the duration of the test. If the tool has a maximum duration, the tester can use the results and extrapolate them to estimate performance over longer time spans, such as a week or month.

Examples of tools and automated systems with soak testing capabilities include: Apache JMeter, LoadUI, WebLOAD, Appvance IQ and a variety of plugins on GitHub and Jenkins.

This was last updated in October 2018

Continue Reading About soak testing

Dig Deeper on Software test types

Cloud Computing
App Architecture