A lot of my simulations are ending up with a smaller request count than I’m expecting. I have managed to create a minimal simulation that shows the problem and it seems as though requests made to one URL execute the expected number of requests while when the URL is changed it only makes one request. Any ideas what could cause this?
Gatling version: 2.1.6
Java version: 1.8
OS X
MyTestClass.scala
`
import io.gatling.core.Predef._
import io.gatling.http.Predef._
import scala.concurrent.duration._
class MyTestClass extends Simulation {
val headersMap = Map("Content-type" -> "application/json")
val httpConf = http
.baseURL("https://<redacted>")
.acceptHeader("application/json")
.disableFollowRedirect
.headers(Map("Authorization" -> "Bearer <redacted>"))
val getStatus = repeat(5) {
exec(
http("getStatus")
.post("/users/auth")
.headers(headersMap)
)
}.pause(100 milliseconds, 100 milliseconds)
val scn = scenario("BasicSimulation").exec(getStatus)
setUp(scn.inject(atOnceUsers(1))).protocols(httpConf)
}
`
Output when path is /users/auth
`
GATLING_HOME is set to
Simulation MyTestClass started…
12:59:55.430 [INFO ] i.g.h.a.HttpEngine - Sending request=getStatus uri=https:///users/auth: scenario=BasicSimulation, userId=4834773574297995308-0