I have a thread group with a login part and a part that checks different webpages. I want the thread group to loop forever, since its used for monitoring. However I want to start the next loop when an error occurs on the login part of the thread, but I want the thread to continue when an error occurs on one of the webpages. I have tried to do this using jsr223 postprocessors/samplers/listeners with the following code:
Boolean result = sampleResult.isSuccessful();
if ( result == false){
sampleResult.setStartNextThreadLoop(true);
}
I've also tried this using if controllers/while controllers but I cant figure out how I can accomplish this.
Can anyone help me out?