|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface TestCaseResultDao
Method Summary | |
---|---|
long |
countTestCaseResultErrors()
Count all TestCaseResultErrors |
long |
countTestCaseResults()
Count all TestCaseResults |
TestCaseResult |
findById(long id)
Find a specific testCaseResult by id |
java.util.List<Pair<TestCaseResult,java.lang.Integer>> |
getLastNFailingResultsForTestCase(TestCase testCase,
int number)
Retrieve the last n failing testResults for this given test case, latest first. |
java.util.List<Pair<TestCaseResult,java.lang.Integer>> |
getLastNFailingResultsForTestCaseAndBuildResults(TestCase testCase,
java.util.List<BuildResultsSummary> buildResults,
int number)
Retrieve the last n failing testResults for this given test case, but only those that occurred within the provided build results. |
java.util.List<TestCaseResult> |
getQuarantinedTestCasesForBuildResult(BuildResultsSummary buildResultsSummary)
Provide a list of the quarantined tests for a build result |
java.util.List<TestCaseResult> |
getQuarantinedTestCasesForChainResult(ChainResultsSummary chainResultsSummary)
Provide a list of the quarantined tests for a chain result |
java.util.List<TestCaseResultStatisticsProvider> |
getResultStatisticsForTestCase(TestCase testCase)
Returns a list of wrapped TestCaseResult and BuildResultSummary for a particular test case, for use by e.g. |
java.util.List<TestCaseResultStatisticsProvider> |
getResultStatisticsForTestCaseAndBuilds(TestCase testCase,
java.util.List<BuildResultsSummary> buildResults)
Returns a list of wrapped TestCaseResult and BuildResultSummary for a particular test case and contained within a specific span of build result summaries. |
BuildResultsSummary |
getSucceedingSinceBuildResultSummary(TestCase testCase)
Find the build in which the given test has been successful since. |
TestCaseResult |
getTestCaseResult(TestCase testCase,
long buildNumber)
Deprecated. since 3.3 use getTestCaseResults(TestCase, long) |
java.util.List<TestCaseResult> |
getTestCaseResults(TestCase testCase,
long buildNumber)
Find a specific run of a testCase |
java.util.List<TestCaseResult> |
getTestCaseResultsForTestCase(TestCase testCase)
Return a list of TestCaseResults for a given TestCase |
java.util.List<TestCaseResult> |
getTestCaseResultsForTestCaseAndBuilds(TestCase testCase,
java.util.List<BuildResultsSummary> buildResults)
Return a list of TestCaseResults for a given TestCase constrained to a specific set of Build Result Summaries |
java.util.List<TestCaseResult> |
getTestsForBuildResultByDeltaState(ResultsSummary summary,
TestDeltaState deltaState,
int firstResult,
int maxCount)
Retrieves a list of testCaseResults for a BuildResultSummary based on their delta state (e.g BROKEN, FIXED) |
java.util.List<TestCaseResult> |
getTestsForBuildResultByState(ResultsSummary summary,
TestState state)
Retrieves a list of testCaseResults for a BuildResultSummary based on their state (e.f FAILED or SUCCESS) |
java.util.List<TestCaseResult> |
getTestsForBuildResultByState(ResultsSummary summary,
TestState state,
int firstResult,
int maxCount)
Retrieves a list of testCaseResults for a BuildResultSummary based on their state (e.f FAILED or SUCCESS). |
java.util.List<TestCaseResult> |
getTestsForBuildResultSummary(BuildResultsSummary summary)
Retrieves a list of all testCaseResults for a BuildResultSummary |
java.util.List<TestCaseResult> |
getTestsForChainResultByDeltaStates(ChainResultsSummary summary,
TestDeltaState[] deltaStates,
int firstResult,
int maxCount)
Retrieves a list of testCaseResults for a ChainResultSummary based on their delta state (e.g BROKEN, FIXED) |
java.util.List<TestCaseResult> |
getTestsForChainResultByState(ChainResultsSummary summary,
TestState testState,
int firstResult,
int maxCount)
Retrieves a list of testCaseResults for a ChainResultSummary based on their TestState |
long |
scrollTestCaseResultErrorsForExport(com.google.common.base.Function<TestCaseResultError,java.lang.Void> function)
Scroll through and execute function for each of TestCaseResultErrors Objects passed to function are not fully initialized. |
long |
scrollTestCaseResultsForExport(com.google.common.base.Function<TestCaseResult,java.lang.Void> function)
Scroll through and execute function for each of TestCaseResults Objects passed to function are not fully initialized. |
Methods inherited from interface com.atlassian.bamboo.persistence3.BambooObjectDao |
---|
delete, deleteAll, executeReturnLong, findAll, findById, save, saveAll |
Method Detail |
---|
TestCaseResult findById(long id)
id
- of the test you want to find
@NotNull java.util.List<TestCaseResult> getTestsForBuildResultByState(ResultsSummary summary, TestState state)
summary
- the BuildResultsSaummary to get the tests forstate
- - The TestState to search for.
@NotNull java.util.List<TestCaseResult> getTestsForBuildResultByState(ResultsSummary summary, TestState state, int firstResult, int maxCount)
summary
- the BuildResultsSummary to get the tests forstate
- 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.
@NotNull java.util.List<TestCaseResult> getTestsForBuildResultByDeltaState(ResultsSummary summary, TestDeltaState deltaState, int firstResult, int maxCount)
summary
- the BuildResultsSummary to get the tests fordeltaState
- 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.
@NotNull java.util.List<TestCaseResult> getTestsForChainResultByDeltaStates(ChainResultsSummary summary, TestDeltaState[] deltaStates, int firstResult, int maxCount)
summary
- deltaStates
- firstResult
- - index of the first resultmaxCount
- - maximum amount of records returned
@NotNull java.util.List<TestCaseResult> getTestsForChainResultByState(@NotNull ChainResultsSummary summary, @NotNull TestState testState, int firstResult, int maxCount)
TestState
summary
- testState
- firstResult
- maxCount
-
@NotNull java.util.List<TestCaseResult> getQuarantinedTestCasesForChainResult(@NotNull ChainResultsSummary chainResultsSummary)
chainResultsSummary
- to search for the tests.
@NotNull java.util.List<TestCaseResult> getTestsForBuildResultSummary(BuildResultsSummary summary)
summary
- the BuildResultsSummary to get the tests for
@NotNull java.util.List<TestCaseResult> getQuarantinedTestCasesForBuildResult(@NotNull BuildResultsSummary buildResultsSummary)
buildResultsSummary
- to search for the tests.
@NotNull java.util.List<TestCaseResultStatisticsProvider> getResultStatisticsForTestCase(@NotNull TestCase testCase)
testCase
- to find the results for
@NotNull java.util.List<TestCaseResultStatisticsProvider> getResultStatisticsForTestCaseAndBuilds(@NotNull TestCase testCase, @NotNull java.util.List<BuildResultsSummary> buildResults)
testCase
- to find the results forbuildResults
- to contain search to (this list must not be empty)
@NotNull java.util.List<TestCaseResult> getTestCaseResultsForTestCase(@NotNull TestCase testCase)
testCase
- to look for
@NotNull java.util.List<TestCaseResult> getTestCaseResultsForTestCaseAndBuilds(@NotNull TestCase testCase, @NotNull java.util.List<BuildResultsSummary> buildResults)
testCase
- to look forbuildResults
- to contain search to
@NotNull java.util.List<Pair<TestCaseResult,java.lang.Integer>> getLastNFailingResultsForTestCase(@NotNull TestCase testCase, int number)
testCase
- to look for the results for.number
- of results to retrieve
@NotNull java.util.List<Pair<TestCaseResult,java.lang.Integer>> getLastNFailingResultsForTestCaseAndBuildResults(@NotNull TestCase testCase, @NotNull java.util.List<BuildResultsSummary> buildResults, int number)
testCase
- to look for the results for.buildResults
- to search in for the tests.number
- of results to retrieve
@Nullable @Deprecated TestCaseResult getTestCaseResult(TestCase testCase, long buildNumber)
getTestCaseResults(TestCase, long)
testCase
- to look forbuildNumber
- of the build the run should have occurred in
@NotNull java.util.List<TestCaseResult> getTestCaseResults(TestCase testCase, long buildNumber)
testCase
- to look forbuildNumber
- of the build the run should have occurred in
@Nullable BuildResultsSummary getSucceedingSinceBuildResultSummary(TestCase testCase)
testCase
- to search history for.
long countTestCaseResults()
long countTestCaseResultErrors()
long scrollTestCaseResultsForExport(@NotNull com.google.common.base.Function<TestCaseResult,java.lang.Void> function)
function
- function to be executed on each of the TestClassResults
long scrollTestCaseResultErrorsForExport(@NotNull com.google.common.base.Function<TestCaseResultError,java.lang.Void> function)
function
- function to be executed on each of the TestClassResults
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |