Class StepResult

java.lang.Object
io.qameta.allure.model.StepResult
All Implemented Interfaces:
ExecutableItem, WithAttachments, WithParameters, WithStatus, WithStatusDetails, WithSteps, Serializable

public class StepResult extends Object implements Serializable, ExecutableItem
The model object that stores information about test steps that was run.
Since:
2.0
See Also:
  • Constructor Details

    • StepResult

      public StepResult()
  • Method Details

    • getName

      public String getName()
      Gets name.
      Returns:
      the name
    • setName

      public StepResult setName(String value)
      Sets name.
      Parameters:
      value - the value
      Returns:
      self for method chaining
    • getStatus

      public Status getStatus()
      Gets status.
      Specified by:
      getStatus in interface WithStatus
      Returns:
      the status
    • setStatus

      public StepResult setStatus(Status value)
      Sets status.
      Parameters:
      value - the value
      Returns:
      self for method chaining
    • getStatusDetails

      public StatusDetails getStatusDetails()
      Gets status details.
      Specified by:
      getStatusDetails in interface WithStatusDetails
      Returns:
      the status details
    • setStatusDetails

      public StepResult setStatusDetails(StatusDetails value)
      Sets status details.
      Parameters:
      value - the value
      Returns:
      self for method chaining
    • getStage

      public Stage getStage()
      Gets stage.
      Returns:
      the stage
    • setStage

      public StepResult setStage(Stage value)
      Sets stage.
      Parameters:
      value - the value
      Returns:
      self for method chaining
    • getDescription

      public String getDescription()
      Gets description.
      Returns:
      the description
    • setDescription

      public StepResult setDescription(String value)
      Sets description.
      Parameters:
      value - the value
      Returns:
      self for method chaining
    • getDescriptionHtml

      public String getDescriptionHtml()
      Gets description html.
      Returns:
      the description html
    • setDescriptionHtml

      public StepResult setDescriptionHtml(String value)
      Sets description html.
      Parameters:
      value - the value
      Returns:
      self for method chaining
    • getSteps

      public List<StepResult> getSteps()
      Gets steps.
      Specified by:
      getSteps in interface WithSteps
      Returns:
      the steps
    • setSteps

      public StepResult setSteps(List<StepResult> steps)
      Sets steps.
      Parameters:
      steps - the steps
      Returns:
      self for method chaining
    • getAttachments

      public List<Attachment> getAttachments()
      Gets attachments.
      Specified by:
      getAttachments in interface WithAttachments
      Returns:
      the attachments
    • setAttachments

      public StepResult setAttachments(List<Attachment> attachments)
      Sets attachments.
      Parameters:
      attachments - the attachments
      Returns:
      self for method chaining
    • getParameters

      public List<Parameter> getParameters()
      Gets parameters.
      Specified by:
      getParameters in interface WithParameters
      Returns:
      the parameters
    • setParameters

      public StepResult setParameters(List<Parameter> parameters)
      Sets parameters.
      Parameters:
      parameters - the parameters
      Returns:
      self for method chaining
    • getStart

      public Long getStart()
      Gets start.
      Returns:
      the start
    • setStart

      public StepResult setStart(Long value)
      Sets start.
      Parameters:
      value - the value
      Returns:
      self for method chaining
    • getStop

      public Long getStop()
      Gets stop.
      Returns:
      the stop
    • setStop

      public StepResult setStop(Long value)
      Sets stop.
      Parameters:
      value - the value
      Returns:
      self for method chaining
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object