Kris
Kris

Reputation: 4823

Is there a way to configure Gatling from within a Simulation?

Is there a way to configure Gatling from within a Simulation? I try to set lowerBound and higherBound from within Scala. I figured out how to overwrite it:

val props = new HashMap[String, Any]()
props += ("gatling.charting.indicators.lowerBound" -> 5)
props += ("gatling.charting.indicators.higherBound" -> 100)
GatlingConfiguration.setUp(props)

But I just want to add two properties.

Upvotes: 0

Views: 233

Answers (1)

Stephane Landelle
Stephane Landelle

Reputation: 7038

No, it's too late: the configuration is loaded prior to the simulation.

Upvotes: 1

Related Questions