![JAR search and dependency download from the Maven repository](/logo.png)
template.macros.scenario.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/common.ftl" as common>
<#macro table status numberOfScenarios>
<#assign skippedRequested = status == "skipped">
<#assign failedRequested = status == "failed">
<#assign passedRequested = status == "passed">
<#assign allRequested = status == "all">
<#if (skippedRequested && hasSkippedScenarios()) ||
(failedRequested && hasFailedScenarios()) ||
(passedRequested && hasPassedScenarios()) ||
allRequested>
<#switch status>
<#case "skipped">
${numberOfScenarios}
${common.pluralizeFn("skipped Scenario", numberOfScenarios)}
<@common.status status="skipped"/>
<#break>
<#case "failed">
${numberOfScenarios}
${common.pluralizeFn("failed Scenario", numberOfScenarios)}
<@common.status status="failed"/>
<#break>
<#case "passed">
${numberOfScenarios}
${common.pluralizeFn("passed Scenario", numberOfScenarios)}
<@common.status status="passed"/>
<#break>
<#case "all">
${numberOfScenarios} ${common.pluralizeFn("Scenario", numberOfScenarios)}
<#break>
#switch>
<#if allRequested>
#
#if>
Feature
Scenario
Started
Duration
<#if allRequested>
Status
#if>
<#assign counter = 0>
<#list reports as report>
<#assign tooltipText = "">
<#if report.description?has_content>
<#assign tooltipText = "${report.description} | ">
#if>
<#assign tooltipText = "${tooltipText}${report.uri}">
<#list report.elements as element>
<#assign counter = counter + 1>
<#if (skippedRequested && element.skipped) || (failedRequested && element.failed) || (passedRequested && element.passed) || allRequested>
<#if allRequested>
${counter}
#if>
${report.name?html}
${element.name?html}
<#if element.isMultiRunParent()>
#if>
<#if element.firstExceptionClass != "">
${element.firstExceptionClass}
#if>
<#if element.isMultiRunParent()>
<#list element.getMultiRunChildren() as childElement>
-
Previous run from
${childElement.startDateString}, ${childElement.startTimeString}
<@common.status status=childElement.status.statusString/>
<#if childElement.firstExceptionClass != "">
${childElement.firstExceptionClass}
#if>
#list>
#if>
${element.startDateString}
${element.startTimeString}
${element.returnTotalDurationString()}
<#if allRequested>
<@common.status status=element.status.statusString/>
#if>
#if>
#list>
#list>
#if>
#macro>
<#macro attachments step>
<#if step.embeddings??>
<#list step.embeddings as attachment>
<#assign attachmentID = attachment.hashCode()?string["0"]>
Toggle |
<#if attachment.name != "">
${attachment.name} (${attachment.mimeType} attachment)
<#else>
${attachment.mimeType} attachment
#if>
#list>
#if>
#macro>
<#macro errorMessage step>
<#if step.result.hasErrorMessage()>
${step.result.returnErrorMessageWithClickableLinks()}
#if>
#macro>
<#macro output step sectionId>
<#if step.hasOutputs()>
Toggle |
Step Output
#if>
#macro>
<#macro stepHooks stepIndex hooks>
<#list hooks as hook>
<#if hook.hasContent()>
#if>
#list>
#macro>
© 2015 - 2025 Weber Informatics LLC | Privacy Policy