I moved our scripts from gatling 1.5.3 to gatling 2.0.0.M3a and I am not sure how to handle executing multiple scenarios concurrently anymore against different base URL’s now that the protocols are set at the simulation level and not the scenario level. For example, suppose I have the following setUp defined in a simulation:
class JavaScriptScenarioController extends Simulation {
val httpConfiguration1 = http.baseURL(“http://www.baseurl1.com”)
val httpConfiguration2 = http.baseURL(“http://www.baseurl2.com”)
val httpConfiguration3 = http.baseURL(“http://www.baseurl3.com”)
setUp(Scenario1.scn1.inject(atOnce(1)),
Scenario2.scn2.inject(atOnce(1)),
Scenario3.scn3.inject(atOnce(1))).protocols(httpConfiguration1)
}
What I would like to do is run Scenario1 with httpConfiguration1, Scenario2 with httpConfiguration2, and so on since the scenarios are defined against different baseURL’s. In gatling 1.5.3 that was easy since you set the protocol on the scenario but in gatling 2.0.0.M3a you set the protocol on the simulation. How would I do this now?
Thanks,
Steve