Hi folks
Hoping someone here can help me out. I’m having some trouble passing parameters to a scenario in 2.0, as outlined here: http://gatling.io/docs/2.0.0-RC2/cookbook/passing_parameters.html.
In v1.5.6 I was able to pass a parameter like this:
val iterations = Integer.getInteger(“iterations”, 20)
then pass it to a repeat in my scenario like this:
repeat(iterations)
In RC2, however, when I do this I get the following:
type mismatch;
found : Integer
required: io.gatling.core.session.Session => io.gatling.core.validation.Validation[Int]
Is there a correct way to create the Map the error is asking for, or is there a different way of passing the parameter in 2.0 that I’m missing?
Similarly, the example in the docs shows a Long being passed to ‘rampUsers() over()’, but it appears that now a FiniteDuration has to be passed, so it seems like the way the values in the scenario are parsed has changed.
Thanks in advance for any advice!