All Downloads are FREE. Search and download functionalities are using the official Maven repository.

ftl.jbehave-reports.ftl Maven / Gradle / Ivy

There is a newer version: 5.2.0
Show newest version
<#ftl strip_whitespace=true>
<#macro renderStat stats name class=""><#assign value = stats.get(name)!0><#if (value != 0)>${value}<#else>${value}
<#macro renderTime millis class=""><#assign time = timeFormatter.formatMillis(millis)>${time}




JBehave Reports






Story Reports

<#if reports.getViewType().name() = "LIST"> <#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"> <#assign stats = reports.getReport("Totals").getStats()> <#assign threads = storyDurations.get('threads')!1> <#if (threads != 1) >
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
${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> |
${totalReports} <@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
<@renderTime storyDurations.get('threadAverage')!0/> ${threads}-Thread Average





© 2015 - 2025 Weber Informatics LLC | Privacy Policy