Infinite Loop on scenario


I don’t know why the bottom scenario never ends. In gatling.conf is setted 1 minute of timeout. But the scenario still wating… Maybe you can help me. Plz.

TEST_DURATION = 10 secs.


This is my scenario:

package simulation

import scala.concurrent.duration.DurationInt
import com.atlassian.gatling.jwt.Predef.httpWithJwt
import io.gatling.core.Predef._
import io.gatling.core.Predef._
import io.gatling.core.Predef.bootstrap.{ exec, feed }
import io.gatling.http.Predef._
import simulation.Config._
import simulation.Feeders._
import com.atlassian.gatling.jwt.JwtSigner
import io.gatling.core.session.Session
import io.gatling.core.session.Expression

class UpdateIssueWebhook extends Simulation {

val httpProtocol = http.baseURL(CONNECT_APP)

val paramsMutableMapHack = collection.mutable.MapString, Array[String]

val updateIssueWebhookScenario = scenario(s"Update Issue Webhook Scenario")
.during(TEST_DURATION seconds) {
.queryParam(“jwt”,session => {val paramsMutableMapHack = collection.mutable.MapString, Array[String]; JwtSigner.generateSignature(“POST”, “/jira-issue_updated”, paramsMutableMapHack.toMap, session(“tenant”).as[String], session(“user”).as[String], “mock-tenant-shared-secret”);})

setUp(updateIssueWebhookScenario.inject(ramp(TOTAL_USERS users) over (TEST_DURATION seconds)))


Your test should run for 20 seconds, plus however long it takes for the last initiated request to finish, which if you are flooding the server, may be a long time. But it’s not obvious why it would run longer than 2 minutes.