예제 #1
0
 public void generateTagOverview() throws Exception {
   VelocityEngine ve = new VelocityEngine();
   ve.init(getProperties());
   Template featureOverview = ve.getTemplate("templates/tagOverview.vm");
   VelocityContext context = new VelocityContext();
   context.put("build_project", buildProject);
   context.put("build_number", buildNumber);
   context.put("tags", ri.getTags());
   context.put("total_tags", ri.getTotalTags());
   context.put("total_scenarios", ri.getTotalTagScenarios());
   context.put("total_steps", ri.getTotalTagSteps());
   context.put("total_passes", ri.getTotalTagPasses());
   context.put("total_fails", ri.getTotalTagFails());
   context.put("total_skipped", ri.getTotalTagSkipped());
   context.put("total_pending", ri.getTotalTagPending());
   if (flashCharts) {
     context.put("chart_data", FlashChartBuilder.StackedColumnChart(ri.tagMap));
   } else {
     context.put("chart_rows", JsChartUtil.generateTagChartData(ri.tagMap));
   }
   context.put("total_duration", ri.getTotalTagDuration());
   context.put("time_stamp", ri.timeStamp());
   context.put("jenkins_base", pluginUrlPath);
   context.put("fromJenkins", runWithJenkins);
   context.put("flashCharts", flashCharts);
   generateReport("tag-overview.html", featureOverview, context);
 }