templates.mail.html Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of spectrum Show documentation
Show all versions of spectrum Show documentation
E2E Test Automation Framework
Spectrum Notification
Spectrum Notification
<#if event.context??>
Class Name:
${event.context.parent.get().displayName}
Test Name:
${event.context.displayName}
Reason:
${event.reason}
<#if event.result??>
<#switch event.result>
<#case "FAILED">
<#assign color = "#dc3545" >
<#break>
<#case "SUCCESSFUL">
<#assign color = "#28a745" >
<#break>
<#case "DISABLED">
<#assign color = "#ffc107" >
<#break>
<#case "ABORTED">
<#assign color = "#dc3545" >
<#break>
<#default>
<#assign color = "transparent" >
<#break>
Result:
${event.result}
<#if event.context?? && event.context.executionException.isPresent()>
Exception:
${event.context.executionException.get()}
Tags:
${event.tags?join(", ")}