ftl.jbehave-reports.ftl Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jbehave-core Show documentation
Show all versions of jbehave-core Show documentation
JBehave Core contains all the core functionality for running BDD stories.
<#ftl strip_whitespace=true>
<#macro renderStat stats name class=""><#assign value = stats.get(name)!0><#if (value != 0)>${value}<#else>${value}#if>#macro>
<#macro renderTime millis class=""><#assign time = timeFormatter.formatMillis(millis)>${time}#macro>
JBehave Reports
Story Reports
<#if reports.getViewType().name() = "LIST">
Stories
Scenarios
GivenStory Scenarios
Steps
Name
Excluded
Total
Successful
Pending
Failed
Excluded
Total
Successful
Pending
Failed
Excluded
Total
Successful
Pending
Failed
Not Performed
Ignorable
Duration (hh:mm:ss.SSS)
View
<#assign reportNames = reports.getReportNames()>
<#assign totalReports = reportNames.size() - 1>
<#list reportNames as name>
<#assign report = reports.getReport(name)>
<#if name != "Totals">
<#assign stats = report.getStats()>
<#assign stepsFailed = stats.get("stepsFailed")!0>
<#assign scenariosFailed = stats.get("scenariosFailed")!0>
<#assign pending = stats.get("pending")!0>
<#assign storyClass = "story">
<#if stepsFailed != 0 || scenariosFailed != 0>
<#assign storyClass = storyClass + " failed">
<#elseif pending != 0>
<#assign storyClass = storyClass + " pending">
<#else>
<#assign storyClass = storyClass + " successful">
#if>
${report.name}
<@renderStat stats "notAllowed" "failed"/>
<@renderStat stats "scenarios"/>
<@renderStat stats "scenariosSuccessful" "successful"/>
<@renderStat stats "scenariosPending" "pending"/>
<@renderStat stats "scenariosFailed" "failed"/>
<@renderStat stats "scenariosNotAllowed" "failed"/>
<@renderStat stats "givenStoryScenarios"/>
<@renderStat stats "givenStoryScenariosSuccessful" "successful"/>
<@renderStat stats "givenStoryScenariosPending" "pending"/>
<@renderStat stats "givenStoryScenariosFailed" "failed"/>
<@renderStat stats "givenStoryScenariosNotAllowed" "failed"/>
<@renderStat stats "steps" />
<@renderStat stats "stepsSuccessful" "successful"/>
<@renderStat stats "stepsPending" "pending"/>
<@renderStat stats "stepsFailed" "failed"/>
<@renderStat stats "stepsNotPerformed" "notPerformed" />
<@renderStat stats "stepsIgnorable" "ignorable"/>
<#assign path = report.getPath()>
<@renderTime storyDurations.get(path)!0/>
<#assign filesByFormat = report.filesByFormat>
<#list filesByFormat.keySet() as format><#assign file = filesByFormat.get(format)>${format}<#if format_has_next> |#if>#list>
#if>
#list>
${totalReports}
<#assign stats = reports.getReport("Totals").getStats()>
<@renderStat stats "notAllowed" "failed"/>
<@renderStat stats "scenarios"/>
<@renderStat stats "scenariosSuccessful" "successful"/>
<@renderStat stats "scenariosPending" "pending"/>
<@renderStat stats "scenariosFailed" "failed"/>
<@renderStat stats "scenariosNotAllowed" "failed"/>
<@renderStat stats "givenStoryScenarios"/>
<@renderStat stats "givenStoryScenariosSuccessful" "successful"/>
<@renderStat stats "givenStoryScenariosPending" "pending"/>
<@renderStat stats "givenStoryScenariosFailed" "failed"/>
<@renderStat stats "givenStoryScenariosNotAllowed" "failed"/>
<@renderStat stats "steps" />
<@renderStat stats "stepsSuccessful" "successful"/>
<@renderStat stats "stepsPending" "pending"/>
<@renderStat stats "stepsFailed" "failed"/>
<@renderStat stats "stepsNotPerformed" "notPerformed" />
<@renderStat stats "stepsIgnorable" "ignorable"/>
<@renderTime storyDurations.get('total')!0/>
Totals
<#assign threads = storyDurations.get('threads')!1>
<#if (threads != 1) >
<@renderTime storyDurations.get('threadAverage')!0/>
${threads}-Thread Average
#if>
#if>
© 2015 - 2025 Weber Informatics LLC | Privacy Policy