0
votes

Test scenario: The folder contains multiple CSVs. Columns are same in all the CSVs.I have to pass multiple csv files one after the other to the single REST API (GET CALL).

Each user (Total 1000 users) should get assigned a set of records/rows from csv file currently in use.

I am new to the JMeter and finding a solution using the CSV Data Set Config. And I realize I could not pass multiple csv files using this.

I also see that __CSVRead() function but I could not pass dynamically the csv file using BeanShell scripting.

Can someone please help me with this?

1

1 Answers

0
votes
  1. The CSV file names from the folder can be read one by one using Directory Listing Config plugin
  2. Depending on the CSV file nature you might want to use either __CSVRead() or __StringFromFile() functions directly in your HTTP Request sampler, you don't need to go for any scripting.