Reputation: 61
I want to create new Gatling feeder on a list[Strings] from the memory.
In the scenario, I am executing this:
**.feed(GetGroupIdFeeder.getGroupIdFeed)**
My feeder looks like that:
val getGroupIdFeed : Iterator[Map[String, List[String]]] = { Iterator.continually(Map("groups" -> myList)) }
My list look like that: my_List["a" , "b" , "c"]
in results I am getting :
myList["a" , "b" , "c"] as expected from the feeder...
My expectations is to get from the feeder only "a"
I am aiming that my feeder will be configured as circular.
when calling the feeder:
How that can be done?
Any help in this regard would be helpful, thanks!
Upvotes: 2
Views: 733
Reputation: 6623
val getGroupIdFeed = Iterator.continually(List("a", "b", "c"))
.flatten
.map(value => Map("groups" -> value))
Upvotes: 2