templates.macros.json.steps.vm Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of cucumber-reporting Show documentation
Show all versions of cucumber-reporting Show documentation
Provides pretty html reports for Cucumber. It works by generating html from the cucumber json file.
#macro(includeSteps, $steps)
#set($stepsId = $counter.next())
#includeBrief("Steps", $element.getStepsStatus(), "", true)
#foreach($step in $element.getSteps())
#includeBrief($step.getKeyword(), $step.getResult().getStatus(), $step.getName(), false, $step.getResult())
#set($isPassed = $step.getResult().getStatus().isPassed())
#includeMessage($step.getResult().getErrorMessageTitle(), $step.getResult().getErrorMessage(), $isPassed)
#if (!$step.getRows().isEmpty())
#foreach($row in $step.getRows())
#foreach($cell in $row.getCells())
$cell
#end
#end
#end
#includeDocString($step.getDocString())
#includeOutput($step.getOutputs(), $isPassed)
#includeEmbeddings($step.getEmbeddings())
#end
#end