contextMap.put("scenarios_failed", ri.getTotalScenariosFailed());
if (flashCharts) {
contextMap.put("step_data", FlashChartBuilder.donutChart(ri.getTotalNumberPassingSteps(), ri.getTotalNumberFailingSteps(), ri.getTotalNumberSkippedSteps(), ri.getTotalNumberPendingSteps()));
contextMap.put("scenario_data", FlashChartBuilder.pieChart(ri.getTotalScenariosPassed(), ri.getTotalScenariosFailed()));
} else {
JsChartUtil pie = new JsChartUtil();
List<String> stepColours = pie.orderStepsByValue(ri.getTotalNumberPassingSteps(), ri.getTotalNumberFailingSteps(), ri.getTotalNumberSkippedSteps(), ri.getTotalNumberPendingSteps());
contextMap.put("step_data", stepColours);
List<String> scenarioColours = pie.orderScenariosByValue(ri.getTotalScenariosPassed(), ri.getTotalScenariosFailed());
contextMap.put("scenario_data", scenarioColours);
}
contextMap.put("time_stamp", ri.timeStamp());
contextMap.put("total_duration", ri.getTotalDurationAsString());
contextMap.put("flashCharts", flashCharts);