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

    • getStep

      Get step annotation.
      Returns:
      step annotation
    • setStep

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

      public StepInformationLogMessage setStepName(String stepName)
      Set step name.
      Parameters:
      stepName - step name
      Returns:
      this
    • setStepDescription

      public StepInformationLogMessage setStepDescription(String stepDescription)
      Set step description.
      Parameters:
      stepDescription - step description
      Returns:
      this
    • addStepParameter

      public <T> void addStepParameter(String name, T value)
      Add a generic step parameter.
      Type Parameters:
      T - the type of the value object
      Parameters:
      name - the name of the parameter
      value - the value of the parameter
    • 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
    • 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
    • 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
    • getStepParameters

      public List<StepInformationLogMessage.StepParameter> getStepParameters()
      The list of the step's method parameters.
    • setStepParameters

      public void setStepParameters(List<StepInformationLogMessage.StepParameter> stepParameters)
      The list of the step's method parameters.