template.scenario-summary.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>
<#if (tagFilter??)>
<#assign base = "./../..">
<#assign headline = "Scenarios Tagged With ${tagFilter.name}">
<#assign links = ["feature_summary", "tag_summary", "step_summary", "scenario_sequence", "scenario_summary"]>
<#elseif (featureFilter??)>
<#assign base = "./../..">
<#assign headline = "Scenarios in Feature
${featureFilter.name}">
<#assign links = ["feature_summary", "tag_summary", "step_summary", "scenario_sequence", "scenario_summary"]>
<#elseif (stepFilter??)>
<#assign base = "./../..">
<#assign headline = "Scenarios using Step
${stepFilter.returnNameWithArgumentPlaceholders()}">
<#assign links = ["feature_summary", "tag_summary", "step_summary", "scenario_sequence", "scenario_summary"]>
<#elseif (scenarioSequence??)>
<#assign base = "./..">
<#assign headline = "Scenario Sequence">
<#assign links = ["feature_summary", "tag_summary", "step_summary", "scenario_summary"]>
<#else>
<#assign base = ".">
<#assign headline = "All Scenarios">
<#assign links = ["feature_summary", "tag_summary", "step_summary", "scenario_sequence"]>
#if>
<@page.page
base=base
links=links
headline=headline
subheadline=""
preheadline=""
preheadlineLink="">
<#if hasCustomParameters()>
<@page.card width="12" title="" subtitle="" classes="customParameters">
<#list customParameters as customParameter>
${customParameter.key}:
<#if customParameter.url>
${customParameter.value}
<#else>
${customParameter.value}
#if>
#list>
@page.card>
#if>
<@page.card width="8" title="Scenario Result Chart" subtitle="" classes="">
<@page.graph />
@page.card>
<@page.card width="4" title="Scenario Summary" subtitle="" classes="">
-
${totalNumberOfScenarios} Scenario(s):
${totalNumberOfPassedScenarios} <@common.status status="passed"/>
${totalNumberOfFailedScenarios} <@common.status status="failed"/>
${totalNumberOfSkippedScenarios} <@common.status status="skipped"/>
<#assign startDateTimeString = returnStartDateTimeString()>
<#if startDateTimeString?has_content>
-
Started on:
${startDateTimeString}
#if>
<#assign endDateTimeString = returnEndDateTimeString()>
<#if endDateTimeString?has_content>
-
Ended on:
${endDateTimeString}
#if>
-
Test Runtime:
${totalDurationString}
@page.card>
<#if (scenarioSequence??)>
<@scenario.table status="all"/>
<#else>
<@scenario.table status="failed"/>
<@scenario.table status="skipped"/>
<@scenario.table status="passed"/>
#if>
@page.page>