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 ignoredCount = testOutcomes.totalTests.withResult("ignored") >
<#assign failureCount = testOutcomes.totalTests.withResult("failure") >
<#assign errorCount = testOutcomes.totalTests.withResult("error") >
<#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 autoIgnoredCount = testOutcomes.count("AUTOMATED").withResult("ignored") >
<#assign autoFailureOrErrorCount = testOutcomes.count("AUTOMATED").withFailureOrError() >
<#if (autoTotalCount > 0)>
<#assign autoPercentageSuccessCount = autoSuccessCount / autoTotalCount >
<#assign autoPercentagePendingCount = autoPendingCount / autoTotalCount >
<#assign autoPercentageIgnoredCount = autoIgnoredCount / autoTotalCount >
<#assign autoPercentageFailureOrErrorCount = autoFailureOrErrorCount / autoTotalCount >
<#else>
<#assign autoPercentageSuccessCount = 0.0 >
<#assign autoPercentagePendingCount = 0.0 >
<#assign autoPercentageIgnoredCount = 0.0 >
<#assign autoPercentageFailureOrErrorCount = 0.0 >
#if>
<#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>
<#if (totalCount > 0)>
<#assign percentageSuccessCount = successCount / totalCount >
<#assign percentagePendingCount = pendingCount / totalCount >
<#assign percentageIgnoredCount = ignoredCount / totalCount >
<#assign percentageFailureOrErrorCount = failureCount / totalCount >
<#else>
<#assign percentageSuccessCount = 0.0 >
<#assign percentagePendingCount = 0.0 >
<#assign percentageIgnoredCount = 0.0 >
<#assign percentageFailureOrErrorCount = 0.0 >
#if>
Test Result Summary
Test Type
Total
Pass
Fail
Pending
Ignored
Automated
${autoTotalCount}
${autoSuccessCount} (${autoPercentageSuccessCount?string.percent})
${autoFailureOrErrorCount} (${autoPercentageFailureOrErrorCount?string.percent})
${autoPendingCount} (${autoPercentagePendingCount?string.percent})
${autoIgnoredCount} (${autoPercentageIgnoredCount?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})
${ignoredCount} (${percentageIgnoredCount?string.percent})
Total Duration
<#assign durationInSeconds = testOutcomes.duration / 1000>
<#if (durationInSeconds > 60)>
${(durationInSeconds / 60)?int} minutes ${(durationInSeconds % 60)?round} seconds
<#else>
${durationInSeconds?round} seconds
#if>
© 2015 - 2025 Weber Informatics LLC | Privacy Policy