freemarker.home.ftl Maven / Gradle / Ivy
Serenity Reports
<#include "libraries/favicon.ftl">
<#include "libraries/common.ftl">
<#include "libraries/jquery-ui.ftl">
<#include "libraries/datatables.ftl">
<#assign pie = true>
<#include "libraries/jqplot.ftl">
<#include "components/tag-list.ftl">
<#include "components/test-outcomes.ftl">
<#assign manualTests = testOutcomes.count("manual")>
<#assign automatedTests = testOutcomes.count("automated")>
<#assign successfulManualTests = (manualTests.withResult("SUCCESS") > 0)>
<#assign pendingManualTests = (manualTests.withResult("PENDING") > 0)>
<#assign ignoredManualTests = (manualTests.withResult("IGNORED") > 0)>
<#assign failingManualTests = (manualTests.withResult("FAILURE") > 0)>
<#assign tagsTitle = 'Related Tags' >
<#if (testOutcomes.label == '')>
<#assign resultsContext = ''>
<#assign pageTitle = 'Test Results: All Tests' >
<#else>
<#assign resultsContext = '> ' + testOutcomes.label>
<#if (currentTagType! != '')>
<#assign pageTitle = " " + inflection.of(currentTagType!"").asATitle() + ': ' + inflection.of(testOutcomes.label).asATitle() >
<#else>
<#assign pageTitle = inflection.of(testOutcomes.label).asATitle() >
#if>
#if>
<#---->
<#include "menu.ftl">
<@main_menu selected="home" />
${pageTitle}
${testOutcomes.totalTestScenarios}
test scenarios <#if (testOutcomes.hasDataDrivenTests())>(${testOutcomes.total} tests in all, including ${testOutcomes.totalDataRows}
rows of test data)#if>
<#assign successReport = reportName.withPrefix(currentTag).forTestResult("success") >
<#assign brokenReport = reportName.withPrefix(currentTag).forTestResult("broken") >
<#assign failureReport = reportName.withPrefix(currentTag).forTestResult("failure") >
<#assign errorReport = reportName.withPrefix(currentTag).forTestResult("error") >
<#assign compromisedReport = reportName.withPrefix(currentTag).forTestResult("compromised") >
<#assign pendingReport = reportName.withPrefix(currentTag).forTestResult("pending") >
<#assign skippedReport = reportName.withPrefix(currentTag).forTestResult("skipped") >
<#assign ignoredReport = reportName.withPrefix(currentTag).forTestResult("ignored") >
<#assign totalCount = testOutcomes.totalScenarios.total >
<#assign successCount = testOutcomes.totalScenarios.withResult("success") >
<#assign pendingCount = testOutcomes.totalScenarios.withResult("pending") >
<#assign ignoredCount = testOutcomes.totalScenarios.withResult("ignored") >
<#assign skippedCount = testOutcomes.totalScenarios.withResult("skipped") >
<#assign failureCount = testOutcomes.totalScenarios.withResult("failure") >
<#assign errorCount = testOutcomes.totalScenarios.withResult("error") >
<#assign brokenCount = failureCount + errorCount >
<#assign compromisedCount = testOutcomes.totalScenarios.withResult("compromised") >
<#if (successCount > 0)>
|
${successCount}
<#if (report.shouldDisplayResultLink)>
passed
<#else>passed#if>
#if>
<#if (pendingCount > 0)>
|
${pendingCount}
<#if (report.shouldDisplayResultLink)>
pending
<#else>pending#if>
#if>
<#if (brokenCount > 0)>
|
${brokenCount}
<#if (report.shouldDisplayResultLink)>
unsuccessful
<#else>unsuccessful#if>
(
${failureCount}
<#if (report.shouldDisplayResultLink)>
failed
<#else>failed#if>,
${errorCount}
<#if (report.shouldDisplayResultLink && errorCount gt 0)>
with errors
<#else>errors#if>
)
#if>
<#if (compromisedCount > 0)> |
${compromisedCount}
<#if (report.shouldDisplayResultLink)>
compromised tests
<#else>compromised#if>
#if>
<#if (ignoredCount > 0)>
|
${ignoredCount}
<#if (report.shouldDisplayResultLink)>
ignored
<#else>ignored#if>
#if>
<#if (skippedCount > 0)>
|
${skippedCount}
<#if (skippedCount > 0 && report.shouldDisplayResultLink)>
skipped
<#else>skipped#if>
#if>
<#if testOutcomes.haveFlags()>
|
<#list testOutcomes.flags as flag>
<#assign flagTitle = inflection.of(flag.message).inPluralForm().asATitle() >
<#assign flagTag = "flag_${inflection.of(flag.message).asATitle()}" >
<#assign flagReport = reportName.forTag(flagTag) >
<#assign flagCount = testOutcomes.flagCountFor(flag)>
${flagTitle} (${flagCount})
#list>
#if>
<#if (csvReport! != '')> |
#if>
Show/Hide Pie Chart
<#include "test-result-summary.ftl"/>
<#if reportOptions.showRelatedTags>
<@list_tags weighted="false" context=reportName.context/>
#if>
Show/Hide Pie
Chart
<#include "test-result-summary.ftl"/>
<#if reportOptions.showRelatedTags>
<@list_tags weighted="true" context=reportName.context/>
#if>
<@test_results testOutcomes=testOutcomes title="Tests" id="test-results-table"/>
© 2015 - 2025 Weber Informatics LLC | Privacy Policy