Class TestResult

java.lang.Object
ru.testit.models.TestResult
All Implemented Interfaces:
Serializable, ResultWithAttachments, ResultWithSteps

public class TestResult extends Object implements ResultWithSteps, ResultWithAttachments, Serializable
The model object that stores information about test that was run.
See Also:
  • Constructor Details

    • TestResult

      public TestResult()
  • Method Details

    • getUuid

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

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

      public String getExternalId()
      Gets external id.
      Returns:
      the external id
    • setExternalId

      public TestResult setExternalId(String externalId)
      Sets external id.
      Parameters:
      externalId - the value
      Returns:
      self for method chaining
    • getWorkItemId

      public List<String> getWorkItemId()
      Gets work item id.
      Returns:
      the work item id
    • setWorkItemId

      public TestResult setWorkItemId(List<String> workItemIds)
      Sets work item id.
      Parameters:
      workItemIds - the value
      Returns:
      self for method chaining
    • getClassName

      public String getClassName()
      Gets class name.
      Returns:
      the class name
    • setClassName

      public TestResult setClassName(String className)
      Sets class name.
      Parameters:
      className - the value
      Returns:
      self for method chaining
    • getSpaceName

      public String getSpaceName()
      Gets space name.
      Returns:
      the space name
    • setSpaceName

      public TestResult setSpaceName(String spaceName)
      Sets space name.
      Parameters:
      spaceName - the value
      Returns:
      self for method chaining
    • getAttachments

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

      public TestResult setAttachments(List<String> attachments)
      Sets attachments.
      Parameters:
      attachments - the attachments
      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
    • getLinkItems

      public List<LinkItem> getLinkItems()
      Gets links.
      Returns:
      the links
    • setLinkItems

      public TestResult setLinkItems(List<LinkItem> linkItems)
      Sets links.
      Parameters:
      linkItems - the steps
      Returns:
      self for method chaining
    • getResultLinks

      public List<LinkItem> getResultLinks()
      Gets result links.
      Returns:
      the links
    • setResultLinks

      public TestResult setResultLinks(List<LinkItem> resultLinks)
      Sets result links.
      Parameters:
      resultLinks - the test
      Returns:
      self for method chaining
    • getMessage

      public String getMessage()
      Gets message.
      Returns:
      the message
    • setMessage

      public TestResult setMessage(String message)
      Sets message.
      Parameters:
      message - the message
      Returns:
      self for method chaining
    • getTitle

      public String getTitle()
      Gets title.
      Returns:
      the title
    • setTitle

      public TestResult setTitle(String title)
      Sets title.
      Parameters:
      title - the value
      Returns:
      self for method chaining
    • getName

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

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

      public ItemStatus getItemStatus()
      Gets item status.
      Returns:
      the item status
    • setItemStatus

      public TestResult setItemStatus(ItemStatus itemStatus)
      Sets item status.
      Parameters:
      itemStatus - the value
      Returns:
      self for method chaining
    • getItemStage

      public ItemStage getItemStage()
      Gets item stage.
      Returns:
      the item stage
    • setItemStage

      public TestResult setItemStage(ItemStage itemStage)
      Sets item stage.
      Parameters:
      itemStage - the value
      Returns:
      self for method chaining
    • getDescription

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

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

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

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

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

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

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

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

      public Throwable getThrowable()
      Gets throwable.
      Returns:
      the throwable
    • setThrowable

      public TestResult setThrowable(Throwable throwable)
      Sets throwable.
      Parameters:
      throwable - the value
      Returns:
      self for method chaining
    • getParameters

      public Map<String,String> getParameters()
      Gets parameters.
      Returns:
      the parameters
    • setParameters

      public TestResult setParameters(Map<String,String> parameters)
      Sets parameters.
      Parameters:
      parameters - the value
      Returns:
      self for method chaining
    • getAutomaticCreationTestCases

      public boolean getAutomaticCreationTestCases()
      Gets automaticCreationTestCases.
      Returns:
      the automaticCreationTestCases
    • setAutomaticCreationTestCases

      public TestResult setAutomaticCreationTestCases(boolean automaticCreationTestCases)
      Sets automaticCreationTestCases.
      Parameters:
      automaticCreationTestCases - the value
      Returns:
      self for method chaining
    • toString

      public String toString()
      Overrides:
      toString in class Object