.exec(
http("Create User")
.post("/users")
.asJson
.header("content-type", "application/json")
.body(rawFileBodies("./data/createuserdata.json")).asJson
RawFileBody("data/createuserdata.json")
Le 15 janv. 2022 à 11:50, Bharath Marrivada <bharath....@gmail.com> a écrit :
I am using Java 17, Gatling 3.7.3, IntelliJ, Windows. Following is the sample code.
--
You received this message because you are subscribed to the Google Groups "Gatling User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gatling+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/gatling/5262d70b-840c-42ea-ac0a-7dd1f53c5ac8n%40googlegroups.com.
.body(RawFileBody("data/createuserdata.json"))
Here, data folder is under src/test/resources, hope can help others
Raghav
To view this discussion on the web visit https://groups.google.com/d/msgid/gatling/d49f4e2f-0f15-4ea8-b047-1b01ef8883ddn%40googlegroups.com.