feed(feeder, Int) deprecated, alternative?

61 views
Skip to first unread message

David Fallert

unread,
Dec 22, 2021, 3:29:24 AM12/22/21
to Gatling User Group
Hello everyone,

I would like to feed multiple records to my scenario like it was described in
https://gatling.io/docs/gatling/reference/3.6/session/feeder/
"You can also feed multiple records all at once. If so, attribute names, will be suffixed. For example, if the columns are named “foo” and “bar” and you’re feeding 2 records at once, you’ll get “foo1”, “bar1”, “foo2” and “bar2” session attributes."

"feed(feeder, Int) is deprecated for removal and is no longer documented."

is there a convenient solution for this problem?

kind regards
David

Stéphane LANDELLE

unread,
Dec 22, 2021, 9:47:11 AM12/22/21
to gat...@googlegroups.com
I really don't like this name translation.
IMHO, if we were to reintroduce a similar feature, we should inject Seqs so you would do foo(0), foo(1), get(0), get(1).

Then, I'd like some feedback on how many users actually use this feature.

--

Stéphane Landelle

Chief Technical Officer

   

slan...@gatling.io
gatling.io
   
facebook twitter linkedin 


--
You received this message because you are subscribed to the Google Groups "Gatling User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gatling+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/gatling/9216d0da-2550-4c77-8201-a2a4f71d0009n%40googlegroups.com.

David Fallert

unread,
Dec 22, 2021, 10:26:21 AM12/22/21
to Gatling User Group
Is there a workaround with the current version how to obtain multiple records?
I'm quit stuck at the moment.

Stéphane LANDELLE

unread,
Dec 22, 2021, 10:27:17 AM12/22/21
to gat...@googlegroups.com
The feature is still there in the Scala DSL, it's just not documented.

--

Stéphane Landelle

Chief Technical Officer

   

slan...@gatling.io
gatling.io
   
facebook twitter linkedin 

David Fallert

unread,
Dec 22, 2021, 10:42:06 AM12/22/21
to Gatling User Group
I'm using the java API it seems that the feature is already removed there :/

Stéphane LANDELLE

unread,
Dec 22, 2021, 10:44:32 AM12/22/21
to gat...@googlegroups.com
Then it's not been removed, it hasn't been introduced :)
You can do the translation yourself:

feed(feeder)
.exec( session -> session.set("foo1", session.getString("foo"))
.feed(feeder)
.exec( session -> session.set("foo2", session.getString("foo"))
.feed(feeder)
.exec( session -> session.set("foo3", session.getString("foo"))

--

Stéphane Landelle

Chief Technical Officer

   

slan...@gatling.io
gatling.io
   
facebook twitter linkedin 

David Fallert

unread,
Dec 22, 2021, 10:58:53 AM12/22/21
to Gatling User Group
OMG thank you it worked. You saved my day :) Already had my head banging against my keyboard :D
Reply all
Reply to author
Forward
0 new messages