I need to update .csv file containing some ids used within Gatling simulation, as I need to create data beforehand. I tried to update that file within before() call however it won't work. Lazy evaluation won't work either.
before {
Helper.CreateDocuments()
}
lazy val documentIds = csv("data/documentIds.csv").circular
val scn: ScenarioBuilder = scenario("PutFile")
.feed(documentIds)
.exec(http("Dynamic id")
.put("files/${documentId}"))...
How can I solve that issue to feed simulation with refreshed ids?