Hi,
I am using gatling-jms, I want to use a repeat loop to have my test set up “n” number of queues that it is looping over.
Here is my code:
`
object multiqueue {
val multiqueue2k = repeat(9, “count”) {
val mqQueue = “PingPong” + “${count}”
exec(jms(“2k Request Reply” + mqQueue).reqreply
.queue(mqQueue)
.replyQueue(mqQueue)
.bytesMessage(ba2k)
.property(“messageNbr”, _ => ThreadLocalRandom.current.nextInt())
)
}
}
`
The queue on the broker is created with name: “PingPong${count}”
Looking at Step 04: Looping in the documentation here: http://gatling.io/docs/2.1.7/advanced_tutorial.html it looks like what I am trying to do should work?
//
Harald