Hi,
New to Gatling here but loving it so far.
I am having trouble extracting the value of my custom feeder, can someone take a look at the following and let me know what I’m not doing right? In the example below, the String “${file}” keeps getting passed to getJsonRequestBody instead of a value from the feeder. Thanks in advance!
val feeder = FileUtils.iterateFiles(new File(“src/test/resources/data”), null, true).map(file => Map(“file” → file))
val postSomething = exec(http(“Login”)
.post("""/login""")
.param(“username”, “user1”)
.param(“password”, “password1”)
.check(status.is(204)))
.feed(feeder)
.exec(http(“Post Request”)
.post("""/api/users""")
.body(StringBody(session => getJsonRequestBody("${file}"))).asJSON
.check(status.is(201)))