Class TestResult

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

public class TestResult extends Object implements Serializable, ExecutableItem, WithLinks
The model object that stores information about test that was run. Test results are the main entity of Allure.
Since:
2.0
See Also:
  • Constructor Details

    • TestResult

      public TestResult()
  • Method Details

    • getUuid

      public String getUuid()
      Gets uuid.
      Returns:
      the uuid
    • setUuid

      public TestResult setUuid(String value)
      Sets uuid.
      Parameters:
      value - the value
      Returns:
      self for method chaining.
    • getHistoryId

      public String getHistoryId()
      Gets history id.
      Returns:
      the history id
    • setHistoryId

      public TestResult setHistoryId(String value)
      Sets history id.
      Parameters:
      value - the value
      Returns:
      self for method chaining.
    • getTestCaseId

      public String getTestCaseId()
      Gets test case id.
      Returns:
      the test case id
    • setTestCaseId

      public TestResult setTestCaseId(String value)
      Sets test case id.
      Parameters:
      value - the value
      Returns:
      self for method chaining.
    • getTestCaseName

      public String getTestCaseName()
      Gets test case name.
      Returns:
      the test case name
    • setTestCaseName

      public TestResult setTestCaseName(String value)
      Sets test case name.
      Parameters:
      value - the value
      Returns:
      self for method chaining.
    • getFullName

      public String getFullName()
      Gets full name.
      Returns:
      the full name
    • setFullName

      public TestResult setFullName(String value)
      Sets full name.
      Parameters:
      value - the value
      Returns:
      self for method chaining.
    • getLabels

      public List<Label> getLabels()
      Gets labels.
      Returns:
      the labels
    • setLabels

      public TestResult setLabels(List<Label> labels)
      Sets labels.
      Parameters:
      labels - the labels
      Returns:
      self for method chaining.
    • getLinks

      public List<Link> getLinks()
      Gets links.
      Specified by:
      getLinks in interface WithLinks
      Returns:
      the links
    • setLinks

      public TestResult setLinks(List<Link> links)
      Sets links.
      Parameters:
      links - the links
      Returns:
      self for method chaining.
    • getName

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

      public TestResult 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 TestResult 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 TestResult 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 TestResult 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 TestResult 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 TestResult 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 TestResult 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 TestResult 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 TestResult 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 TestResult 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 TestResult 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