Trying to loop though a scenario until a specific response is returned by server, but seems no requests are being hit from gatling. `Gatling version used is 2.0.0-RC5
Below is code snippet.
val scn_queueDepthCheck = scenario(“testing”).repeat(5) {
//asLongAs(session => continue.get){
//doIf(session => continue.get){
exec(http(“activeMQQueueDepth”)
.get(activeMqUri + “/admin/xml/topics.jsp”)
.check(xpath("//topic[@name=‘abc’]/stats/@dequeueCount").find.saveAs(“dequeueCount”))
.check(xpath("//topic[@name=‘abc’]/stats/@enqueueCount").find.saveAs(“enqueueCount”))
)
.exec((session: io.gatling.core.session.Session) => {
print(“enqueue count: " + session(“enqueueCount”).as[String])
print(” dequeueCount : " + session(“dequeueCount”).as[String])
if (session(“enqueueCount”).as[String] != session(“dequeueCount”).as[String])
continue.set(false)
session
})
}
Any help or guidance is much appreciated.