Can we iterate multiple feed csv files but not with same size?

Hi Dear friends,
I am using some data csv files to feed the parameters. But these csv files are not in the same size:
eg:
userName.csv
userName
user1
user2
user3

user100
This csv file has 100 rows, however, my password file is as below:
password.csv
password
pass1234

There is only one row for it, because all of them are sharing the same password.
May I use these two together in code like below?
val userFile = System.getProperty(“userCSV”, “userName.csv”);

val passFile = System.getProperty(“passCSV”, “password.csv”);

val myscenario = scenario(“StartLogin”)
.feed(userFile )
.feed(passFile ).
.exec…
Can this feed two data files or even more, but while one file iteration finished, continue iterate from the beginning?

Thanks,
Patric

Hi,

If password is same for all users why do you want to parametrise it. Instead you can leave it hardcoded?

I just meant this general issue.
Two feeder csv files but not with the same size… Can they iterate correctly?

Hi,

I’m pretty sure that reading the Feeder documentation could have give you the answer https://gatling.io/docs/2.3/session/feeder/

If you want to iterate in an infinite circular way you can use the circular keyword :

val feeder1 = csv(“file1.csv”).circular
val feeder2 = csv(“file2.csv”).circular

scenario(“foo”)
.feed(feeder1)
.feed(feeder2)