Hello,
I am using ELFileBody to feed my simulation with data like this:
`
class LoginSimulation extends Simulation {
val httpConf = http
.baseURL(https://mysite.start.com)
.acceptEncodingHeader(“gzip,deflate”)
.baseHeaders(Map(“X-Token” → “1234asdf”, “Content-Type” → “application/json”, “charset” → “UTF-8”))
val scn = scenario(“Scenario”)
.exec(
http(“activateUser”)
.post("/user/activate")
.body(ELFileBody(“activateUser.txt”))
.check(status.is(200))
.check(jsonPath("$.resultCode").is(“SUCCESS”)))
`
The file “activateUser.txt” looks like this:
{"offerId": "123", "membershipId": "123", "osName": "iOS", "osVersion": "8.02"}
Can I just add lines in the file like this:
{"offerId": "123", "membershipId": "123", "osName": "iOS", "osVersion": "8.02"} {"offerId": "124", "membershipId": "124", "osName": "iOS", "osVersion": "8.02"} {"offerId": "125", "membershipId": "125", "osName": "iOS", "osVersion": "8.02"} {"offerId": "126", "membershipId": "126", "osName": "iOS", "osVersion": "8.02"}
and how do I tell Gatling to change to the next line in the test datafile?
Magnus