Hi there,
in Gatling 1.5.3 the following scenario worked well
…
val addProfile = {
exec(http(“addProfile”)
.post("/profile")
.headers(headers_profile)
.header(“X-WIND-Mobile-Device-UID”,"${deviceId}")
.fileBody(“addProfile”, Map(“lon” → “${lon}”,“lat” → “${lat}”)).asJSON
)
}
val scn = scenario(“get profile”)
.feed(csv(“subs.csv”))
.exec(
http(“getProfile”)
.get("/profile")
.headers(headers_profile)
.header(“X-WIND-Mobile-Device-UID”,"${deviceId}")
.check(status.saveAs(“status”), status.in(Seq(200,404)))
.exec(doIf("${status}",“404”){exec(addProfile)})
In Gatling 2 I get an error “value doIf not found”
How to transform doIf control structures for Gatling 2
Thanks in advance