org.jbehave.core.reporters
Class FreemarkerReportRenderer

java.lang.Object
  extended by org.jbehave.core.reporters.FreemarkerReportRenderer
All Implemented Interfaces:
ReportRenderer

public class FreemarkerReportRenderer
extends java.lang.Object
implements ReportRenderer

Freemarker-based report renderer, using the file outputs generated by the reporters for the given formats. The FTL templates for the index and single views are injectable via the FreemarkerReportRender(Properties) constructor, but defaults are provided. To override, specify the the path the new template under keys "index" and "single".

The report renderer provides the following resources:

 resources.setProperty("index", "ftl/jbehave-reports-index.ftl");
 resources.setProperty("single", "ftl/jbehave-reports-single.ftl");
 resources.setProperty("renderedDirectory", "rendered");
 resources.setProperty("defaultFormats", "stats");
 

Author:
Mauro Talevi

Nested Class Summary
static class FreemarkerReportRenderer.RendererTemplateNotFoundException
           
static class FreemarkerReportRenderer.RenderingFailedException
           
static class FreemarkerReportRenderer.Report
           
 
Constructor Summary
FreemarkerReportRenderer()
           
FreemarkerReportRenderer(java.util.Properties resources)
           
 
Method Summary
 int countFailedScenarios()
           
 int countScenarios()
           
 void render(java.io.File outputDirectory, java.util.List<java.lang.String> formats)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FreemarkerReportRenderer

public FreemarkerReportRenderer()

FreemarkerReportRenderer

public FreemarkerReportRenderer(java.util.Properties resources)
Method Detail

render

public void render(java.io.File outputDirectory,
                   java.util.List<java.lang.String> formats)
Specified by:
render in interface ReportRenderer

countScenarios

public int countScenarios()
Specified by:
countScenarios in interface ReportRenderer

countFailedScenarios

public int countFailedScenarios()
Specified by:
countFailedScenarios in interface ReportRenderer


Copyright © 2003-2010. All Rights Reserved.