Unable to post request body

Hi Stephanie,

I’m trying to post a request along with JSON body using gatling. However, the body is not getting attached with request.
I know this for sure because expected response with request body and without it is different.
Here is my code:-

class RecordedSimulation extends Simulation {

 val httpProtocol = http

 val headers_0 = Map("Origin" -> "chrome-extension://aejoelaoggembcahagimdiliamlcdmfm")

    val uri1 = "abc.com"

 val scn = scenario("RecordedSimulation")


Hi All,

Any help would be highly appreciated.


Hi Anuja,

You have used bodyString.is(RawFileBody(“RecordedSimulation_0000_response.txt”). I had the same case and I used JSON file instead of text.

Here is my code

exec(http(“Query (direct)…”)

Vrushalee Ajotikar

Correction: ELFileBody → ElFileBody

(L is lowercase in El)