I'm trying to stop the test if one of the sampler fails.But test is not
stopped instead it continues with next sampler execution.
Code looks like this

if(results.empty) {
    WDS.sampleResult.successful = false
    WDS.sampleResult.sampleEnd();
    WDS.sampleResult.setStopTest(true);
}
else
{
WDS.sampleResult.sampleEnd();
WDS.log.info("Sample Ended - SUCCESS");
}

Reply via email to