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 2019 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 pageName = "Tagged Scenarios">
<#assign highlight = "tag_summary">
<#elseif (featureFilter??)>
<#assign base = "./../..">
<#assign headline = "Scenarios in Feature '${featureFilter.name}'">
<#assign pageName = "Scenarios in Feature">
<#assign highlight = "feature_summary">
<#elseif (stepFilter??)>
<#assign base = "./../..">
<#assign headline = "Scenarios using Step '${stepFilter.returnNameWithArgumentPlaceholders()}'">
<#assign pageName = "Scenarios with Step">
<#assign highlight = "step_summary">
<#elseif (scenarioSequence??)>
<#assign base = "./..">
<#assign headline = "Scenario Sequence">
<#assign pageName = "Scenario Sequence">
<#assign highlight = "scenario_sequence">
<#else>
<#assign base = ".">
<#assign headline = "All Scenarios">
<#assign pageName = "All Scenarios">
<#assign highlight = "scenario_summary">
#if>
<@page.page
title="${pageTitle} - ${pageName}"
base=base
highlight=highlight
headline=headline
subheadline=""
preheadline=""
preheadlineLink="">
<#if hasCustomParameters()>
<@page.card width="12" title="" subtitle="" classes="customParameters">
<#list customParameters as customParameter>
<#if !customParameter.key?starts_with(" ")>
${customParameter.key}:
<#if customParameter.url>
${customParameter.value}
<#else>
${customParameter.value}
#if>
<#else>
${customParameter.value}
#if>
#list>
@page.card>
#if>
<@page.card width="6" title="Scenario Results" subtitle="" classes="">
<@page.graph />
@page.card>
<@page.card width="3" title="Test Suite Time" subtitle="" classes="">
<#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>
<@page.card width="3" title="Test Suite Summary" subtitle="" classes="">
-
${totalNumberOfScenarios} <@common.pluralize word="Scenario" unitCount=totalNumberOfScenarios/>
-
<#if (scenarioSequence??)>
${totalNumberOfPassedScenarios} passed <@common.status status="passed"/>
${totalNumberOfFailedScenarios} failed <@common.status status="failed"/>
${totalNumberOfSkippedScenarios} skipped <@common.status status="skipped"/>
<#else>
${totalNumberOfPassedScenarios}
passed <@common.status status="passed"/>
${totalNumberOfFailedScenarios}
failed <@common.status status="failed"/>
${totalNumberOfSkippedScenarios}
skipped <@common.status status="skipped"/>
#if>
@page.card>
<#if (scenarioSequence??)>
<@scenario.table status="all" numberOfScenarios=totalNumberOfScenarios />
<#else>
<@scenario.table status="failed" numberOfScenarios=totalNumberOfFailedScenarios />
<@scenario.table status="skipped" numberOfScenarios=totalNumberOfSkippedScenarios />
<@scenario.table status="passed" numberOfScenarios=totalNumberOfPassedScenarios />
#if>
@page.page>