If my simulation setup I put something like:
scenarioName.inject(atOnceUsers(10), rampUsers(100) over(20 seconds)).protocols(protocolName)
Then I get:
[ant:scalac] /home/username/gatling/src/main/scala/Setup.scala:43: error: type mismatch; [ant:scalac] found : Int(100) [ant:scalac] required: io.gatling.core.session.Session [ant:scalac] scenarioName.inject(atOnceUsers(10), rampUsers(100) over(20 seconds)).protocols(protocolName)
Other injection functions work great. What could be the reason for this error?
That doesn’t make any sense. Which version do you use?
dependencies {
compile ‘org.codehaus.janino:janino:2.7.7’
compile ‘io.gatling.highcharts:gatling-charts-highcharts:2.1.7’
compile ‘io.gatling:gatling-app:2.1.7’
compile ‘org.scala-lang:scala-library:2.11.7’
compile ‘org.scala-lang:scala-compiler:2.11.7’
compile ‘org.apache.activemq:activemq-core:5.7.0’
}
Are you sure you didn’t override rampUsers?
Yes, I accidentally did override it in some of the older files. Sorry for that, could not find it at first. Thanks again.