private void deleteUnusedCaseSteps ( ReportModel model ) { for ( ScenarioModel scenarioModel : model . getScenarios ( ) ) { if ( scenarioModel . isCasesAsTable ( ) && ! hasAttachment ( scenarioModel ) ) { List < ScenarioCaseModel > cases = scenarioModel . getScenarioCases ( ) ; for ( int i = 1 ; i < cases . size ( ) ; i ++ ) { ScenarioCaseModel caseModel = cases . get ( i ) ; caseModel . setSteps ( Collections . < StepModel > emptyList ( ) ) ; } } } }
Deletes all steps of scenario cases where a data table is generated to reduce the size of the data file . In this case only the steps of the first scenario case are actually needed .