Interface TestClassResult
- All Superinterfaces:
BambooIdProvider
,BambooObject
,Comparable<TestClassResult>
,NameProvider
,TestClassResultDescriptor
- All Known Implementing Classes:
TestClassResultImpl
public interface TestClassResult
extends TestClassResultDescriptor, Comparable<TestClassResult>, BambooObject
Represents a run of a test class. It groups and provides summary information for testCaseResults
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addTestCase
(TestCaseResult testCaseResult) Add a testCase to this TestClassResult (to this group)long
The total running time (in milliseconds) for this class (cumulation of all TestCaseResults durations)int
int
int
@NotNull List<TestCaseResult>
Deprecated.@NotNull Set<TestCaseResult>
Retrieve the TestCaseResults contained within this TestClassResultvoid
add 1 to the current failed test countvoid
add 1 to the current skipped test count.void
add 1 to the current successful test countvoid
setDuration
(long duration) Set how long this testClassResult took.void
setFailedTestCount
(int failedTestCount) Set the number of failing tests in this groupvoid
setSkippedTestCount
(int skippedTestCount) Set the number of skipped tests in this groupvoid
setSuccessfulTestCount
(int successfulTestCount) Set the number of successful tests in this groupMethods inherited from interface com.atlassian.bamboo.core.BambooIdProvider
getId
Methods inherited from interface com.atlassian.bamboo.core.BambooObject
setId
Methods inherited from interface java.lang.Comparable
compareTo
Methods inherited from interface com.atlassian.bamboo.resultsummary.tests.TestClassResultDescriptor
getName, getShortName
-
Method Details
-
getTestClass
TestClass getTestClass()- Returns:
- The associated TestClass this is a 'run' of.
-
getTestCaseResults
Deprecated.since 6.9 returns immutable list usegetTestCaseResultsSet()
Retrieve the TestCaseResults contained within this TestClassResult- Returns:
- the TestCaseResults contained within this TestClassResult
-
getTestCaseResultsSet
Retrieve the TestCaseResults contained within this TestClassResult- Returns:
- the TestCaseResults contained within this TestClassResult
-
addTestCase
Add a testCase to this TestClassResult (to this group)- Parameters:
testCaseResult
- to add
-
getDuration
long getDuration()The total running time (in milliseconds) for this class (cumulation of all TestCaseResults durations)- Returns:
- total running time for this TestClass
-
setDuration
void setDuration(long duration) Set how long this testClassResult took.- Parameters:
duration
- - time in milliseconds
-
getFailedTestCount
int getFailedTestCount()- Returns:
- Number of failed TestCaseResults in this TestClassResult
-
setFailedTestCount
void setFailedTestCount(int failedTestCount) Set the number of failing tests in this group- Parameters:
failedTestCount
- - number of failed tests in this group
-
getSuccessfulTestCount
int getSuccessfulTestCount()- Returns:
- Number of successful TestCaseResults in this TestClassResult
-
setSuccessfulTestCount
void setSuccessfulTestCount(int successfulTestCount) Set the number of successful tests in this group- Parameters:
successfulTestCount
- - number of successful tests in this group
-
incrementSuccessfulTestCount
void incrementSuccessfulTestCount()add 1 to the current successful test count -
incrementFailedTestCount
void incrementFailedTestCount()add 1 to the current failed test count -
getBuildResultsSummary
BuildResultsSummary getBuildResultsSummary()- Returns:
- the BuildResultsSummary this test class result is associated with.
-
incrementSkippedTestCount
void incrementSkippedTestCount()add 1 to the current skipped test count. -
getSkippedTestCount
int getSkippedTestCount()- Returns:
- Number of skipped TestCaseResults in this TestClassResult.
-
setSkippedTestCount
void setSkippedTestCount(int skippedTestCount) Set the number of skipped tests in this group- Parameters:
skippedTestCount
- - number of skipped tests in this group
-
getTestCaseResultsSet()