Interface TestClass
- All Superinterfaces:
BambooIdProvider
,BambooObject
,Comparable<TestClass>
- All Known Implementing Classes:
TestClassImpl
A grouping of TestCases.
Belongs to a plan
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Add a testCase to this group@NotNull TestClass
copyTestClass
(@NotNull Plan plan) Creates a copy of theTestClass
.long
Get id of the master of the job this test class belongs to.getName()
The real name of the test classgetPlan()
Get the plan that this test class belongs to.Get the short name for this class for the UI@NotNull Collection<TestCase>
Retrieve the TestCases that are part of this class.Deprecated.Methods 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
-
Method Details
-
addTest
Add a testCase to this group- Parameters:
testCase
- to add.
-
getName
String getName()The real name of the test class- Returns:
- real name of the test class
-
getTestCases
Deprecated.since 8.1 use {getTestCaseCollection()
} instead.Retrieve the TestCases that are part of this class. Note that this method performs a copy, therefore it's not recommended for performance reason.- Returns:
- the TestCases that are part of this class.
-
getTestCaseCollection
Retrieve the TestCases that are part of this class.- Returns:
- the TestCases that are part of this class.
-
getPlan
Plan getPlan()Get the plan that this test class belongs to. Since 6.9 returns chain instead of job.- Returns:
- the plan that this test class belongs to
-
getMasterJobId
long getMasterJobId()Get id of the master of the job this test class belongs to. Use together withgetPlan()
to find the actual branched job this class belongs to. -
getShortName
String getShortName()Get the short name for this class for the UI- Returns:
- the name of this class without preceding packages.
-
copyTestClass
- Parameters:
plan
-- Returns:
- testClass
-
getTestCaseCollection()
} instead.