com.atlassian.bamboo.build
Interface TestManager

All Known Implementing Classes:
DefaultTestManager

public interface TestManager


Field Summary
static java.lang.String KEY_ALL_BUILDS
           
static java.lang.String KEY_LAST_25_BUILDS
           
static java.lang.String KEY_LAST_30_DAYS
           
static java.lang.String KEY_LAST_7_DAYS
           
static java.lang.String KEY_LAST_90_DAYS
           
 
Method Summary
 java.util.Map getAllTestCases(Build build, TestCaseFilter filter)
          A Map all test cases which was ever historically present.
 java.util.List getLongestRunningTests(Build build, int number, TestCaseFilter filter)
           
 java.util.List getLongestTimeToFixTests(Build build, int number, TestCaseFilter filter)
           
 java.util.List getMostFailingTests(Build build, int number, TestCaseFilter filter)
          Get a list of the top X most failing test cases historically.
 int getTestBrokenIn(TestResults testResults, Build build, int minBuildNumber, int buildNumber)
          Returns the build number that the test has found to be first failing before the passed buildNumber
 TestCase getTestCase(Build build, java.lang.String key, TestCaseFilter filter)
          Get a TestCase object representing the test case
 TestCaseFilter getTestCaseFilter(java.lang.String key, Build build)
           
 

Field Detail

KEY_LAST_7_DAYS

static final java.lang.String KEY_LAST_7_DAYS
See Also:
Constant Field Values

KEY_LAST_30_DAYS

static final java.lang.String KEY_LAST_30_DAYS
See Also:
Constant Field Values

KEY_LAST_90_DAYS

static final java.lang.String KEY_LAST_90_DAYS
See Also:
Constant Field Values

KEY_ALL_BUILDS

static final java.lang.String KEY_ALL_BUILDS
See Also:
Constant Field Values

KEY_LAST_25_BUILDS

static final java.lang.String KEY_LAST_25_BUILDS
See Also:
Constant Field Values
Method Detail

getTestCase

TestCase getTestCase(Build build,
                     java.lang.String key,
                     TestCaseFilter filter)
Get a TestCase object representing the test case

Parameters:
build -
key -
Returns:
TestCase

getAllTestCases

java.util.Map getAllTestCases(Build build,
                              TestCaseFilter filter)
                              throws java.io.IOException
A Map all test cases which was ever historically present. Each test case is one with a unique test suite and method name. The Key of map is the test case, in the form of: a.c.X:testFoo

Parameters:
build -
Returns:
Map of test cases. Key is the key of the test case. the value is the actual TestCase object.
Throws:
java.io.IOException

getTestBrokenIn

int getTestBrokenIn(TestResults testResults,
                    Build build,
                    int minBuildNumber,
                    int buildNumber)
                    throws java.io.IOException
Returns the build number that the test has found to be first failing before the passed buildNumber

Parameters:
testResults - - the test results to search for
build - - the build to be queried
minBuildNumber - - the minimum build number to search from. Inclusive
buildNumber - - the build number to search back from. Exclusive
Returns:
the build number where the test was first broken in. -1 if none can be found
Throws:
java.io.IOException

getMostFailingTests

java.util.List getMostFailingTests(Build build,
                                   int number,
                                   TestCaseFilter filter)
                                   throws java.io.IOException
Get a list of the top X most failing test cases historically.

Parameters:
build -
number - - the top X number failing test cases
Returns:
List of TestCase objects representing this.
Throws:
java.io.IOException

getTestCaseFilter

TestCaseFilter getTestCaseFilter(java.lang.String key,
                                 Build build)

getLongestRunningTests

java.util.List getLongestRunningTests(Build build,
                                      int number,
                                      TestCaseFilter filter)
                                      throws java.io.IOException
Throws:
java.io.IOException

getLongestTimeToFixTests

java.util.List getLongestTimeToFixTests(Build build,
                                        int number,
                                        TestCaseFilter filter)
                                        throws java.io.IOException
Throws:
java.io.IOException


Copyright © 2008 Atlassian Pty Ltd. All Rights Reserved.