Interface TestClass

All Superinterfaces:
BambooIdProvider, BambooObject, Comparable<TestClass>
All Known Implementing Classes:
TestClassImpl

public interface TestClass extends BambooObject, Comparable<TestClass>
A grouping of TestCases. Belongs to a plan
  • Method Details

    • addTest

      void addTest(TestCase testCase)
      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 List<TestCase> 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

      @NotNull @NotNull Collection<TestCase> 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 with getPlan() 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

      @NotNull @NotNull TestClass copyTestClass(@NotNull @NotNull Plan plan)
      Creates a copy of the TestClass. Includes all child TestCases but not the Plan
      Parameters:
      plan -
      Returns:
      testClass