html-report.report-test.ftl.html Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of galen Show documentation
Show all versions of galen Show documentation
A library for layout testing of websites
<#macro report_attachments node>
<#if node.attachments?has_content>
<#if node.time?has_content>
${node.time?string("HH:mm:ss")}
#if>
${node.status?upper_case}
<@report_attachments node/>
<#if node.details?has_content>
${node.details?html}
#if>
<#if node.class.simpleName = "ExceptionReportNode">
${node.stacktrace?html}
<#else>
<#if node.nodes?has_content>
<#list node.nodes as subNode>
<@report_node node=subNode/>
#list>
#if>
<#if node.class.simpleName = "LayoutReportNode" && node.layoutReport?has_content && node.layoutReport.sections?has_content>
<#list node.layoutReport.sections as section>
${section.name?html}
<#list section.objects as obj>
<@object_node object=obj/>
#list>
#list>
#if>
#if>
#macro>
<#macro area_rect area>${area.left?c},${area.top?c},${area.width?c},${area.height?c}#macro>
<#macro object_node object>
${object.name?html}
data-area="<@area_rect area=object.area/>"#if> data-name="${object.name?html}">
<#list object.specs as spec>
<#if spec.failed = true>
-
title="Location: ${spec.place.filePath!"unknown location"}#${spec.place.lineNumber!"?"}"#if>>${spec.text?html}
<#if spec.imageComparison?has_content>
data-area="<@area_rect area=spec.imageComparison.area/>"#if> data-imagesource="${spec.imageComparison.imageSamplePath}" data-comparisonmap="${spec.imageComparison.comparisonMapPath}" href="#">Show differences
#if>
<#if spec.errorAreas?has_content>
<#list spec.errorAreas as area>
- ${area.message?html}
#list>
#if>
<#if spec.subObjects?has_content>
<#list spec.subObjects as subObject>
<@object_node object=subObject/>
#list>
#if>
<#else>
-
title="Location: ${spec.place.filePath!"unknown location"}#${spec.place.lineNumber!"?"}"#if>>${spec.text?html}
<#if spec.subObjects?has_content>
<#list spec.subObjects as subObject>
<@object_node object=subObject/>
#list>
#if>
#if>
#list>
#macro>
Galen Report | ${test.testInfo.name?html}
${test.testInfo.name?html}
<#if test.testInfo.report.nodes?has_content>
<#list test.testInfo.report.nodes as node>
<@report_node node=node/>
#list>
#if>
#if>
#macro>
<#macro report_node node>
© 2015 - 2025 Weber Informatics LLC | Privacy Policy