Hello,
I was able to get the same error with gatling 2.0.0-M3a:
GATLING_HOME is set to /home/ec2-user/perfs/gatling-charts-highcharts-2.0.0-M3a
Choose a simulation number:
[0] advanced.AdvancedExampleSimulation
[1] basic.BasicExampleSimulation
1
Select simulation id (default is ‘basicexamplesimulation’). Accepted characters are a-z, A-Z, 0-9, - and _
Select run description (optional)
test10M
Simulation basic.BasicExampleSimulation started…
Exception in thread “main” java.util.concurrent.TimeoutException: Futures timed out after [5 seconds]
at scala.concurrent.impl.Promise$DefaultPromise.ready(Promise.scala:96)
at scala.concurrent.impl.Promise$DefaultPromise.result(Promise.scala:100)
at scala.concurrent.Await$$anonfun$result$1.apply(package.scala:107)
at scala.concurrent.BlockContext$DefaultBlockContext$.blockOn(BlockContext.scala:53)
at scala.concurrent.Await$.result(package.scala:107)
at io.gatling.core.runner.Runner.run(Runner.scala:61)
at io.gatling.app.Gatling$$anonfun$18.apply(Gatling.scala:188)
at io.gatling.app.Gatling$$anonfun$18.apply(Gatling.scala:180)
at scala.Option.getOrElse(Option.scala:120)
at io.gatling.app.Gatling.start(Gatling.scala:180)
at io.gatling.app.Gatling$.fromMap(Gatling.scala:59)
at io.gatling.app.Gatling$.runGatling(Gatling.scala:80)
at io.gatling.app.Gatling$.main(Gatling.scala:54)
at io.gatling.app.Gatling.main(Gatling.scala)
Here’s the important part of my scenario. If I remember well, I don’t have the error if I comment the pause, I can check if you want to :
val createThenRead = scenario(“create then read”)
.feed(personFeeder.circular)
.feed(randomExternalIdFeeder)
.repeat(20000) {
exec(
http(“create request”)
.post("/requests/create")
.body(StringBody("""{
“externalId”: “${request_ext_id}”,
“accountId”: “${accountId}”,
“personLabel”: “${personLabel}”,
“refId”: “refId_1”,
“nature”: “nature_1”,
“personType”: “personType_1”,
“advisorId”: “advisorId_1”,
“operator”: “operator_1”,
“status”: “status_1”,
“comment”: “comment_1”,
“createUserId”: “createUserId_1”,
“updateUserId”: “updateUserId_1”,
“theme”: “theme_1”,
“topic”: “topic_1”,
“subTopic”: “subTopic_1”,
“contractId”: “contractId_1”,
“hardwareId”: “hardwareId_1”,
“result”: “result_1”,
“incidentId”: “incidentId_1”,
“multiSession”: false,
“argument”: “argument_1”,
“resultArgument”: “resultArgument_1”,
“offerProposed”: [“offer_1”, “offer_2”],
“offerAccepted”: [“offer_1”,“offer_2”]
}"""))
.headers(headers_1)
.check(status.is(200))
.check(regex("""“returnCode”\s*:\s*0"""))
.check(regex("""“externalId”\s*:\s*"(\w+)""""))
.check(regex("""“NORMAL”"""))
)
.pause(10 milliseconds, 20 milliseconds)
}
)
setUp(createThenRead.inject(ramp(500 users) over (30 seconds)))
.protocols(httpProtocol)