Read data from csv

Hi,

I am new to Gatling and Scala. I need to read the data from csv file and every line and process it for every user. So I cannot user feed. can someone has suggest what is the best way to do this?

Thanks,
Pankaj

iress.com

Pankaj Upadhyay​

Senior Quality Engineer

Tel: +61390185800

pankaj.upadhyay@iress.com

www.iress.com

Level 16, 385 Bourke Street,
Melbourne, Victoria, 3000

Iress Coronavirus support

The contents of this email originated from Iress. For this purpose Iress includes Iress Limited and/or any of its subsidiaries, holding companies and trading entities. ​If you have received this email in error please notify the sender immediately and delete this email.

nosig

I think you are wrong. Feeder is appropriate for your case.

Hi, Yesterday I had the same issue. And I used this line:
.body(StringBody(BaseLib.getPackageDir(this) + “/bodies/fielname.csv”))
.header(“Content-Type”, “text/csv”)
And with this I can load a large csv file.

Good luck.