Class StepInformationLogMessage

java.lang.Object
de.qytera.qtaf.core.log.model.message.LogMessage
de.qytera.qtaf.core.log.model.message.StepInformationLogMessage
Direct Known Subclasses:
CucumberStepLogMessage

public class StepInformationLogMessage extends LogMessage
Log message for called steps
  • Constructor Details

    • StepInformationLogMessage

      public StepInformationLogMessage(String methodName, String message)
      Constructor
      Parameters:
      methodName - step name
      message - log message
  • Method Details

    • getUuid

      public UUID getUuid()
      Get uuid
      Returns:
      uuid
    • getStep

      Get step annotation
      Returns:
      step annotation
    • setStep

      public StepInformationLogMessage setStep(Step step)
      Set step annotation
      Parameters:
      step - step annotation
      Returns:
      this
    • getStepParameters

      Get step parameter list
      Returns:
      step parameter list
    • setStepParameters

      Set step parameter list
      Parameters:
      stepParameters - List of step parameters
      Returns:
      step parameter list
    • addStepParameter

      public StepInformationLogMessage addStepParameter(String name, String type, Object value)
      App step parameter
      Parameters:
      name - Name of the parameter
      type - Type of the parameter
      value - Value of the parameter
      Returns:
      step parameter
    • getStatus

      Get status
      Returns:
      status Status
    • getResult

      public Object getResult()
      Get step result
      Returns:
      step result
    • setResult

      public StepInformationLogMessage setResult(Object result)
      Set step result
      Parameters:
      result - step result
      Returns:
      this
    • getError

      public ThrowableWrapper getError()
      Get step error
      Returns:
      step error
    • hasError

      public boolean hasError()
      Check if an error occurred
      Returns:
      true if an error occurred during method execution, false otherwise
    • setError

      public StepInformationLogMessage setError(Throwable error)
      Set step error
      Parameters:
      error - step error
      Returns:
      this
    • setError

      Set step error
      Parameters:
      error - step error
      Returns:
      this
    • getType

      public String getType()
      Get type
      Returns:
      type
    • getMethodName

      public String getMethodName()
      Get methodName
      Returns:
      methodName
    • setMethodName

      public StepInformationLogMessage setMethodName(String methodName)
      Set methodName
      Parameters:
      methodName - MethodName
      Returns:
      this
    • setStatus

      Set status
      Parameters:
      status - Status
      Returns:
      this
    • getStart

      public Date getStart()
      Get start
      Returns:
      start
    • setStart

      public StepInformationLogMessage setStart(Date start)
      Set start
      Parameters:
      start - Start
      Returns:
      this
    • getEnd

      public Date getEnd()
      Get end
      Returns:
      end
    • setEnd

      public StepInformationLogMessage setEnd(Date end)
      Set end
      Parameters:
      end - End
      Returns:
      this
    • getDuration

      public long getDuration()
      Get duration
      Returns:
      duration
    • setDuration

      public StepInformationLogMessage setDuration(long duration)
      Set duration
      Parameters:
      duration - Duration
      Returns:
      this
    • getScreenshotBefore

      public String getScreenshotBefore()
      Get screenshotBefore
      Returns:
      screenshotBefore
    • setScreenshotBefore

      public StepInformationLogMessage setScreenshotBefore(String screenshotBefore)
      Set screenshotBefore
      Parameters:
      screenshotBefore - ScreenshotBefore
      Returns:
      this
    • getScreenshotAfter

      public String getScreenshotAfter()
      Get screenshotAfter
      Returns:
      screenshotAfter
    • setScreenshotAfter

      public StepInformationLogMessage setScreenshotAfter(String screenshotAfter)
      Set screenshotAfter
      Parameters:
      screenshotAfter - ScreenshotAfter
      Returns:
      this