Class TestCaseResult
java.lang.Object
fi.meliora.testlab.ext.rest.model.ModelObject
fi.meliora.testlab.ext.rest.model.TestCaseResult
- All Implemented Interfaces:
Serializable
Encapsulates a single inbound result of a test case.
- Author:
- Marko Kanala
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
static final int
static final int
static final int
static final int
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionComment (i.e.int
getRun()
getRunBy()
long
getSteps()
Optional execution steps and their results for this result.void
setComment
(String comment) void
setMappingId
(String mappingId) Id value to use to lookup the test case from Testlab.void
setResult
(int result) Result status value for the run test case.void
Timestamp of when this test case was completed.void
Name of the user who ran this test case.void
setRunById
(Long runById) Id of the user who ran this test case.void
setStarted
(Long started) Timestamp of when this test case was started.void
setSteps
(List<TestCaseResultStep> steps) void
setTestCaseId
(Long testCaseId) Test case id for this result.Methods inherited from class fi.meliora.testlab.ext.rest.model.ModelObject
toString, toString, toStringCut
-
Field Details
-
RESULT_NOTRUN
public static final int RESULT_NOTRUN- See Also:
-
RESULT_PASS
public static final int RESULT_PASS- See Also:
-
RESULT_FAIL
public static final int RESULT_FAIL- See Also:
-
RESULT_SKIP
public static final int RESULT_SKIP- See Also:
-
RESULT_BLOCK
public static final int RESULT_BLOCK- See Also:
-
-
Constructor Details
-
TestCaseResult
public TestCaseResult()
-
-
Method Details
-
getTestCaseId
-
setTestCaseId
Test case id for this result. Optional if mappingId is set.- Parameters:
testCaseId
- test case id
-
getMappingId
-
setMappingId
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
Timestamp of when this test case was started.- Parameters:
started
- started
-
getRun
-
setRun
Timestamp of when this test case was completed.- Parameters:
run
- run
-
getRunById
-
setRunById
Id of the user who ran this test case. Optional.- Parameters:
runById
- user id
-
getRunBy
-
setRunBy
Name of the user who ran this test case. Optional.- Parameters:
runBy
- user name
-
getComment
Comment (i.e. error description) for this result. This value is used when adding issues for this result.- Returns:
- comment
-
setComment
-
getSteps
Optional execution steps and their results for this result.- Returns:
- steps
-
setSteps
-