templates.default.detailed.ftlh Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of cucumber-report-generator Show documentation
Show all versions of cucumber-report-generator Show documentation
The part of the Cucumber Reports library directly responsible for
reports generation.
<#escape x as x?html?replace("\n","
")>
${title}
<#include "tables">
Overview
<@drawOverviewStatsTable stats=stats />
Table of Contents
<#list results as result>
- ${result.getName()}
<#list result.getElements() as scenario>
<#if scenario.getKeyword()?starts_with("Scenario")>
- ${scenario.getName()}
#if>
#list>
#list>
Detailed Results Report
<#list results as result>
Feature: ${result.getName()}
<#if result.getDescription()?has_content>
${result.getDescription()}
#if>
Passed: ${result.getPassed()}
Failed: ${result.getFailed()}
Undefined: ${result.getUndefined() + result.getSkipped()}
Duration: ${result.getDuration()?string[".##"]}s
<#list result.getElements() as scenario>
${scenario.getKeyword()}: ${scenario.getName()}
<#if scenario.getDescription()?has_content>
${scenario.getDescription()}
#if>
Passed: ${scenario.getPassed()}
Failed: ${scenario.getFailed()}
Undefined: ${scenario.getUndefined() + scenario.getSkipped()}
Duration: ${scenario.getDuration()?string[".##"]}s
<#if scenario.getBefore()?has_content>
Before
${scenario.getBefore().getResult().getDurationTimeString("HH:mm:ss:S")}
<#if scenario.getBefore().getResult().getErrorMessage()?has_content>
${scenario.getBefore().getResult().getErrorMessage()}
#if>
#if>
<#list scenario.getSteps() as step>
${step.getKeyword()} ${step.getName()}
${step.getResult().getDurationTimeString("HH:mm:ss:S")}
<#if step.getRows()?has_content >
<#list step.getRows() as row>
<#list row as col>
${col}
#list>
#list>
#if>
<#if step.getDocString()?has_content>
${step.getDocString()}
#if>
<#if step.result.errorMessage?has_content>
${step.result.errorMessage}
#if>
<#list step.getScreenShotLocations() as screenshot>
#list>
<#if step.getOutput()?has_content>
Output
<#list step.getOutput() as line>
${line}
#list>
#if>
#list>
<#if scenario.getAfter()?has_content>
After
${scenario.getAfter().getResult().getDurationTimeString("HH:mm:ss:S")}
<#if scenario.getAfter().getResult().getErrorMessage()?has_content>
${scenario.getAfter().getResult().getErrorMessage()}
#if>
#if>
Back to Table of Contents
#list>
#list>
#escape>