So the thing is that after the request I want to check 2 values and if they mismatch then I want to ‘fail’ the test.
I tried adding this to my request:
.exec(session => if (session("value1").as[String] == value2) session else session.markAsFailed) .exec(exitHereIfFailed)
However, the final result is the same, because all the request were successful:
Global: percentage of successful requests is 100 : true
How can I make it fail? I thought about using the assert function, but I couldn’t make it work.