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

freemarker.test-result-summary.ftl Maven / Gradle / Ivy


<#assign totalCount = testOutcomes.totalTests.total >
<#assign successCount = testOutcomes.totalTests.withResult("success") >
<#assign pendingCount = testOutcomes.totalTests.withResult("pending") >
<#assign ignoredOrSkippedCount = testOutcomes.totalTests.withResult("ignored") + testOutcomes.totalTests.withResult("skipped")>
<#assign failureCount = testOutcomes.totalTests.withResult("failure") >
<#assign errorCount = testOutcomes.totalTests.withResult("error") >
<#assign compromisedCount = testOutcomes.totalTests.withResult("compromised") >
<#assign failureOrErrorCount = testOutcomes.totalTests.withFailureOrError() >

<#assign autoTotalCount = testOutcomes.count("AUTOMATED").total >
<#assign autoSuccessCount = testOutcomes.count("AUTOMATED").withResult("success") >
<#assign autoPendingCount = testOutcomes.count("AUTOMATED").withResult("pending") >
<#assign autoIgnoredOrSkippedCount = testOutcomes.count("AUTOMATED").withResult("ignored") + testOutcomes.count("AUTOMATED").withResult("skipped") >
<#assign autoFailureOrErrorCount = testOutcomes.count("AUTOMATED").withFailureOrError() >

<#if (autoTotalCount > 0)>
    <#assign autoPercentageSuccessCount = autoSuccessCount / autoTotalCount >
    <#assign autoPercentagePendingCount = autoPendingCount / autoTotalCount  >
    <#assign autoPercentageIgnoredOrSkippedCount = autoIgnoredOrSkippedCount / autoTotalCount  >
    <#assign autoPercentageFailureOrErrorCount = autoFailureOrErrorCount / autoTotalCount  >
<#else>
    <#assign autoPercentageSuccessCount = 0.0 >
    <#assign autoPercentagePendingCount = 0.0 >
    <#assign autoPercentageIgnoredOrSkippedCount = 0.0 >
    <#assign autoPercentageFailureOrErrorCount = 0.0 >


<#assign manualTotalCount = testOutcomes.count("MANUAL").total >
<#assign manualSuccessCount = testOutcomes.count("MANUAL").withResult("success") >
<#assign manualPendingCount = testOutcomes.count("MANUAL").withResult("pending") >
<#assign manualIgnoredCount = testOutcomes.count("MANUAL").withResult("ignored") >
<#assign manualFailureOrErrorCount = testOutcomes.count("MANUAL").withFailureOrError() >

<#if (manualTotalCount > 0)>
    <#assign manualPercentageSuccessCount = manualSuccessCount / manualTotalCount >
    <#assign manualPercentagePendingCount = manualPendingCount / manualTotalCount  >
    <#assign manualPercentageIgnoredCount = manualIgnoredCount / manualTotalCount  >
    <#assign manualPercentageFailureOrErrorCount = manualFailureOrErrorCount / manualTotalCount  >
<#else>
    <#assign manualPercentageSuccessCount = 0.0 >
    <#assign manualPercentagePendingCount = 0.0 >
    <#assign manualPercentageIgnoredCount = 0.0 >
    <#assign manualPercentageFailureOrErrorCount = 0.0 >


<#if (totalCount > 0)>
    <#assign percentageSuccessCount = successCount / totalCount >
    <#assign percentagePendingCount = pendingCount / totalCount  >
    <#assign percentageIgnoredOrSkippedCount = ignoredOrSkippedCount / totalCount  >
    <#assign percentageFailureOrErrorCount = (manualFailureOrErrorCount + autoFailureOrErrorCount) / totalCount  >
<#else>
    <#assign percentageSuccessCount = 0.0 >
    <#assign percentagePendingCount = 0.0 >
    <#assign percentageIgnoredOrSkippedCount = 0.0 >
    <#assign percentageFailureOrErrorCount = 0.0 >


Test Result Summary

<#assign durationInSeconds = testOutcomes.duration / 1000> <#if (durationInSeconds > 60)> <#else>
Test Type Total Pass  Fail  Pending  Ignore/Skip 
Automated ${autoTotalCount} ${autoSuccessCount} (${autoPercentageSuccessCount?string.percent}) ${autoFailureOrErrorCount} (${autoPercentageFailureOrErrorCount?string.percent}) ${autoPendingCount} (${autoPercentagePendingCount?string.percent}) ${autoIgnoredOrSkippedCount} (${autoPercentageIgnoredOrSkippedCount?string.percent})
Manual ${manualTotalCount} ${manualSuccessCount} (${manualPercentageSuccessCount?string.percent}) ${manualFailureOrErrorCount} (${manualPercentageFailureOrErrorCount?string.percent}) ${manualPendingCount} (${manualPercentagePendingCount?string.percent}) ${manualIgnoredCount} (${manualPercentageIgnoredCount?string.percent})
Total ${totalCount} ${successCount} (${percentageSuccessCount?string.percent}) ${failureOrErrorCount} (${percentageFailureOrErrorCount?string.percent}) ${pendingCount} (${percentagePendingCount?string.percent}) ${ignoredOrSkippedCount} (${percentageIgnoredOrSkippedCount?string.percent})
Total Duration${(durationInSeconds / 60)?int} minutes ${(durationInSeconds % 60)?round} seconds${durationInSeconds?round} seconds




© 2015 - 2024 Weber Informatics LLC | Privacy Policy