0

I'm new with gatling and I have problem that I can't resolve by myself. I have to extract values from feeder I created, but I don't have idea how to do. Do you have any ideas how to do this? Thanks for your help.

val feeder = csv("insertPC.csv").random
Xavier Guihot
  • 54,987
  • 21
  • 291
  • 190

1 Answers1

1

Suppose you have this in your CSV:

computer
Macbook
MacBook Pro

It would be something like this:

 object Search {

  val feeder = csv("insertPC.csv").random 
  val search = exec(http("Search")
         .feed(feeder)
        .get("/computers?f=${computer}");
 }

Notice the matching between CSV first row which is column name and ${computer}

UBIK LOAD PACK
  • 33,980
  • 5
  • 71
  • 116