Unable to evaluate EL while creating Gatling scenario
问题 I am creating scenario with repeat block. As I need index based request to be generated. def scnWithLoop() = scenario("scenarioName").repeat(counter, "counter") { exec (session => { val index: Integer = Integer.getInteger(session.attributes.get("counter").get.toString()); session.set("index", index) session }) exec( http("scenarioName") .post(contextPath) .headers(headers) .body(StringBody(getData("${index}".toInt))) .check(status.in(expectedCodes)) ).pause(20 seconds) } But this doesn't