Hi Everyone,
I was tasked with running some performance tests in order to benchmark our systems. I designed the scenario as below :
var scn: ScenarioBuilder = scenario(“Sample Scenario”)
.exec(
forever(
exec()
.pause(2, 5)
.doIf(session => !session.isFailed) {
randomSwitch(
70d → exec(),
15d → exec(<third request),
15d → exec()
)
}
)
)
The issue I’m facing cropped up when we were performing fail-over tests in our system. I noticed that during the simulation all of requests stopped executing after the “first request” once a failure was introduced in the system.
I checked the logs and the “first request” was successful and as per my understanding !session.isFailed condition should be true allowing for further execution of the scenario.
Can anyone please share why the condition is being marked as false instead of true?