com.relevantcodes.extentreports.view.Extent.ftl Maven / Gradle / Ivy
The newest version!
<#assign dateFormat = report.configurationMap["dateFormat"]>
<#assign timeFormat = report.configurationMap["timeFormat"]>
<#assign dateTimeFormat = report.configurationMap["dateFormat"] + " " + report.configurationMap["timeFormat"]>
<#if report.configurationMap??>
${report.configurationMap["documentTitle"]}
#if>
<#if report.configurationMap??>
<#assign protocol = report.configurationMap["protocol"]>
<#else>
<#assign protocol = "https">
<#assign theme = ''>
<#if report.configurationMap??>
<#assign theme = report.configurationMap["theme"]>
${resourceBundle.getString("dashboard.panel.name.totalTests")}
${resourceBundle.getString("dashboard.panel.name.totalSteps")}
${resourceBundle.getString("dashboard.panel.name.totalTimeTaken.current")}
${report.getRunDuration()}
${resourceBundle.getString("dashboard.panel.name.totalTimeTaken.overall")}
${report.getRunDurationOverall()}
${resourceBundle.getString("dashboard.panel.name.start")}
${report.startedTime?datetime?string(dateTimeFormat)}
${resourceBundle.getString("dashboard.panel.name.end")}
${.now?datetime?string(dateTimeFormat)}
${resourceBundle.getString("dashboard.panel.name.passPercentage")}
${resourceBundle.getString("dashboard.panel.name.environment")}
${resourceBundle.getString("dashboard.panel.th.param")}
${resourceBundle.getString("dashboard.panel.th.value")}
<#list report.systemInfoMap?keys as info>
${info}
${report.systemInfoMap[info]}
<#if report.categoryTestMap?? && (report.categoryTestMap?size != 0)>
${resourceBundle.getString("dashboard.panel.name.categories")}
${resourceBundle.getString("dashboard.panel.th.name")}
<#list report.categoryTestMap?keys as category>
${category}
${resourceBundle.getString("tests.heading")}
- Pass
- Fail
<#if report.logStatusList?? && report.logStatusList?seq_contains(LogStatus.FATAL)>
- Fatal
<#if report.logStatusList?? && report.logStatusList?seq_contains(LogStatus.ERROR)>
- Error
<#if report.logStatusList?? && report.logStatusList?seq_contains(LogStatus.WARNING)>
- Warning
- Skip
<#if report.logStatusList?? && report.logStatusList?seq_contains(LogStatus.UNKNOWN)>
- Unknown
- ${resourceBundle.getString("tests.filters.clearFilters")}
<#if report.categoryTestMap?? && report.categoryTestMap?size != 0>
<#list report.categoryTestMap?keys as category>
- ${category}
- ${resourceBundle.getString("tests.filters.clearFilters")}
<#list report.testList as extentTest>
<#assign test = extentTest.getTest()>
-
${test.name} <#if test.internalWarning??>
${test.status}
${test.startedTime?datetime?string(dateTimeFormat)}
<#if test.endedTime??>${test.endedTime?datetime?string(dateTimeFormat)}
<#if test.endedTime??>${test.getRunDuration()}
${test.description}
<#if test.categoryList?? && test.categoryList?size != 0>
<#list test.categoryList as category>
${category.name}
<#if test.authorsList?? && test.authorsList?size != 0>
${resourceBundle.getString("tests.test.log.th.status")}
${resourceBundle.getString("tests.test.log.th.timestamp")}
<#if (test.logList[0].stepName)??>
StepName
${resourceBundle.getString("tests.test.log.th.details")}
<#list test.logList as log>
${log.timestamp?datetime?string(timeFormat)}
<#if test.logList[0].stepName?? && log.stepName??>
${log.stepName}
${log.details}
<#if test.nodeList?? && test.nodeList?has_content>
<@recurse_nodes nodeList=test.nodeList depth=1 />
<#macro recurse_nodes nodeList depth>
<#list nodeList as node>
-
${node.startedTime?datetime?string(dateTimeFormat)}
${node.endedTime?datetime?string(dateTimeFormat)}
${node.getRunDuration()}
${node.status}
${node.name}
<#if node.description??>
${node.description}
${resourceBundle.getString("tests.test.log.th.status")}
${resourceBundle.getString("tests.test.log.th.timestamp")}
<#if (node.logList[0].stepName)??>
StepName
${resourceBundle.getString("tests.test.log.th.details")}
<#list node.logList as log>
${log.timestamp?datetime?string(timeFormat)}
<#if node.logList[0].stepName?? && log.stepName??>
${log.stepName}
${log.details}
<@recurse_nodes nodeList=node.nodeList depth=depth+1 />
<#if report.categoryTestMap?? && (report.categoryTestMap?size != 0)>
<#if report.exceptionTestMap?? && (report.exceptionTestMap?size != 0)>
<#if report.testRunnerLogList?? && (report.testRunnerLogList?size != 0)>