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

reporter.templates.report.test.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()) #set($displaySnapshot = $snapshot.isDisplayInReport()) #if ($displaySnapshot)
      $snapshotLog
      #end #end
      #foreach( $file in $localStep.getFiles() ) #set($log = $file.buildLog())
      $log
      #end #foreach( $har in $localStep.getHarCaptures() ) #set($harLog = $har.buildHarLog())
      $harLog
      #end
    #end 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()) #end #if ($applicationType && !$applicationType.isEmpty()) #end #if ($gridnode) #end #if ($testInfos) #foreach ($testInfo in $testInfos.entrySet()) #end #end
    Description $description
    Application type $applicationType
    Application $application
    Grid node $gridnode
    $testInfo.key $testInfo.value
    #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())
    #set($exceptionMessage = $stepObject.getActionExceptionMessage()) $exceptionMessage
    #end
    #end #if ($status.toString().equals("passed"))
    #elseif ($status.toString().equals("failed"))
    #else
    #end
    Execution logs
    #if ($stacktrace)
    #set ($lineIdx = 0) #foreach($line in $stacktrace) #if ($lineIdx == 0)
    $line
    #else
    $line
    #end #set ($lineIdx = $lineIdx + 1) #end
    #end
    #foreach($line in $logs)
    $line
    #end
    #if ($title)
    $title
    #foreach($line in $files) #end
    #end
    #if ($snapshots)
    #end
    #if ($snapshots) #end




    © 2015 - 2025 Weber Informatics LLC | Privacy Policy