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

reporter.templates.report.part.test.step.vm Maven / Gradle / Ivy

There is a newer version: 4.23.18
Show newest version
#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)
      $action.getName()
      #set ($messageType = "") #elseif (${action.class.name.equals("com.seleniumtests.reporter.logger.TestValue")})
      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())
      $snapshotLog
      #end #foreach( $file in $localStep.getFiles() ) #set($log = $file.buildLog())
      $log
      #end #foreach( $har in $localStep.getHarCaptures() ) #set($harLog = $har.buildHarLog())
      $harLog
      #end
    #end #if ($status.toString().equals("passed"))
    #elseif ($status.toString().equals("failed"))
    #else
    #end
    $stepName - $stepDuration secs
    #stepActions($step true) #if($step.getActionException())
    #set($exceptionMessage = $step.getActionExceptionMessage()) $exceptionMessage
    #end




    © 2015 - 2025 Weber Informatics LLC | Privacy Policy