Class TestCaseResult

java.lang.Object
fi.meliora.testlab.ext.rest.model.ModelObject
fi.meliora.testlab.ext.rest.model.TestCaseResult
All Implemented Interfaces:
Serializable

public class TestCaseResult extends ModelObject
Encapsulates a single inbound result of a test case.
Author:
Marko Kanala
See Also:
  • Field Details

  • Constructor Details

    • TestCaseResult

      public TestCaseResult()
  • Method Details

    • getTestCaseId

      public Long getTestCaseId()
    • setTestCaseId

      public void setTestCaseId(Long testCaseId)
      Test case id for this result. Optional if mappingId is set.
      Parameters:
      testCaseId - test case id
    • getMappingId

      public String getMappingId()
    • setMappingId

      public void setMappingId(String mappingId)
      Id value to use to lookup the test case from Testlab. This value is compared against project's custom field value from custom field set in TestResult.testCaseMappingField.
      Parameters:
      mappingId - test case mapping id
    • getResult

      public int getResult()
    • setResult

      public void setResult(int result)
      Result status value for the run test case.
      Parameters:
      result - result
    • getStarted

      public long getStarted()
    • setStarted

      public void setStarted(Long started)
      Timestamp of when this test case was started.
      Parameters:
      started - started
    • getRun

      public Long getRun()
    • setRun

      public void setRun(Long run)
      Timestamp of when this test case was completed.
      Parameters:
      run - run
    • getRunById

      public Long getRunById()
    • setRunById

      public void setRunById(Long runById)
      Id of the user who ran this test case. Optional.
      Parameters:
      runById - user id
    • getRunBy

      public String getRunBy()
    • setRunBy

      public void setRunBy(String runBy)
      Name of the user who ran this test case. Optional.
      Parameters:
      runBy - user name
    • getComment

      public String getComment()
      Comment (i.e. error description) for this result. This value is used when adding issues for this result.
      Returns:
      comment
    • setComment

      public void setComment(String comment)
    • getSteps

      public List<TestCaseResultStep> getSteps()
      Optional execution steps and their results for this result.
      Returns:
      steps
    • setSteps

      public void setSteps(List<TestCaseResultStep> steps)