/** * Due to the error with old implementation where total features * were passed instead of failures (and vice versa) following correction must be applied for trends generated * between release 3.0.0 and 3.1.0. */ private void applyPatchForFeatures() { for (int i = 0; i < totalFeatures.length; i++) { int total = totalFeatures[i]; int failures = getFailedFeatures()[i]; if (total < failures) { // this data must be changed since it was generated by invalid code int tmp = total; totalFeatures[i] = failures; failedFeatures[i] = tmp; } } }
/** * Due to the error with old implementation where total features * were passed instead of failures (and vice versa) following correction must be applied for trends generated * between release 3.0.0 and 3.1.0. */ private void applyPatchForFeatures() { for (int i = 0; i < totalFeatures.length; i++) { int total = totalFeatures[i]; int failures = getFailedFeatures()[i]; if (total < failures) { // this data must be changed since it was generated by invalid code int tmp = total; totalFeatures[i] = failures; failedFeatures[i] = tmp; } } }
@Override public void prepareReport() { context.put("buildNumbers", trends.getBuildNumbers()); context.put("failedFeatures", trends.getFailedFeatures()); context.put("passedFeatures", trends.getPassedFeatures()); context.put("failedScenarios", trends.getFailedScenarios()); context.put("passedScenarios", trends.getPassedScenarios()); context.put("passedSteps", trends.getPassedSteps()); context.put("failedSteps", trends.getFailedSteps()); context.put("skippedSteps", trends.getSkippedSteps()); context.put("pendingSteps", trends.getPendingSteps()); context.put("undefinedSteps", trends.getUndefinedSteps()); context.put("durations", trends.getDurations()); }
@Override public void prepareReport() { context.put("buildNumbers", trends.getBuildNumbers()); context.put("failedFeatures", trends.getFailedFeatures()); context.put("passedFeatures", trends.getPassedFeatures()); context.put("failedScenarios", trends.getFailedScenarios()); context.put("passedScenarios", trends.getPassedScenarios()); context.put("passedSteps", trends.getPassedSteps()); context.put("failedSteps", trends.getFailedSteps()); context.put("skippedSteps", trends.getSkippedSteps()); context.put("pendingSteps", trends.getPendingSteps()); context.put("undefinedSteps", trends.getUndefinedSteps()); context.put("durations", trends.getDurations()); }