Loop not executing post implementing feeder

Hi All,

Beginner in Gatling here.

Observed while running test loop is not getting executed it seems and search request/tag not appearing in statistic section in report. but commented code with out feeder working as expected. & able to see search request in report what can be wrong inside script.

object Search{
val searchFeeder=csv(fileName = “data/search.csv”).random

val search =
repeat(times=5, counterName=“i”){
feed(searchFeeder)
exec(http(“search_${i}_${key}”)
.get("/computers?f=${key}"))
.pause(11)

/* exec(http(“search_${i}”)
.get("/computers?f=macbook"))
.pause(11)*/
}

}

Search.csv file content is given below. How Gatling recognizing first line is column header?

key,description
MacBook.ddd
Dell,ddd

Thanks,
Hari

You forgot a dot to attach the feed and the following exec.

I+ i can see eror “[ERROR] i.g.h.a.HttpRequestAction - ‘httpRequest-3’ failed to execute: No attribute named ‘key’ is defined”