Here is what I set:
`
setUp(
scn.inject(
splitUsers(MAX_USERS_COUNT) into(
atOnceUsers(10)
) separatedBy(10 seconds)
).protocols(httpProtocol)
)
`
I find that MAX_USERS_COUNT must be multiples of ten, e.g 20,30,…40. 21 will just active 20 users. And If MAX_USERS_COUNT <= 10, e.g 1, will raise an error:
`
Exception in thread “main” java.lang.UnsupportedOperationException: There were no requests sent during the simulation, reports won’t be generated
at io.gatling.charts.report.ReportsGenerator.generateFor(ReportsGenerator.scala:48)
at io.gatling.app.RunResultProcessor.generateReports(RunResultProcessor.scala:76)
at io.gatling.app.RunResultProcessor.processRunResult(RunResultProcessor.scala:55)
at io.gatling.app.Gatling$.start(Gatling.scala:61)
at io.gatling.app.Gatling$.fromArgs(Gatling.scala:41)
at io.gatling.app.Gatling$.main(Gatling.scala:33)
at io.gatling.app.Gatling.main(Gatling.scala)
`
Any ideas?