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

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

There is a newer version: 2.9.4
Show newest version
<#--
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>
<#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="Scenario Info" subtitle="" classes=""> <#if element.startTimestamp?has_content>
  • Started on:
    ${element.startDateString} ${element.startTimeString}
  • <#if element.startTimestamp?has_content>
  • Ended on:
    ${element.endDateString} ${element.endTimeString}
  • Test Runtime:
    ${element.returnTotalDurationString()}
  • <#list element.tags as tag> ${tag.name}<#sep>,
  • <@page.card width="3" title="Step Summary" subtitle="" classes="">
    • ${element.totalNumberOfSteps} <@common.pluralize word="Step" unitCount=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.hasHooks() && element.hasHooksWithContent()> <#if element.hasStepHooks() && element.hasStepHooksWithContent()> <#if element.hasDocStrings()>
      <#if (element.before?size > 0 && element.anyBeforeHookHasContent())> <@page.card width="12" title="Before Hooks" subtitle="" classes="scenarioHook collapse">
    • <#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/> <@scenario.attachments step=before/>
    • <#if (element.backgroundSteps?size > 0)> <@page.card width="12" title="Background Steps" subtitle="" classes="">
    • <#list element.backgroundSteps as step> <@scenario.stepHooks step.before />
      ${step?counter}. <#assign stepName=step.returnNameWithArguments()> ${step.keyword} ${stepName}
      ${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/> <@scenario.attachments step=step/>
      <@scenario.stepHooks step.after />
    • <#if (element.steps?size > 0)> <@page.card width="12" title="Steps" subtitle="" classes="">
    • <#list element.steps as step> <@scenario.stepHooks step.before />
      ${step?counter}. <#assign stepName=step.returnNameWithArguments()> ${step.keyword} ${stepName}
      ${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/> <@scenario.attachments step=step/>
      <@scenario.stepHooks 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/> <@scenario.attachments step=after/>




    © 2015 - 2024 Weber Informatics LLC | Privacy Policy