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

freemarker.requirements.ftl Maven / Gradle / Ivy

There is a newer version: 4.2.12
Show newest version



<#if requirements.parentRequirement.isPresent()>
    <#assign pageTitle = inflection.of(requirements.parentRequirement.get().type).inPluralForm().asATitle() >
<#else>
    <#assign pageTitle = "Requirements" >


<#assign requirementTypeTitle = inflection.of(requirements.type).asATitle() >
<#assign requirementsSectionTitle = inflection.of(requirements.type).inPluralForm().asATitle() >

    
    ${pageTitle}
    

<#include "libraries/common.ftl">
<#include "libraries/jquery-ui.ftl">
<#include "libraries/datatables.ftl">
<#assign pie = true>
<#include "libraries/jqplot.ftl">

<#include "components/test-outcomes.ftl">
<#include "components/requirements-list.ftl">


<#list requirements.types as requirementType>
    <#assign successfulRequirements= requirements.requirementsOfType(requirementType).completedRequirementsCount >
    <#assign pendingRequirements = requirements.requirementsOfType(requirementType).pendingRequirementsCount>
    <#assign ignoredRequirements = requirements.requirementsOfType(requirementType).ignoredRequirementsCount >
    <#assign failingRequirements = requirements.requirementsOfType(requirementType).failingRequirementsCount >
    <#assign errorRequirements = requirements.requirementsOfType(requirementType).errorRequirementsCount  >
    <#assign compromisedRequirements = requirements.requirementsOfType(requirementType).compromisedRequirementsCount  >
    <#assign untesteddRequirements = requirements.requirementsOfType(requirementType).requirementsWithoutTestsCount >
<#else>
    <#assign successfulRequirements= testOutcomes.totalTests.withResult("success") >
    <#assign pendingRequirements = testOutcomes.totalTests.withResult("pending") >
    <#assign ignoredRequirements = testOutcomes.totalTests.withResult("ignored") + testOutcomes.totalTests.withResult("skipped")>
    <#assign failingRequirements = testOutcomes.totalTests.withResult("failure") >
    <#assign errorRequirements = testOutcomes.totalTests.withResult("error") >
    <#assign compromisedRequirements = testOutcomes.totalTests.withResult("compromised") >
    <#assign untesteddRequirements = 0 >


    

    



${reportOptions.projectName}
<#if (requirements.parentRequirement.isPresent())> <#assign parentRequirement = requirements.parentRequirement.get() > <#assign parentTitle = inflection.of(parentRequirement.name).asATitle() > <#assign parentType = inflection.of(parentRequirement.type).asATitle() > <#if (parentRequirement.cardNumber?has_content) > <#assign issueNumber = "[" + formatter.addLinks(parentRequirement.cardNumber) + "]" > <#else> <#assign issueNumber = "">
Home > Requirements <#if requirements.parentRequirement.isPresent()> <#assign parent = requirements.parentRequirement.get()> <#assign parentTitle = inflection.of(parent.asTag().shortName).asATitle() > <#if (requirements.parentRequirement.get().parent?has_content)> <#assign rootReport = reportName.forRequirement(requirements.parentRequirement.get().parent) > <#assign rootTitle = inflection.of(requirements.parentRequirement.get().parent!).asATitle() > > ${rootTitle} > ${parentTitle}
<#include "menu.ftl"> <#if requirements.parentRequirement.isPresent()> <@main_menu selected="${requirements.parentRequirement.get().type}" /> <#else> <@main_menu selected="requirements" />
<#if (requirements.parentRequirement.isPresent())>

${parentType}: ${issueNumber} ${parentTitle}

<#if parentRequirement.narrative.renderedText?has_content>
${formatter.renderDescription(parentRequirement.narrative.renderedText)}
<#foreach customField in parentRequirement.customFields > <#if parentRequirement.getCustomField(customField).present>
${customField}
${parentRequirement.getCustomField(customField).get().renderedText}
<#if (requirements.totalTestCount > 0 || requirements.flattenedRequirementCount > 0)> <#assign untestedCount = 0> <#foreach requirementType in requirements.types> <#assign untestedCount = untestedCount + requirements.requirementsOfType(requirementType).requirementsWithoutTestsCount>

Requirements Overview

<#if (untestedCount > 0)> <#foreach requirementType in requirements.types> <#if requirements.type == requirementType> <#assign requirementReport = "#requirements-tabs" /> <#else> <#assign requirementReport = reportName.forRequirementType(requirementType) /> <#assign requirementTitle = inflection.of(requirementType).inPluralForm().asATitle() /> <#if (untestedCount > 0)> <#assign requirementTestsTotalCount = testOutcomes.totalTests.total > <#assign requirementTestsSuccessCount = testOutcomes.totalTests.withResult("success") > <#assign requirementTestsPendingCount = testOutcomes.totalTests.withResult("pending") > <#assign requirementTestsIgnoredCount = testOutcomes.totalTests.withResult("ignored") > <#assign requirementTestsSkippedCount = testOutcomes.totalTests.withResult("skipped") > <#assign requirementTestsFailureOrErrorCount = testOutcomes.totalTests.withFailureOrError() >
Requirement Type Total Pass  Fail  Pending  Ignored Untested 
${requirementTitle} ${requirements.requirementsOfType(requirementType).requirementCount} ${requirements.requirementsOfType(requirementType).completedRequirementsCount} ${requirements.requirementsOfType(requirementType).failingRequirementsCount} ${requirements.requirementsOfType(requirementType).pendingRequirementsCount} ${requirements.requirementsOfType(requirementType).ignoredRequirementsCount}${requirements.requirementsOfType(requirementType).requirementsWithoutTestsCount}
Acceptance Criteria (tests) ${requirementTestsTotalCount} ${requirementTestsSuccessCount} ${requirementTestsFailureOrErrorCount} ${requirementTestsPendingCount} ${requirementTestsIgnoredCount + requirementTestsSkippedCount}
<#include "test-result-summary.ftl"/>
<#if (requirements.requirementOutcomes?has_content || testOutcomes.total > 0)>
<#if (requirements.requirementOutcomes?has_content || (requirements.parentRequirement.isPresent() && requirements.parentRequirement.get().hasExamples()))> <#if (requirements.requirementOutcomes?has_content)>
<@requirements_results requirements=requirements title=requirementTypeTitle requirementType=requirementsSectionTitle id="req-results-table"/>
<#if testOutcomes.tests?has_content > <@test_results testOutcomes=testOutcomes title="Acceptance Criteria" id="test-results-table"/>
<#if (requirements.parentRequirement.isPresent() && requirements.parentRequirement.get().hasExamples())>
<#-- Examples -->
<#assign examples = requirements.parentRequirement.get().examples > <#foreach example in examples>
  Description
<#if example.cardNumber.isPresent() > ${formatter.addLinks(example.cardNumber.get())} ${formatter.addLineBreaks(example.description)}
Serenity BDD version ${serenityVersionNumber}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy