One scenario with different bodies for each user


I am new to gatling, I am trying to simulate a post request for n number of users. To every request, I am sending a JSON request body, using “.body(StringBody(<<JSON_data>>)” function.

My requirement is: there is some part in the JSON request which is dynamic (a UUID) and need to be different for every user. I am not to figure out the correct API’s to accomplish this requirement.

Please advise.


I figured this out. It was quiet simple. All we have to do it is to set Session attributes.