Soak Testing With Gatling Example

Soak Testing involves running one or more scenarios for a long duration, e.g. 24 hours, to find memory leaks in an application.

Some applications, when subjected to a constant load for a long time, could exhibit performance degradation. This is usually due to consuming too much memory and over a long period, the application could crash.

Gatling tool provides a number of ways we can configure scenarios to run for long durations to simulate soak testing.

The Loop feature within Gatling has the following methods:

repeat

during

asLongAs

foreach

doWhile

asLongAsDuring

doWhileDuring

forever

In this tutorial, we will look at how to use the during method to perform a soak test with Gatling.