doWhileDuring evaluation


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) {
      .pause(5 seconds)

A bug indeed, thanks for reporting!