All Downloads are FREE. Search and download functionalities are using the official Maven repository.

template.scenario-detail.ftl Maven / Gradle / Ivy

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/>
    

    
<@page.card width="6" title="Step Results" subtitle="" classes=""> <@page.graph /> <@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} <@page.card width="3" title="Scenario Info" subtitle="" classes="">
  • <#if element.startTimestamp?has_content> Start
    ${element.startDateString} ${element.startTimeString}
    <#if element.startTimestamp?has_content> End
    ${element.endDateString} ${element.endTimeString}
    Total
    ${element.returnTotalDurationString()}
  • <#assign numberOfChildren = element.getMultiRunChildren()?size> <#if groupPreviousScenarioRuns && element.multiRunParent>
    <#if groupPreviousScenarioRuns && element.multiRunChild>
    <#if (element.hasHooks() && element.hasHooksWithContent()) || element.hasSubSections() || (element.hasStepHooks() && element.hasStepHooksWithContent()) || element.hasDocStrings()>
    <#if element.hasSubSections()> <#if element.hasHooks() && element.hasHooksWithContent()> <#if element.hasStepHooks() && element.hasStepHooksWithContent()> <#if element.hasDocStrings()> <#if element.hasAttachments()> <#if element.hasOutputs()>
      <#if (element.before?size > 0 && element.anyBeforeHookHasContent())>
      <@page.card width="12" title="Before Hooks" subtitle="" classes="">
    • <#list element.before as before> <#if before.hasContent() || before.isFailed()>
      ${before?counter}. ${before.glueMethodName}
      ${before.result.returnDurationString()}
      <@common.status status=before.consolidatedStatusString/>
      <@scenario.errorMessage step=before/> <@scenario.output step=before sectionId='before'/> <@scenario.attachments step=before/>
    • <#if (element.backgroundSteps?size > 0)> <@page.card width="12" title="Background Steps" subtitle="" classes="">
    • <#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>
      <#elseif (sectionChange < 0) > <#list sectionChange..-1 as n>
      ${step?counter}. <#assign stepName=step.returnNameWithArguments()> ${step.keyword} ${stepName} <#if (step.hasSubSections())> <#if (step.docString.value)?? > <#if (step.hasHooksWithContent()) >
      ${step.result.returnDurationString()}
      <@common.status status=step.consolidatedStatusString/>
      <#if (step.rows?size > 0) >
      <#list step.rows as row> <#list row.cells as cell>
      ${cell}
      <#if (step.docString.value)?? >
      ${step.docString.returnWithClickableLinks()}
      <@scenario.errorMessage step=step/> <@scenario.output step=step sectionId='background'/> <@scenario.attachments step=step/>
      <@scenario.stepHooks step.index step.after />
    • <#if (element.steps?size > 0)> <@page.card width="12" title="Steps" subtitle="" classes="">
    • <#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>
      <#elseif (sectionChange < 0) > <#list sectionChange..-1 as n>
      ${step?counter}. <#assign stepName=step.returnNameWithArguments()> ${step.keyword} ${stepName} <#if (step.hasSubSections())> <#if (step.docString.value)?? > <#if (step.hasHooksWithContent()) >
      ${step.result.returnDurationString()}
      <@common.status status=step.consolidatedStatusString/>
      <#if (step.rows?size > 0) >
      <#list step.rows as row> <#list row.cells as cell>
      ${cell}
      <#if (step.docString.value)?? >
      ${step.docString.returnWithClickableLinks()}
      <@scenario.errorMessage step=step/> <@scenario.output step=step sectionId='main'/> <@scenario.attachments step=step/>
      <@scenario.stepHooks step.index step.after />
    • <#if (element.after?size > 0 && element.anyAfterHookHasContent())>
      <@page.card width="12" title="After Hooks" subtitle="" classes="">
    • <#list element.after as after> <#if after.hasContent() || after.isFailed()>
      ${after?counter}. ${after.glueMethodName}
      ${after.result.returnDurationString()}
      <@common.status status=after.consolidatedStatusString/>
      <@scenario.errorMessage step=after/> <@scenario.output step=after sectionId='after'/> <@scenario.attachments step=after/>




    © 2015 - 2025 Weber Informatics LLC | Privacy Policy