Gatling 2.0: Parse CSV file until end of line

Hi All,

I would like to ask on how does one allows Gatling to parse the CSV file for each session until the end of file is reached?

Scenario which I want to achieve:

  1. 2,000 test data to be used by 100 users. Non-repeatable.
  2. Scenario stops executing once it reaches the end of file for “Testdata.csv”

class compiledScenarios extends Simulation {

val httpProtocol = http
.inferHtmlResources(BlackList("""..css""", “”"..js""", “”"..ico"""), WhiteList())
.userAgentHeader(""“Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/38.0.2125.104 Safari/537.36"”")

.inject(rampRate(5 usersPerSec) to (100 usersPerSec) during (20 minutes))



object Simulation1 {

val data = csv(“Testdata.csv”) /* Contains 2,000 “NRIC” test data */

val scn = {
.formParam( “”“idCardNo”"", “”"${NRIC}"""),