continue;
}
//if step is failed and scan not applicable to failed steps just set it to skipped
//run scan otherwise
if (stepResult.getStatus() == TestStepStatus.FAILED && !securityScan.isApplyForFailedStep()) {
SecurityScanResult securityScanResult = new SecurityScanResult(securityScan);
if (securityScan.getAssertionCount() > 0) {
securityScanResult.setStatus(ResultStatus.OK);
} else if (securityScan instanceof AbstractSecurityScanWithProperties) {
if (((AbstractSecurityScanWithProperties) securityScan).getParameterHolder().getParameterList()
.size() > 0) {
securityScanResult.setStatus(ResultStatus.OK);
} else {
securityScanResult.setStatus(ResultStatus.SKIPPED);
}
} else {
securityScanResult.setStatus(ResultStatus.SKIPPED);
}
securityStepResult.addSecurityScanResult(securityScanResult);
runAfterListeners(runContext, securityScanResult);
} else {
runContext.setCurrentScanIndex(i);
runContext.setCurrentScanOnSecurityTestIndex(currentScanOnSecurityTestIndex++);
SecurityScanResult securityScanResult = runTestStepSecurityScan(runContext, currentStep,
securityScan);
securityStepResult.addSecurityScanResult(securityScanResult);
if (securityScanResult.isCanceled()) {
jumpExit = true;
break;
} else if (securityScanResult.getStatus() == ResultStatus.FAILED) {
if (getTestRunnable().getFailOnError()) {
// setError( stepResult.getError() );
fail("Cancelling due to failed security scan");
} else {
getRunContext().setProperty(SecurityTestRunner.Status.class.getName(),