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

<@page.page
base="../.."
links=["feature_summary", "tag_summary", "step_summary", "scenario_sequence", "scenario_summary"]
headline="${element.name?html}"
subheadline="${element.description?html}"
preheadline="${element.featureName?html}"
preheadlineLink="pages/feature-scenarios/feature_${element.featureIndex?c}.html">

    
<@page.card width="8" title="Scenario Result Chart" subtitle="" classes=""> <@page.graph /> <@page.card width="4" title="Scenario Information" subtitle="" classes="">
  • ${element.totalNumberOfSteps} Step(s)
  • ${element.totalNumberOfPassedSteps} <@common.status status="passed"/> ${element.totalNumberOfFailedSteps} <@common.status status="failed"/> ${element.totalNumberOfSkippedSteps} <@common.status status="skipped"/>
  • Duration: ${element.returnTotalDurationString()}
  • <#list element.tags as tag> ${tag.name}<#sep>,
<#if element.hasHooks()> <#if element.hasStepHooks()> <#if element.hasDocStrings()>
    <#if (element.before?size > 0)> <@page.card width="12" title="Before Hooks" subtitle="" classes="scenarioHook collapse">
  • <#list element.before as before>
    ${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.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)>
    <@page.card width="12" title="After Hooks" subtitle="" classes="">
  • <#list element.after as after>
    ${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