Maven Archetype: Running Gatling.fromMap in a loop does not work

I’m trying to automate some repetitive and long lasting test using the Maven Archetype.

Therefore I’m trying to run Gatling.fromMap in a loop like so:

`
import io.gatling.app.Gatling
import io.gatling.core.config.GatlingPropertiesBuilder

object AutomaticEngine extends App {

for (i ← 1 to 10) {

var props = new GatlingPropertiesBuilder
props.simulationClass(“Tests.MyScenario”)
props.dataDirectory(IDEPathHelper.dataDirectory.toString)
props.resultsDirectory(IDEPathHelper.resultsDirectory.toString)
props.bodiesDirectory(IDEPathHelper.bodiesDirectory.toString)
props.binariesDirectory(IDEPathHelper.mavenBinariesDirectory.toString)

Gatling.fromMap(props.build)

//Fetch logs…
}
}
`

``

Yet this only works for the first iteration, on the second iteration Gatling prompts that the simulation is started but no requests are sent (checked via Wireshark).

So I'm not quite sure, if this is a bug, if I'm missing something or if I'm trying to use things in a way they were not thought to.

My Gatling verison is 2.2.5.

Any help is welcome.