========
package com.taulia
import io.gatling.app.Gatling //The companion object is public
object GatlingBootstrap {
val run = {
//...
val simulationClass = Class.forName(gatlingSimulationClass).asInstanceOf[Class[Simulation]]
logger.debug(s"Calling into Gatling with simulation class: $simulationClass and config variables:\n$configMap")
Gatling.fromMap(configMap, Option(simulationClass)) //works beautifully for us!!
}
}
with 2.1.4
========
package
io.gatling.app //No need for import, but the Gatling class is package-private, so our class needs to be in the same package
object GatlingBootstrap {
val run = {
//...
val simulationClass = Class.forName(gatlingSimulationClass).asInstanceOf[Class[Simulation]]
logger.debug(s"Calling into Gatling with simulation class: $simulationClass and config variables:\n$configMap")
new Gatling(configMap, Option(simulationClass)).start // fromArgs is of no use to us because we need to pass overrides from our config files
}
}
Hope this make sense.
Thanks
Nico