How to make RawfileBody parameterized and dynamic

I recorded our script via the gatling recorder and got the body of my web request.

Most of it looked like this:

.body(RawFileBody(“TCStorefrontEtoE_0019_request.txt”)),

I need to have the content of that file dynamic like changing dates and locations

Can you please point me to a guide for this?

consider use elfilebody instead of raw

Got it! thanks Ignacio. I’m more of a Loadrunner user and fairly new to Gatling. Would you have an idea on how to make gatling pick between a range of numbers or dates? like the random number generator in Loadrunner.

TIA

hi again.

i think that there is no automatic solution for that.
the best you can do is create a feeder and fill it using a scala function or java classes.

regards.

I see. Thanks Ignacio.