Hm… I am surely missing something, but the type is actually (in 2.0.0M3) an AdvancedFeederBuilder[String], so I get a “value length is not a member of io.gatling.core.feeder.AdvancedFeederBuilder[String]” error.
That said, I did find that I can get a data() method, which is an array:
csv(“ids.csv”).data.length
That still fails after a while with a “next on empty iterator” error, but I guess it could be coming from something else.
You mean, hard-coding the number of rows in the simulation code? Essentially because the feed data will change in time. So I separately have a script that regularly re-generate the ids.csv file.
Oh, I see.
Well, my goal is to get each users to use all the values in the feeder. As far as I can tell, the code you propose would only allow me to use one value per user.