Method Summary
All Methods Instance Methods Abstract Methods
long
Count all TestCaseResultErrors
long
Count all TestCaseResults
Find a specific testCaseResult by id
Retrieve the last n failing testResults for this given test case, latest first.
Retrieve the last n failing testResults for this given test case, but only those that occurred within the provided
build results.
Provide a list of the quarantined tests for a build result
Provide a list of the quarantined tests for a chain result
Returns a list of wrapped TestCaseResult and BuildResultSummary for a particular test case, for use by e.g.
Returns a list of wrapped TestCaseResult and BuildResultSummary for a particular test case and contained within a specific
span of build result summaries.
Find the build in which the given test has been successful since.
Find a specific run of a testCase
Return a list of TestCaseResults for a given TestCase
Return a list of TestCaseResults for a given TestCase constrained to a specific set of Build Result Summaries
Retrieves a list of testCaseResults for a BuildResultSummary based on their delta state (e.g BROKEN, FIXED)
Retrieves a list of testCaseResults for a BuildResultSummary based on their state (e.f FAILED or SUCCESS).
Retrieves a list of all testCaseResults for a BuildResultSummary
Retrieves a list of testCaseResults for a ChainResultSummary based on their delta state (e.g BROKEN, FIXED)
Retrieves a list of testCaseResults for a ChainResultSummary based on their
TestState
long
Scroll through and execute function for each of TestCaseResultErrors
Objects passed to function are not fully initialized.
long
Scroll through and execute function for each of TestCaseResults
Objects passed to function are not fully initialized.
Method Details
findById
Find a specific testCaseResult by id
Parameters:
id
- of the test you want to find
Returns:
the testCaseResult corresponding to the id provided.
getTestsForBuildResultByState
Retrieves a list of testCaseResults for a BuildResultSummary based on their state (e.f FAILED or SUCCESS).
To be used whenever pagination is required.
Parameters:
summary
- the BuildResultsSummary to get the tests for
state
- the TestState to search for.
firstResult
- the first record to be retrieved. Negative values are treated as 0.
maxCount
- maximum amount of records to be retrieved. Values less than or equal to 0 are ignored.
Returns:
a list of testCaseResults for a BuildResultSummary with the given state
getTestsForBuildResultByDeltaState
Retrieves a list of testCaseResults for a BuildResultSummary based on their delta state (e.g BROKEN, FIXED)
Parameters:
summary
- the BuildResultsSummary to get the tests for
deltaState
- the TestDeltaState to search for.
firstResult
- the first record to be retrieved. Negative values are treated as 0.
maxCount
- maximum amount of records to be retrieved. Values less than or equal to 0 are ignored.
Returns:
a list of testCaseResults for a BuildResultSummary with the given delta state
getTestsForChainResultByDeltaStates
Retrieves a list of testCaseResults for a ChainResultSummary based on their delta state (e.g BROKEN, FIXED)
Parameters:
summary
-
deltaStates
-
firstResult
- - index of the first result
maxCount
- - maximum amount of records returned
Returns:
testCaseResults
getTestsForChainResultByState
Retrieves a list of testCaseResults for a ChainResultSummary based on their
TestState
Parameters:
summary
-
testState
-
firstResult
-
maxCount
-
Returns:
testCaseResults
getQuarantinedTestCasesForChainResult
Provide a list of the quarantined tests for a chain result
Parameters:
chainResultsSummary
- to search for the tests.
Returns:
List of TestCases
getTestsForBuildResultSummary
Retrieves a list of all testCaseResults for a BuildResultSummary
Parameters:
summary
- the BuildResultsSummary to get the tests for
Returns:
a list of all testCaseResults for the BuildResultSummary
getQuarantinedTestCasesForBuildResult
Provide a list of the quarantined tests for a build result
Parameters:
buildResultsSummary
- to search for the tests.
Returns:
List of TestCases
getResultStatisticsForTestCase
Returns a list of wrapped TestCaseResult and BuildResultSummary for a particular test case, for use by e.g. graphs
Parameters:
testCase
- to find the results for
Returns:
list of $TestCaseResultStatisticsProvider
for each TestCaseResult found for the TestCase
getResultStatisticsForTestCaseAndBuilds
Returns a list of wrapped TestCaseResult and BuildResultSummary for a particular test case and contained within a specific
span of build result summaries.
For use by e.g. graphs
Parameters:
testCase
- to find the results for
buildResults
- to contain search to (this list must not be empty)
Returns:
list of $TestCaseResultStatisticsProvider
for each TestCaseResult found for the TestCase
getTestCaseResultsForTestCase
Return a list of TestCaseResults for a given TestCase
Parameters:
testCase
- to look for
Returns:
list of TestCaseResult
for the given TestCase
getTestCaseResultsForTestCaseAndBuilds
Return a list of TestCaseResults for a given TestCase constrained to a specific set of Build Result Summaries
Parameters:
testCase
- to look for
buildResults
- to contain search to
Returns:
list of TestCaseResult
for the given TestCase
getLastNFailingResultsForTestCase
Retrieve the last n failing testResults for this given test case, latest first.
Parameters:
testCase
- to look for the results for.
number
- of results to retrieve
Returns:
List of pairs containing the offending TestCaseResult and the build number it occurred in.
getLastNFailingResultsForTestCaseAndBuildResults
Retrieve the last n failing testResults for this given test case, but only those that occurred within the provided
build results. Latest first.
Parameters:
testCase
- to look for the results for.
buildResults
- to search in for the tests.
number
- of results to retrieve
Returns:
List of pairs containing the offending TestCaseResult and the build number it occurred in.
getTestCaseResults
Find a specific run of a testCase
Parameters:
testCase
- to look for
buildNumber
- of the build the run should have occurred in
Returns:
the TestCaseResult for the given test case, if it ran in the given build.
getSucceedingSinceBuildResultSummary
Find the build in which the given test has been successful since. AKA the last recored "FIXED" test run.
Will return null if the test has never failed (ie being successful since the beginning)
Parameters:
testCase
- to search history for.
Returns:
the BuildResultSummary that this test has been successful since.
countTestCaseResults
long countTestCaseResults ()
Count all TestCaseResults
Returns:
number of TestCaseResults
countTestCaseResultErrors
long countTestCaseResultErrors ()
Count all TestCaseResultErrors
Returns:
number of TestCaseResultErrors