Hello,
I have two files :
- Scenario
- Simulation
On my scenario file, I am running one HTTP Get command to retrieve a Json.
I am looking for a specific attribute on my JSON file, waiting for this attribute to change into “success” so I am running this command :
…
.exec (
my get command
…
)
.group(job-${job_id}) {
asLongAs(session => session(“status”.as[String] != "success)) {
exec(
other commands)
}
How can I use the ${job_id} variable on my Simulation file ?
I would like to group my requests by job_id so I can check whether the assertion is failing :
setUp (…).assertions(details(job-${job_id}).responseTime.max.lessThan(1000)) but job_id doesn’t exist in my simulation file…
Thanks,