freemarker.default.ftl Maven / Gradle / Ivy
${testOutcome.unqualified.title}
<#include "libraries/common.ftl">
<#include "libraries/jquery-ui.ftl">
<#include "libraries/datatables.ftl">
<#include "libraries/imgpreview.ftl">
<#-- HEADER
-->
<#include "menu.ftl">
<@main_menu selected="home" />
<#if testOutcome.result == "FAILURE"><#assign outcome_text = "failing-color">
<#elseif testOutcome.result == "ERROR"><#assign outcome_text = "error-color">
<#elseif testOutcome.result == "SUCCESS"><#assign outcome_text = "success-color">
<#elseif testOutcome.result == "PENDING"><#assign outcome_text = "pending-color">
<#elseif testOutcome.result == "COMPROMISED"><#assign outcome_text = "compromised-color">
<#else><#assign outcome_text = "ignore-color">
#if>
<#assign title_outcome_icon = formatter.resultIcon().inExtraLarge().forResult(testOutcome.result) />
<#-- TEST TITLE-->
<#if (testOutcome.isDataDriven())>
Scenario:
${formatter.formatWithFields(testOutcome.dataDrivenSampleScenario, testOutcome.exampleFields)}
#if>
<#if (testOutcome.descriptionText.isPresent() && testOutcome.descriptionText.get()?has_content)>
${formatter.renderDescription(testOutcome.descriptionText.get())}
#if>
<#if (testOutcome.isDataDriven())>
<#list testOutcome.dataTable.dataSets as dataSet >
Examples:<#if dataSet.title??> ${dataSet.title}#if>
<#if dataSet.description??>
${dataSet.description}
#if>
<#list testOutcome.dataTable.headers as header>
${inflection.of(header).asATitle()}
#list>
<#assign rowIndex = dataSet.startRow >
<#list dataSet.rows as row>
<#list row.values as value>
${formatter.htmlCompatible(value)}
#list>
<#assign rowIndex = rowIndex + 1 >
#list>
#list>
#if>
<#if (testOutcome.manual)>
#if>
<#if testOutcome.hasScreenshots()>
<#if (testOutcome.manual)>Manual #if>
Steps
<#else>
<#if (testOutcome.manual)>Manual #if>
Steps
#if>
<#if testOutcome.hasScreenshots()>
Screenshot
#if>
Outcome
Duration
<#assign level = 1>
<#assign screenshotCount = 0>
<#macro write_step(step, step_number)>
<@step_details step=step step_number=step_number level=level/>
<#if step.isAGroup()>
<#if level == 1>
#if>
#if>
#macro>
<#macro stacktrace(cause) >
#macro>
<#macro restQueryData(restQuery, number) >
#macro>
<#macro step_details(step, step_number, level)>
<#assign step_outcome_icon = formatter.resultIcon().forResult(step.result) />
<#assign step_outcome_style = formatter.resultIcon().colorFor(step.result) />
<#assign step_icon_size = 20>
<#if (level>1)>
<#if step.isAGroup()>
<#assign step_class_root = "nested">
<#else>
<#assign step_class_root = "nested-group">
#if>
<#else>
<#assign step_class_root = "top-level">
#if>
<#assign step_indent = level*20>
<#if level == 1 && step.isAGroup()>
<#assign showAccordion = true/>
<#else>
<#assign showAccordion = false/>
#if>
<#if step_number?has_content>#if>
<#if showAccordion>
<#--${step_outcome_icon}-->
<#--
<#--style="margin-left: 20px; float:left; padding-right:5px"/>-->
<#else>
<#--
<#--src="images/${step_outcome_icon}" class="${step_class_root}-icon"/>-->
#if>
<#if showAccordion>
#if>
${formatter.formatWithFields(step.description,testOutcome.exampleFields)}
<#if showAccordion>
#if>
<#if step.hasRestQuery()>
<@restQueryData restQuery=step.restQuery number=step.number />
#if>
<#if testOutcome.hasScreenshots()>
<#if !step.isAGroup() && step.firstScreenshot??>
<#assign screenshotCount = screenshotCount + step.screenshotCount />
#if>
#if>
${step.result}
${step.durationInSeconds}s
<#if (step.errorMessage?has_content) && !step.hasNestedErrors()>
 
<#if step.errorMessage?has_content>
<#assign errorMessageTitle = step.conciseErrorMessage?html>
<#else>
<#assign errorMessageTitle = "">
#if>
#if>
#macro>
<#-- Test step results -->
<#list testOutcome.testSteps as step>
<@write_step step=step step_number=step_index />
#list>
<#if testOutcome.hasNonStepFailure()>
<#assign step_outcome_icon = formatter.resultIcon().forResult(testOutcome.result) />
${step_outcome_icon}
An error occurred outside of step execution.
${testOutcome.result}
${testOutcome.durationInSeconds}s
 
<#if testOutcome.hasScreenshots()>
<#else>
#if>
<#if (testOutcome.errorMessage)??>
<#if (testOutcome.nestedTestFailureCause)??>
<@stacktrace cause=testOutcome.nestedTestFailureCause />
#if>
#if>
<#--#if>-->
#if>
<#if testOutcome.hasScreenshots()>
<#else>
#if>
${testOutcome.result}
${testOutcome.durationInSeconds}s
© 2015 - 2025 Weber Informatics LLC | Privacy Policy