I have a scenario which has 5 requests and running for certain time. So during the test, if any of the request failing intermittently, the particular iteration should stop and subsequent requests shouldn’t be executing.
question: Is there any way that stops the request on failure and proceed with next iteration/loop without exiting from the test
I tried “exitHereIfFailed” but it didn’t work for me as it exit the scenario from this point if it previously had an error
trymax also wouldn’t work as you need to define the loop count.
If I try trymax(1), if there are 2 consecutive failure for same request , it is stopping the test and not attempting for 3rd iteration.
Here my scenario:
.trymax(1) {
exec(http(request1)
.exec(http(request2)
.exec(http(request3) - Assuming the request fails here. out of 10 iterations, if it is failing 5 - request3 sample should be 5 pass and 5 fail
.exec(http(request4) - But This request samples/transactions should be only 5