if( secScanMap.containsKey( currentStep.getId() ) )
{
List<SecurityScan> testStepScansList = secScanMap.get( currentStep.getId() );
for( int i = 0; i < testStepScansList.size(); i++ )
{
SecurityScan securityScan = testStepScansList.get( i );
// if security scan is disabled skip it.
if( securityScan.isDisabled() || securityScan.isSkipFurtherRunning() )
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 )