freemarker.releases.ftl Maven / Gradle / Ivy
Releases
<#include "libraries/common.ftl">
<#include "libraries/jquery-ui.ftl">
<#include "libraries/datatables.ftl">
<#include "libraries/jqtree.ftl">
Releases
<#include "menu.ftl">
<@main_menu selected="releases" />
Release Outline
<#--- Requirements -->
Release
Total.
Tests
%Pass
Auto.
Tests
%Pass
<#if reportOptions.showManualTests>
Manual
Tests
%Pass
#if>
<#foreach release in releases>
<#assign releaseOutcomes = requirements.getReleasedRequirementsFor(release)/>
<#if releaseOutcomes.testOutcomes.stepCount == 0 || releaseOutcomes.testOutcomes.result == "PENDING" || releaseOutcomes.testOutcomes.result == "IGNORED">
<#assign status_icon = "traffic-yellow.gif">
<#assign status_rank = 0>
<#elseif releaseOutcomes.testOutcomes.result == "ERROR">
<#assign status_icon = "traffic-orange.gif">
<#assign status_rank = 1>
<#elseif releaseOutcomes.testOutcomes.result == "FAILURE">
<#assign status_icon = "traffic-red.gif">
<#assign status_rank = 2>
<#elseif releaseOutcomes.testOutcomes.result == "SUCCESS">
<#assign status_icon = "traffic-green.gif">
<#assign status_rank = 3>
#if>
<#assign releaseReport = reportName.forRelease(release) >
${release.name}
<#assign totalAutomated = releaseOutcomes.testOutcomes.count("AUTOMATED").withAnyResult()/>
<#assign automatedPassed = releaseOutcomes.testOutcomes.count("AUTOMATED").withResult("SUCCESS")/>
<#assign automatedPending = releaseOutcomes.testOutcomes.count("AUTOMATED").withIndeterminateResult()/>
<#assign automatedFailed = releaseOutcomes.testOutcomes.count("AUTOMATED").withResult("FAILURE")/>
<#assign automatedError = releaseOutcomes.testOutcomes.count("AUTOMATED").withResult("ERROR")/>
<#if (totalAutomated > 0) >
<#assign automatedPercentagePassed = (automatedPassed / totalAutomated)/>
<#else>
<#assign automatedPercentagePassed = 0.0/>
#if>
<#assign totalManual = releaseOutcomes.testOutcomes.count("MANUAL").withAnyResult()/>
<#assign manualPending = releaseOutcomes.testOutcomes.count("MANUAL").withIndeterminateResult()/>
<#assign manualPassed = releaseOutcomes.testOutcomes.count("MANUAL").withResult("SUCCESS")/>
<#assign manualFailed = releaseOutcomes.testOutcomes.count("MANUAL").withResult("FAILURE")/>
<#assign manualError = releaseOutcomes.testOutcomes.count("MANUAL").withResult("ERROR")/>
<#if (totalManual > 0)>
<#assign manualPercentagePassed = (manualPassed / totalManual)/>
<#else>
<#assign manualPercentagePassed = 0.0/>
#if>
<#assign totalTests = totalAutomated + totalManual/>
<#if (totalTests > 0)>
<#assign percentagePassed = ((automatedPassed + manualPassed) / totalTests)/>
<#else>
<#assign percentagePassed = 0.0/>
#if>
<#if (automatedFailed + automatedError > 0)>
<#assign automatedColor = "redtext"/>
<#elseif (automatedPending > 0)>
<#assign automatedColor = "bluetext"/>
<#elseif (totalAutomated == 0)>
<#assign automatedColor = "bluetext"/>
<#else>
<#assign automatedColor = "greentext"/>
#if>
<#if (automatedFailed + automatedError + manualFailed + manualError > 0)>
<#assign totalColor = "redtext"/>
<#elseif (automatedPending + manualPending > 0)>
<#assign totalColor = "bluetext"/>
<#elseif (totalAutomated == 0)>
<#assign totalColor = "bluetext"/>
<#else>
<#assign totalColor = "greentext"/>
#if>
${totalTests}
${percentagePassed?string.percent}
${totalAutomated}
${automatedPercentagePassed?string.percent}
${automatedPassed}
${automatedPending}
${automatedFailed}
${automatedError}
<#if reportOptions.showManualTests>
<#if (manualFailed + manualError > 0)>
<#assign manualColor = "redtext"/>
<#elseif (manualPending > 0)>
<#assign manualColor = "bluetext"/>
<#elseif (totalManual == 0)>
<#assign manualColor = "bluetext"/>
<#else>
<#assign manualColor = "greentext"/>
#if>
${totalManual}
${manualPercentagePassed?string.percent}
${manualPassed}
${manualPending}
${manualFailed}
${manualError}
#if>
#foreach>