title | description | lead | date | lastmod | weight |
---|---|---|---|---|---|
Grouping Feeder Records |
Grouping Feeder Records |
Grouping Feeder Records |
2021-04-20 18:30:56 +0200 |
2021-04-20 18:30:56 +0200 |
3030000 |
Assuming you have a feeder file that contains data where records must be grouped by virtual users, such as:
username,url
user1,url1
user1,url2
user2,url3
user2,url4
You want to make sure user1 will pick url1 and url2 while user2 will pick url3 and url4.
The idea here is to use [readRecords
]({{< ref "../../reference/current/core/session/feeder#readrecords" >}}) to load all the csv file records in memory so you can group them the way you want
{{< include-code "grouping-feeder" java kt scala >}}