Store body result in a list and use later

Hello, I couldn’t find anything related in the documentation or in the discussion forums.

I’m with a case that I have to do several POST requests, get the StatusUrl property from the response body and store in a List/file/anything to use later in other scenario.

I was thinking in something like that:


val postSims = scenario(“PostSims”)
http(“Post Sims”)
//Check the JsonPath and save push to a list. .check(jsonPath("$…StatusUrl").saveAs(Here I push to a list))

val checkCommands = scenario(“CheckCommands”)
http(“Check Command”)
// Here, somehow, do a GET for all links in the previously saved list.

val postSims = scenario(“PostSims”).exec(postSims)
val checkCommands = scenario(“CheckCommands”).exec(checkCommands)

postSims.inject(rampUsers(20) during (10 seconds)),
postSims.inject(nothingFor(30), rampUsers(20) during (10 seconds))


The Gatling version that I’m using:


libraryDependencies += “io.gatling.highcharts” % “gatling-charts-highcharts” % “3.1.1” % “test,it”
libraryDependencies += “io.gatling” % “gatling-test-framework” % “3.1.1” % “test,it”


Is something like that supported? If not, is there any other approach that I could use?