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

freemarker.default.ftl Maven / Gradle / Ivy

There is a newer version: 4.2.9
Show newest version



    
    ${testOutcome.unqualified.title}
    

<#include "libraries/common.ftl">
<#include "libraries/jquery-ui.ftl">
<#include "libraries/datatables.ftl">
<#include "libraries/imgpreview.ftl">




${reportOptions.projectName}
<#-- HEADER -->
Home <#list breadcrumbs as breadcrumb> <#assign breadcrumbReport = absoluteReportName.forRequirement(breadcrumb) /> <#assign breadcrumbTitle = inflection.of(breadcrumb.shortName).asATitle() > > ${formatter.truncatedHtmlCompatible(breadcrumbTitle,40)} > ${formatter.truncatedHtmlCompatible(testOutcome.title,80)}
<#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"> <#assign title_outcome_icon = formatter.resultIcon().inExtraLarge().forResult(testOutcome.result) /> <#-- TEST TITLE-->
<#if (parentRequirement?? && parentRequirement.isPresent())>
<#assign parentTitle = inflection.of(parentRequirement.get().name).asATitle() > <#assign parentType = inflection.of(parentRequirement.get().type).asATitle() > <#if (parentRequirement.get().cardNumber?has_content) > <#assign issueNumber = "[" + formatter.addLinks(parentRequirement.get().cardNumber) + "]" > <#else> <#assign issueNumber = "">

${parentTitle} ${issueNumber}

${formatter.renderDescription(parentRequirement.get().narrative.renderedText)}
<#elseif (featureOrStory?? && featureOrStory.isPresent())>
<#assign parentTitle = inflection.of(featureOrStory.get().name).asATitle() > <#assign parentType = inflection.of(featureOrStory.get().type.toString()).asATitle() >

${parentTitle}

${formatter.renderDescription(featureOrStory.get().narrative)}
<#if (testOutcome.backgroundTitle?has_content)>
Background: ${testOutcome.backgroundTitle} <#if (testOutcome.backgroundTitle?has_content)>

${testOutcome.backgroundDescription}

<#list filteredTags as tag> <#assign tagReport = absoluteReportName.forRequirementOrTag(tag) /> <#assign tagTitle = inflection.of(tag.shortName).asATitle() >

 ${tagTitle} (${tag.type})

${title_outcome_icon} <#if (testOutcome.videoLink)??> Video <#assign testOutcomeTitle = inflection.of(testOutcome.unqualified.titleWithLinks).asATitle() > ${testOutcomeTitle} ${testOutcome.formattedIssues} <#if (testOutcome.manual)>
<#if (testOutcome.isDataDriven())>

Scenario:

${formatter.formatWithFields(testOutcome.dataDrivenSampleScenario, testOutcome.exampleFields)}
<#if (testOutcome.descriptionText.isPresent() && testOutcome.descriptionText.get()?has_content)>
${formatter.renderDescription(testOutcome.descriptionText.get())}
<#if (testOutcome.isDataDriven())> <#list testOutcome.dataTable.dataSets as dataSet >

Examples:<#if dataSet.title??> ${dataSet.title}

<#if dataSet.description??>
${dataSet.description}
<#list testOutcome.dataTable.headers as header> <#assign rowIndex = dataSet.startRow > <#list dataSet.rows as row> <#list row.values as value> <#assign rowIndex = rowIndex + 1 >
${inflection.of(header).asATitle()}
${formatter.htmlCompatible(value)}
<#if testOutcome.hasScreenshots()> <#else> <#if testOutcome.hasScreenshots()> <#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> <#macro stacktrace(cause) >
<#macro restQueryData(restQuery, number) > <#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"> <#else> <#assign step_class_root = "top-level"> <#assign step_indent = level*20> <#if level == 1 && step.isAGroup()> <#assign showAccordion = true/> <#else> <#assign showAccordion = false/> <#if testOutcome.hasScreenshots()> <#if (step.errorMessage?has_content) && !step.hasNestedErrors()> <#if step.errorMessage?has_content> <#assign errorMessageTitle = step.conciseErrorMessage?html> <#else> <#assign errorMessageTitle = ""> <#-- Test step results --> <#list testOutcome.testSteps as step> <@write_step step=step step_number=step_index /> <#if testOutcome.hasNonStepFailure()> <#assign step_outcome_icon = formatter.resultIcon().forResult(testOutcome.result) /> <#if testOutcome.hasScreenshots()> <#----> <#if testOutcome.hasScreenshots()> <#else>
<#if (testOutcome.manual)>   <#if (testOutcome.manual)>Manual Steps <#if (testOutcome.manual)>Manual Steps Screenshot Outcome Duration
<#assign level = level + 1> <#list step.children as nestedStep> <@write_step step=nestedStep step_number=""/> <#assign level = level-1> <#if level == 1>
<#if step_number?has_content> <#if showAccordion> <#--${step_outcome_icon}--> <#-- <#--style="margin-left: 20px; float:left; padding-right:5px"/>--> <#else> ${step_outcome_icon} <#-- <#--src="images/${step_outcome_icon}" class="${step_class_root}-icon"/>-->
<#if showAccordion> ${formatter.formatWithFields(step.description,testOutcome.exampleFields)} <#if showAccordion> <#if step.hasRestQuery()> <@restQueryData restQuery=step.restQuery number=step.number />
<#if !step.isAGroup() && step.firstScreenshot??> <#assign screenshotCount = screenshotCount + step.screenshotCount /> ${step.result} ${step.durationInSeconds}s
 
${formatter.htmlAttributeCompatible(errorMessageTitle)!''}
<#if step.nestedException?has_content> <@stacktrace cause=step.nestedException />
${step_outcome_icon} An error occurred outside of step execution. ${testOutcome.result} ${testOutcome.durationInSeconds}s
  <#else> <#if (testOutcome.errorMessage)??> ${testOutcome.conciseErrorMessage} <#if (testOutcome.nestedTestFailureCause)??> <@stacktrace cause=testOutcome.nestedTestFailureCause />
${testOutcome.result} ${testOutcome.durationInSeconds}s
Serenity BDD version ${serenityVersionNumber}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy