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

templates.default.breakdown.ftlh Maven / Gradle / Ivy

Go to download

The part of the Cucumber Reports library directly responsible for reports generation.

The newest version!


${refreshData}
${title}

  
  
    

${title}

<#include "pie_chart"> <#assign colOffset = table.getRows().depth() > <#assign rowOffset = table.getCols().depth() > <#list 0..(rowOffset-1) as i> <#assign line = table.getCols().getRow(i) > <#list line as item> <#if item.depth() == 1> <#else> <#macro drawCell stats type> <#assign total = stats.getFailed() + stats.getPassed() + stats.getSkipped() > <#if total gt 0> <#switch type> <#case "BARS_ONLY"> <#break> <#case "BARS_WITH_NUMBERS"> <#break> <#case "NUMBERS_ONLY"> <#break> <#case "PIE_CHART"> <#break> <#default> <#else> <#macro drawBarCell stats> <#assign total = stats.getFailed() + stats.getPassed() + stats.getSkipped() > <#assign cellSize = 30> <#assign passedRatio = (cellSize * (stats.getPassed() / total)) > <#assign failedRatio = (cellSize * (stats.getFailed() / total)) > <#assign skippedRatio = (cellSize * (stats.getSkipped() / total)) > <#if stats.getFailed() gt 0> <#assign failedRatio++ >
 ${item.getAlias()}${item.getAlias()}
<@drawBarCell stats=stats /><@drawBarNumberCell stats=stats /><@drawNumberOnlyCell stats=stats /> <@drawPieChart id="" width=450 height=300 values=[stats.getPassed(), stats.getFailed(), stats.getSkipped()] labels=["Passed", "Failed", "Skipped"] colors=["green", "red", "silver"] shadowColors=["darkgreen", "darkred", "darkgray"] pieThickness=20 shift=2 /> ${type}
N/A
<#macro drawBarNumberCell stats>
<@drawBarCell stats=stats />
<@drawNumberOnlyCell stats=stats />
<#macro drawNumberOnlyCell stats>
<#if stats.getPassed() gt 0> ${stats.getPassed()} <#if stats.getFailed() gt 0> ${stats.getFailed()} <#if stats.getSkipped() gt 0 > ${stats.getSkipped()}
<#function generateRowHeading data maxDepth level> <#assign cellDepth = 1 > <#assign aliasText = data.getAlias() > <#if data.depth() == 1> <#assign cellDepth = maxDepth - level + 1 > <#assign content = "${aliasText}" > <#if data.hasSubElements()> <#list data.getSubElements() as item > <#assign content = content + generateRowHeading(item, maxDepth, level + 1) > <#else> <#assign content = content + "" > <#return content> <#function generateRowHeadingFromTable table> <#assign rows = table.getRows() > <#return "" + generateRowHeading(rows, rows.depth(), 1) + ""> <#assign rowHeadings = generateRowHeadingFromTable(table) > <#assign headingRows = rowHeadings?split("") > <#list 0..(stats?size - 1) as i> <#assign row = headingRows[i]> ${row} <#list 0..(stats[i]?size - 1) as j> <@drawCell stats=stats[i][j] type=table.getDisplayType() />




© 2015 - 2024 Weber Informatics LLC | Privacy Policy