template.scenario-detail.ftl Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of cluecumber-report-plugin
Show all versions of cluecumber-report-plugin
Plugin for generating clear Cucumber BDD test result reports.
<#--
Copyright 2018 trivago N.V.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<#import "macros/page.ftl"as page>
<#import "macros/scenario.ftl" as scenario>
<#import "macros/common.ftl" as common>
<#import "macros/navigation.ftl" as navigation>
<@page.page
base="../.."
links=["feature_summary", "tag_summary", "step_summary", "scenario_sequence", "scenario_summary"]
headline="${element.name?html}"
subheadline="${element.description?html}"
preheadline="${element.featureName?html}"
preheadlineLink="pages/feature-scenarios/feature_${element.featureIndex?c}.html">
<@page.card width="8" title="Scenario Result Chart" subtitle="" classes="">
<@page.graph />
@page.card>
<@page.card width="4" title="Scenario Information" subtitle="" classes="">
- ${element.totalNumberOfSteps} Step(s)
${element.totalNumberOfPassedSteps} <@common.status status="passed"/>
${element.totalNumberOfFailedSteps} <@common.status status="failed"/>
${element.totalNumberOfSkippedSteps} <@common.status status="skipped"/>
<#if element.startTimestamp?has_content>
- Started on:
${element.startDateString} ${element.startTimeString}
#if>
<#if element.startTimestamp?has_content>
- Ended on:
${element.endDateString} ${element.endTimeString}
#if>
- Test Runtime:
${element.returnTotalDurationString()}
- <#list element.tags as tag>
${tag.name}<#sep>,
#list>
<#if element.hasHooks()>
#if>
<#if element.hasStepHooks()>
#if>
<#if element.hasDocStrings()>
#if>
@page.card>
<#if (element.before?size > 0)>
<@page.card width="12" title="Before Hooks" subtitle="" classes="scenarioHook collapse">
-
<#list element.before as before>
${before?counter}.
${before.glueMethodName}
${before.result.returnDurationString()}
<@common.status status=before.consolidatedStatusString/>
<@scenario.errorMessage step=before/>
<@scenario.output step=before/>
<@scenario.attachments step=before/>
#list>
@page.card>
#if>
<#if (element.steps?size > 0)>
<@page.card width="12" title="Steps" subtitle="" classes="">
-
<#list element.steps as step>
<@scenario.stepHooks step.before />
${step?counter}.
<#assign stepName=step.returnNameWithArguments()>
${step.keyword} ${stepName}
${step.result.returnDurationString()}
<@common.status status=step.consolidatedStatusString/>
<#if (step.rows?size > 0) >
<#list step.rows as row>
<#list row.cells as cell>
${cell}
#list>
#list>
#if>
<#if (step.docString.value)?? >
${step.docString.returnWithClickableLinks()}
#if>
<@scenario.errorMessage step=step/>
<@scenario.output step=step/>
<@scenario.attachments step=step/>
<@scenario.stepHooks step.after />
#list>
@page.card>
#if>
<#if (element.after?size > 0)>
<@page.card width="12" title="After Hooks" subtitle="" classes="">
-
<#list element.after as after>
${after?counter}.
${after.glueMethodName}
${after.result.returnDurationString()}
<@common.status status=after.consolidatedStatusString/>
<@scenario.errorMessage step=after/>
<@scenario.output step=after/>
<@scenario.attachments step=after/>
#list>
@page.card>
#if>
@page.page>