com.atlassian.bamboo.resultsummary.tests.TestCase |
Known Indirect Subclasses
|
Class Overview
Represents a test in a plan. A TestCase belongs to a TestClass
. And when this test is run it will produce a TestCaseResult
Public Methods
@NotNull
public
TestCase
copyTestCase
()
public
long
getAverageDuration
()
Returns
- the average duration in milliseconds of this test case for all test runs.
public
long
getAverageDurationInSeconds
()
Returns
- the average duration in seconds of this test case for all test runs.
public
int
getFirstRanBuildNumber
()
Returns
- the build number that this test was first run in.
public
int
getLastRanBuildNumber
()
Returns
- the most recent build that this test was part of
public
String
getMethodName
()
Returns a sentence describing the test, derived from the method name of the test.
public
String
getName
()
Returns
- The true name of the test case
public
int
getNumberOfFailedRuns
()
Returns
- the number of times this test has run and failed
public
int
getNumberOfSuccessRuns
()
Returns
- the number of times this test has run successfully
public
double
getSuccessPercentage
()
Returns
- how successful this test case has been. (success runs / total runs)
public
TestClass
getTestClass
()
Returns
- the TestClass the testcase belongs to
public
int
getTotalTestRuns
()
Returns
- the total number of times this test has run.
public
boolean
isQuarantined
()
public
void
setAverageDuration
(long averageDuration)
public
void
setFirstRanBuildNumber
(int firstRanBuildNumber)
public
void
setLastRanBuildNumber
(int lastRanBuildNumber)
public
void
setNumberOfFailedRuns
(int numberOfFailedRuns)
public
void
setNumberOfSuccessRuns
(int numberOfSuccessRuns)
public
void
setQuarantineStatistics
(String quarantineUser, Date quarantineDate)
public
void
setTestClass
(TestClass testClass)
Set the testClass this test case belongs to
Parameters
testClass
| the test case belongs to
|