Feeder not picking data at random

Hi, I’ve just noticed that in our load tests our list of users are not being picked at random.

I’m creating a csv feeder (25k users)

val userFeeder = csv(users.csv)

and then loading them with

feed(userFeeder.random.circular)

but each user picked was from the top of the list and works its way down in order.

I also tried

feed(userFeeder.batch.random.circular)

and

feed(userFeeder.batch(25000).random.circular)

each time the same behaviour.

Using version 3.3.1

Thanks

Hi,

random and circular are mutually exclusive.

Just try with random only

feed(userFeeder.random)

OMG, thanks so much! Glad it’s something simple. I assume then as it’s random the file will never run out? After all records are read it starts reading them randomly again?

Yes.
If you want to shuffle the records and then have a queue, that’s shuffle for you: https://gatling.io/docs/current/session/feeder/#strategies