有没有办法从模拟中配置 Gatling?

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

有没有办法在模拟中配置 Gatling?我尝试在 Scala 中设置 lowerBound 和 higherBound。我想出了如何覆盖它:

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

但我只想添加两个属性。

不,为时已晚:配置在模拟之前加载。