reporter.templates.report.test.vm Maven / Gradle / Ivy
#macro( stepActions $localStep $directCall)
#if (!$directCall)
#set ($localStepException = $localStep.getActionExceptionMessage())
#if ($localStep.getFailed() && $localStepException)
$localStep.getName()
$localStep.getActionExceptionMessage()
#else
$localStep.getName()
#end
#end
#foreach( $action in $localStep.getStepActions() )
#if (${action.class.name.equals("com.seleniumtests.reporter.logger.TestStep")})
#stepActions($action false)
#elseif (${action.class.name.equals("com.seleniumtests.reporter.logger.TestMessage")})
#set ($messageType = $action.getMessageType().toString().toLowerCase())
#set ($messageType = "message-" + $messageType)
Key
Message
Value
$action.getName()
$action.getMessage()
$action.getValue()
#else
#set ($actionException = $action.getActionExceptionMessage())
#if ($action.getFailed() && $actionException)
- $action.getName()
$action.getActionExceptionMessage()
#else
- $action.getName()
#end
#end
#end
#foreach( $snapshot in $localStep.getSnapshots() )
#set($snapshotLog = $snapshot.buildScreenshotLog())
#set($displaySnapshot = $snapshot.isDisplayInReport())
#if ($displaySnapshot)
#foreach( $file in $localStep.getFiles() )
#set($log = $file.buildLog())
#end
#end
#end
#foreach( $har in $localStep.getHarCaptures() )
#set($harLog = $har.buildHarLog())
#end
#end
#set ($messageType = "")
#elseif (${action.class.name.equals("com.seleniumtests.reporter.logger.TestValue")})
SeleniumRobot
#if ($localResources)
#parse("reporter/templates/html.head.local.vm")
#else
#parse("reporter/templates/html.head.remote.vm")
#end
#if ($header == "passed")
#elseif ($header == "failed")
#else
#end
Test Details - $testName
#if ($description && !$description.isEmpty())
Description
$description
#end
#if ($applicationType && !$applicationType.isEmpty())
Application type
$applicationType
Application
$application
#end
#if ($gridnode)
Grid node
$gridnode
#end
#if ($testInfos)
#foreach ($testInfo in $testInfos.entrySet())
$testInfo.key
$testInfo.value
#end
#end
#foreach ($step in $steps)
#set ($stepName = $step.get(0))
#set ($stepStatus = $step.get(1))
#set ($stepDuration = $step.get(2))
#set ($stepObject = $step.get(3))
#set ($stepErrorCause = $step.get(4))
#set ($stepErrorCauseDetails = $step.get(5))
#set ($stepVideoTimeStamp = $step.get(6))
#if ($stepStatus.toString().equals("passed"))
#elseif ($stepStatus.toString().equals("failed"))
#elseif ($stepStatus.toString().equals("warning"))
#else
#end
$stepName - $stepDuration secs
#if ($stepVideoTimeStamp)
$stepVideoTimeStamp s
#end
#if ($stepErrorCause)
Possibly caused by $stepErrorCause: $stepErrorCauseDetails
#end
#stepActions($stepObject true)
#if($stepObject.getActionException())
#end
#end
#if ($status.toString().equals("passed"))
#elseif ($status.toString().equals("failed"))
#else
#end
Execution logs
#if ($stacktrace)
#foreach($line in $logs)
$line
#end
#end
#if ($title)
$title
#foreach($line in $files)
#end
#end
#if ($snapshots)
#end
#if ($snapshots)
#end
© 2015 - 2025 Weber Informatics LLC | Privacy Policy