Feeder - Not using random value

I have a script which needs to take random values from csv

Here is a sample code

`

val feeder = csv(“test.csv”).random;
val scn = scenario(“Scenario Name”).feed(feeder).during(5 minutes){ // A scenario is a chain of requests and pauses
exec(flushHttpCache).exec(flushCookieJar).exec(http(“request_1”)
.get("/"))
.pause(2)
.exec { session =>
println(“This is the value =========================”+session(“number”).as[String])
session
}

`

The is the csv file

`

number
1
2
3
4
5
6
7
8
9

`

And i get the output as follows

`

2018-02-20 19:59:29 5s elapsed
---- Requests ------------------------------------------------------------------

Global (OK=2 KO=0 )
request_1 (OK=2 KO=0 )

---- Scenario Name -------------------------------------------------------------
[------------------------------------- ] 0%
waiting: 1 / active: 1 / done:0

try to use the below :

val feeder = csv("credentials.csv").random;
val scn = scenario("Scenario Name").during(1 minutes) { // A scenario is a chain of requests and pauses
  feed(feeder).exec(flushHttpCache).exec(flushCookieJar).exec(http("request_1")
    .get("/"))
    .pause(2)
    .exec { session =>
      println("This is the value =========================" + session("param_customerId").as[String])
      session
    }
}

Thanks much Khaled . I understood and now it works when i move the feeder inside the during block.