Hello,
I am trying to write a load test to do a POST to an endpoint using a raw body.
I have a json file which I would like to use to test the POST call. It's something like
{
"x_content": "12",
"y_object":{
"z_content": "34",
"a_content": [
[
[
1.22,
3.44
]
]
]
}
}
and it's currently saved in the /data directory. Upon running the test it can't seem to find my test file and after reading the Gatling document, it says all files should be uploaded in the /bodies directory.Do I need to create this directory manually? If so, what should the classpath be?
Here is an example of my test:
.exec(
http("post data")
.post("/test_data")
.body(RawFileBody("my_request.json"))
.asJSON
)