Looking at the docs for repeat
:
.repeat(times) {
myChain
}
Given a ScenarioBuilder
, how can I pass that into the repeat
block?
Here’s what I tried, and its accompanying compile-time error:
class F extends Simulation {
val scen: ScenarioBuilder = ???
setUp(
repeat(10) {scen}.inject(atOnceUsers(1))
)
}
[error] found : io.gatling.core.structure.ScenarioBuilder
[error] required: io.gatling.core.structure.ChainBuilder
[error] repeat(10) {scen}.inject(atOnceUsers(1))
[error] ^
Thanks