![JAR search and dependency download from the Maven repository](/logo.png)
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-engine Show documentation
Show all versions of cluecumber-engine Show documentation
The Cluecumber reporting engine.
The newest version!
<#--
Copyright 2023 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>
<#import "macros/custom-parameters.ftl" as customparams>
<@page.page
title="${pageTitle} - Scenario Detail"
base="../.."
highlight=""
headline="${element.name?html}"
subheadline="${element.description?html}"
subsubheadline="${element.featureUri}"
preheadline="${element.featureName?html}"
preheadlineLink="pages/feature-scenarios/feature_${element.featureIndex?c}.html">
<#if hasCustomParameters()>
<@customparams.card customParams=customParameters/>
#if>
<@page.card width="6" title="Step Results" subtitle="" classes="">
<@page.graph />
@page.card>
<@page.card width="3" title="Summary" subtitle="" classes="">
-
${element.totalNumberOfSteps} ${common.pluralizeFn("Step", element.totalNumberOfSteps)}
-
${element.totalNumberOfPassedSteps} passed <@common.status status="passed"/>
${element.totalNumberOfFailedSteps} failed <@common.status status="failed"/>
${element.totalNumberOfSkippedSteps} skipped <@common.status status="skipped"/>
<#if (element.tags?size > 0)>
<#list element.tags as tag>
${tag.name}
#list>
#if>
@page.card>
<@page.card width="3" title="Scenario Info" subtitle="" classes="">
<#if element.startTimestamp?has_content>
Start
${element.startDateString} ${element.startTimeString}
#if>
<#if element.startTimestamp?has_content>
End
${element.endDateString} ${element.endTimeString}
#if>
Total
${element.returnTotalDurationString()}
<#assign numberOfChildren = element.getMultiRunChildren()?size>
<#if groupPreviousScenarioRuns && element.multiRunParent>
This is the final scenario run after ${numberOfChildren}
previous ${common.pluralizeFn("run", numberOfChildren)}.
#if>
<#if groupPreviousScenarioRuns && element.multiRunChild>
There are more runs of this scenario.
#if>
<#if (element.hasHooks() && element.hasHooksWithContent()) ||
element.hasSubSections() ||
(element.hasStepHooks() && element.hasStepHooksWithContent()) ||
element.hasDocStrings()>
#if>
<#if element.hasSubSections()>
#if>
<#if element.hasHooks() && element.hasHooksWithContent()>
#if>
<#if element.hasStepHooks() && element.hasStepHooksWithContent()>
#if>
<#if element.hasDocStrings()>
#if>
<#if element.hasAttachments()>
#if>
<#if element.hasOutputs()>
#if>
@page.card>
<#if (element.before?size > 0 && element.anyBeforeHookHasContent())>
-
<#assign oldCollapseLevel = 0>
<#assign lastLevelChange = 0>
<#assign openDivs = 0>
<#list element.backgroundSteps as step>
<@scenario.stepHooks step.index step.before />
<#assign sectionChange = step.collapseLevel - oldCollapseLevel>
<#assign oldCollapseLevel = step.collapseLevel>
<#if (sectionChange > 0) >
<#list 1..sectionChange as n>
<#assign openDivs = openDivs + 1>
${step?counter}.
<#assign stepName=step.returnNameWithArguments()>
${step.keyword} ${stepName}
<#if (step.hasSubSections())>
#if>
<#if (step.docString.value)?? >
#if>
<#if (step.hasHooksWithContent()) >
#if>
${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 sectionId='background'/>
<@scenario.attachments step=step/>
<@scenario.stepHooks step.index step.after />
#list>
@page.card>
#if>
<#if (element.steps?size > 0)>
<@page.card width="12" title="Steps" subtitle="" classes="">
#list>
#if>
-
<#assign oldCollapseLevel = 0>
<#assign lastLevelChange = 0>
<#assign openDivs = 0>
<#list element.steps as step>
<@scenario.stepHooks step.index step.before />
<#assign sectionChange = step.collapseLevel - oldCollapseLevel>
<#assign oldCollapseLevel = step.collapseLevel>
<#if (sectionChange > 0) >
<#list 1..sectionChange as n>
<#assign openDivs = openDivs + 1>
${step?counter}.
<#assign stepName=step.returnNameWithArguments()>
${step.keyword} ${stepName}
<#if (step.hasSubSections())>
#if>
<#if (step.docString.value)?? >
#if>
<#if (step.hasHooksWithContent()) >
#if>
${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 sectionId='main'/>
<@scenario.attachments step=step/>
<@scenario.stepHooks step.index step.after />
#list>
@page.card>
#if>
<#if (element.after?size > 0 && element.anyAfterHookHasContent())>
#list>
#if>
#if>
@page.page>
#if>
<#if (element.backgroundSteps?size > 0)>
<@page.card width="12" title="Background Steps" subtitle="" classes="">
© 2015 - 2025 Weber Informatics LLC | Privacy Policy