Gatling 2 -Disable all pauses?

Is there a way to disable all pauses?

It would be great to be able to disable all pauses during development. Right now we are multiplying durations with a constant that we can set to zero, but that’s kinda ugly.

Cheers,

Stefan

You mean like here? :slight_smile:

The syntax might change a bit in the future, but here’s the current one:

setUp(…).pauses(disabledPauses|constantPauses|exponentialPauses…)

So, you can trigger the value from a System property, such as

val pauseMode = if (Option(java.lang.Boolean.valueOf(“prod”)).map(_.booleanValue).getOrElse(false)) constantPauses else disabledPauses

Cheers,

Stéphane

Great, thanks!

What does exponentialPauses mean?

Cheers,

Stefan

It’s the strategy for exponential pause duration. In Gatling 1, it looked like this: https://github.com/excilys/gatling/wiki/Structure-Elements#wiki-pause

http://en.wikipedia.org/wiki/Exponential_distribution

http://en.wikipedia.org/wiki/Poisson_distribution