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
.baseURL(“http://xx.xx.x.xx”)
.inferHtmlResources(BlackList("""..css""", “”"..js""", “”"..ico"""), WhiteList())
.acceptHeader("""
/*""")
.acceptEncodingHeader(""“gzip,deflate,sdch”"")
.acceptLanguageHeader(""“en-US,en;q=0.8"”")
.contentTypeHeader(""“application/x-www-form-urlencoded”"")
.userAgentHeader(""“Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/38.0.2125.104 Safari/537.36"”")

setUp(
Simulation1.scn
.inject(rampRate(5 usersPerSec) to (100 usersPerSec) during (20 minutes))
.protocolConfig(httpProtocol)
)

}

`

`
object Simulation1 {

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

val scn = {
scenario(“Simulation1”)
.exec(http(“request_0”)
.pause(7)
.feed(data)
.exec(http(“request_10”)
.formParam( “”“idCardNo”"", “”"${NRIC}"""),
}
`

http://gatling.io/docs/2.0.2/session/feeder.html#non-shared-data