Hi,
In my application I have a quite long request, during the request, there is a progress bar display to the user.
This progress bar is implemented with a pull request done every 500ms.
I want to simulate this loop still the end of the processing (when the page doesn’t contain the field “progressValue” any more).
I imagined something like that
.doUntil((s: Session) => {
s(“End”).as[String] == “”
}) {
exec(
http(“waiting”)
.get("/wait")
.headers(headers)
.check(status.is(200), regex(“progressValue”").saveAs(“End”)
)
.pause(0.5)
}
What is the good way to implement that ?
Regards,
Philippe