reporter.templates.report.part.suiteSummary.vm Maven / Gradle / Ivy
The newest version!
SeleniumRobot
#if ($localResources)
#parse("reporter/templates/html.head.local.vm")
#else
#parse("reporter/templates/html.head.remote.vm")
#end
Integration tests (full logs)
Tests
Methods
Steps Count
Duration
#foreach ($infoKey in $infoKeys)
$infoKey
#end
#set ($totalPassed = 0)
#set ($totalFailed = 0)
#set ($totalSteps = 0)
#set ($testIdx = 0)
#foreach ($testContext in $tests.entrySet())
#foreach ($testResult in $testContext.value)
#set ($testIdx = $testIdx + 1)
#set ($testName = $testNames.get($testResult))
#set ($description = $descriptions.get($testResult))
#**
Compute step state for each test
*#
#set ($passedSteps = 0)
#set ($failedSteps = 0)
#set ($totalTestSteps = 0)
#set ($stepsDuration = 0)
#set ($testDuration = ($testResult.getEndMillis() - $testResult.getStartMillis()) / 1000)
#foreach ($testStep in $steps.get($testResult))
#if ($testStep.getFailed())
#set ($failedSteps = $failedSteps + 1)
#else
#set ($passedSteps = $passedSteps + 1)
#end
#set ($totalTestSteps = $totalTestSteps + 1)
#set ($stepsDuration = $stepsDuration + $testStep.getDuration() / 1000)
#end
#set ($totalPassed = $totalPassed + $passedSteps)
#set ($totalFailed = $totalFailed + $failedSteps)
#set ($totalSteps = $totalSteps + $totalTestSteps)
#if ($description.isEmpty())
#set ($description = "no description available")
#end
#if ("$!testResult.getAttribute('snapshotComparisonResult')" == "")
#set ($circle = "")
#elseif ($testResult.getAttribute("snapshotComparisonResult") == 1)
#set ($circle = "")
#elseif ($testResult.getAttribute("snapshotComparisonResult") == 3)
#set ($circle = "")
#else
#set ($circle = "")
#end
#if ($testResult.getStatus() == 1)
$testContext.key.getName()
$circle$testName
#elseif ($testResult.getStatus() == 2)
$testContext.key.getName()
$circle$testName
#else
$testContext.key.getName()
$circle$testName
#end
#if ($failedSteps == 0)
$totalTestSteps
#else
$totalTestSteps
*
#end
$stepsDuration sec.
#set ($testInfos = $infos.get($testResult))
#foreach ($infoKey in $infoKeys)
#if (!$testInfos || !$testInfos.get($infoKey))
#else
$testInfos.get($infoKey)
#end
#end
#end
#end
Total
$totalSteps