I have an asynchronius process and I want to gather performance statics of it.
I wrote the code which waits async process:
.asLongAs(session => !session.contains(“cartStatus”) || session(“cartStatus”).as[String] != “CALCULATED”) {
exec(
http("get cart")
.get("/carts/${cartCode}")
.header("Accept", "application/json")
.header("Content-Type", "application/x-www-form-urlencoded")
.check(jsonPath("$..cartStatus").exists.saveAs("cartStatus")))
.pause(5)
}
I want to see time of performing asLongAs loop at the report, but currently I see time of each "get cart" call.
Is there any way to do this?