Dipanjan Kole
Dipanjan Kole

Reputation: 11

While running recorded simulation in Gatling, I get an error

While running recorded simulation in Gatling.

I get an error:

"Resource /recordedsimulation/0004.request.dat"/"Resource /recordedsimulation/0004.request.json" not found?

Upvotes: 1

Views: 1745

Answers (1)

pavol
pavol

Reputation: 41

You have to open your simulation file, for instance: recordedsimulation.scala and replace all error occurrences of first slash in your file path.

For instance use:

.body(RawFileBody("recordedsimulation/0004.request.json"))

instead of:

.body(RawFileBody("/recordedsimulation/0004.request.json"))

And make sure, your directory recordedsimulation is in your resources directory if you are using gatling version greater than 3.

Upvotes: 4

Related Questions