Multiple Feeders in a scenario

4,362 views
Skip to first unread message

Scott Price

unread,
Dec 14, 2012, 1:52:47 PM12/14/12
to gat...@googlegroups.com
I'm new to gatling and I couldn't find information on how to use multiple feeders in a scenario.  I want to do the following

val data = csv("biometrics_data.csv").queue
val accessTokens = csv("access_tokens_data.csv").queue

val scn = scenario("Test")
      .feed(data)
      .feed(accessTokens) //adding two feeders dosen't work :(
      .exec(
          http("Test all individuals of Biometrics")
            .get(base+ "/v1/biometrics/${data}?access_token=${token}")
            .check(status.is(200))
            )
     
Where ${token} comes from the feeder AccessTokens and ${data comes from data. Is there a way to do this i found no examples of doing so. Thanks

       


Stéphane Landelle

unread,
Dec 14, 2012, 2:10:09 PM12/14/12
to gat...@googlegroups.com
The feeders work perfectly fine. The problem is your request:

You should be writing:
.get(base+ "/v1/biometrics/${data})
.queryParam("access_token", "${token}")

Cheers,

Stéphane

2012/12/14 Scott Price <scott...@gmail.com>
accessTokens

Reply all
Reply to author
Forward
0 new messages