reporter.templates.report.part.test.step.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())
#end
#foreach( $file in $localStep.getFiles() )
#set($log = $file.buildLog())
#end
#foreach( $har in $localStep.getHarCaptures() )
#set($harLog = $har.buildHarLog())
#end
#end
#if ($status.toString().equals("passed"))
#set ($messageType = "")
#elseif (${action.class.name.equals("com.seleniumtests.reporter.logger.TestValue")})
#elseif ($status.toString().equals("failed"))
#else
#end
$stepName - $stepDuration secs
#stepActions($step true)
#if($step.getActionException())
#end
© 2015 - 2025 Weber Informatics LLC | Privacy Policy