Class TestResultContainer

java.lang.Object
io.qameta.allure.model.TestResultContainer
All Implemented Interfaces:
WithLinks, Serializable

public class TestResultContainer extends Object implements Serializable, WithLinks
The model object that stores links between test results and test fixtures.

During report generation all befores and afters is added to each test result that TestResult.getUuid() matches values, specified in children.

Containers that have empty children are simply ignored.

Since:
2.0
See Also:
  • Constructor Details

    • TestResultContainer

      public TestResultContainer()
  • Method Details

    • getUuid

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

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

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

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

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

      public TestResultContainer 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 TestResultContainer setDescriptionHtml(String value)
      Sets description html.
      Parameters:
      value - the value
      Returns:
      self for method chaining
    • getStart

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

      public TestResultContainer 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 TestResultContainer setStop(Long value)
      Sets stop.
      Parameters:
      value - the value
      Returns:
      self for method chaining
    • getChildren

      public List<String> getChildren()
      Gets children.
      Returns:
      the children
    • setChildren

      public TestResultContainer setChildren(List<String> children)
      Sets children.
      Parameters:
      children - the children
      Returns:
      self for method chaining
    • getBefores

      public List<FixtureResult> getBefores()
      Gets befores.
      Returns:
      the befores
    • setBefores

      public TestResultContainer setBefores(List<FixtureResult> befores)
      Sets befores.
      Parameters:
      befores - the befores
      Returns:
      self for method chaining
    • getAfters

      public List<FixtureResult> getAfters()
      Gets afters.
      Returns:
      the afters
    • setAfters

      public TestResultContainer setAfters(List<FixtureResult> afters)
      Sets afters.
      Parameters:
      afters - the afters
      Returns:
      self for method chaining
    • getLinks

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

      public TestResultContainer setLinks(List<Link> links)
      Sets links.
      Parameters:
      links - the links
      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