I want to control my sampler based on responseCode and needs to run n number of time defined in counter.
I used while controller and used condition as described below but it's not working as expected.
my condition in jmeter while controller :
${((${ctx.getPreviousResult().getResponseCode()} == "200" && ${counter} < 5),)}
But it's not working as expected, could you please someone please help me on this.