doWhileDuring evaluation

Hi,

I would expect doWhile to perform the block first and then evaluate the condition. Also docs seems to confirm that. But looks like it does not work that way? Thanks for clarification. Using Gatling 3.0.0

14:59:43.739 [ERROR] i.g.c.s.LoopBlock$ - Condition evaluation crashed with message ‘j.u.NoSuchElementException: No attribute named ‘jobStatus’ is defined’, exiting loop

  .doWhileDuring(session => !session("jobStatus").as[String].equals("DONE"), 3 minutes) {
    exec(http("process/")
      .get("/api/v1/process/${processId}")
      .check(jsonPath("$.status").notNull.saveAs("jobStatus")))
      .pause(5 seconds)
}

A bug indeed, thanks for reporting!

https://github.com/gatling/gatling/issues/3598