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

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

Go to download

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

There is a newer version: 1.3.5
Show 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 scenarios> <#macro drawScenario scenario>
 ${item.getAlias()}${item.getAlias()}
    <#assign index = 0> <#assign prevFeature = ""> <#assign first = true> <#list scenarios as scenario> <#if scenario.getFeature().getName() != prevFeature> <#if first> <#assign first=false> <#else>
  • Feature: ${scenario.getFeature().getName()}
    • Scenario: ${scenario.getName()}
    • <#assign prevFeature = scenario.getFeature().getName() > <#assign index++ > <#if !first>
  • ${scenario.getDescription()}
    <#list scenario.getSteps() as step> <#if step.getDocString()?has_content> <#if step.getRows()?has_content>
    ${step.getKeyword()} ${step.getName()}
    ${step.getDocString()}
    <#list step.getRows() as row> <#list row as cell >
    ${cell}
    <#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..(scenarios?size - 1) as i> <#assign row = headingRows[i]> ${row} <#list 0..(scenarios[i]?size - 1) as j> <@drawCell scenarios=scenarios[i][j] />




    © 2015 - 2024 Weber Informatics LLC | Privacy Policy