public class TestCaseResultHibernateDao extends BambooHibernateObjectDao<TestCaseResult> implements TestCaseResultDao
| Constructor and Description |
|---|
TestCaseResultHibernateDao() |
| Modifier and Type | Method and Description |
|---|---|
long |
countTestCaseResultErrors()
Count all TestCaseResultErrors
|
long |
countTestCaseResults()
Count all TestCaseResults
|
TestCaseResult |
findById(long id)
Find a specific testCaseResult by id
|
List<Pair<TestCaseResult,Integer>> |
getLastNFailingResultsForTestCase(TestCase testCase,
int number)
Retrieve the last n failing testResults for this given test case, latest first.
|
List<Pair<TestCaseResult,Integer>> |
getLastNFailingResultsForTestCaseAndBuildResults(TestCase testCase,
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.
|
List<TestCaseResult> |
getQuarantinedTestCasesForBuildResult(BuildResultsSummary buildResultsSummary)
Provide a list of the quarantined tests for a build result
|
List<TestCaseResult> |
getQuarantinedTestCasesForChainResult(ChainResultsSummary chainResultsSummary)
Provide a list of the quarantined tests for a chain result
|
List<TestCaseResultStatisticsProvider> |
getResultStatisticsForTestCase(TestCase testCase)
Returns a list of wrapped TestCaseResult and BuildResultSummary for a particular test case, for use by e.g.
|
List<TestCaseResultStatisticsProvider> |
getResultStatisticsForTestCaseAndBuilds(TestCase testCase,
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)
Find a specific run of a testCase
|
List<TestCaseResult> |
getTestCaseResults(TestCase testCase,
long buildNumber)
Find a specific run of a testCase
|
List<TestCaseResult> |
getTestCaseResultsForTestCase(TestCase testCase)
Return a list of TestCaseResults for a given TestCase
|
List<TestCaseResult> |
getTestCaseResultsForTestCaseAndBuilds(TestCase testCase,
List<BuildResultsSummary> buildResults)
Return a list of TestCaseResults for a given TestCase constrained to a specific set of Build Result Summaries
|
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)
|
List<TestCaseResult> |
getTestsForBuildResultByState(ResultsSummary summary,
TestState state)
Retrieves a list of testCaseResults for a BuildResultSummary based on their state (e.f FAILED or SUCCESS)
|
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).
|
List<TestCaseResult> |
getTestsForBuildResultSummary(BuildResultsSummary summary)
Retrieves a list of all testCaseResults for a BuildResultSummary
|
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)
|
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,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,Void> function)
Scroll through and execute function for each of TestCaseResults
Objects passed to function are not fully initialized.
|
countAll, countWithRestriction, delete, deleteAll, execute, executeCountQuery, executeReturnInt, executeReturnLong, findAll, findById, save, saveAllgetCacheAwareHibernateTemplatecheckDaoConfig, convertHibernateAccessException, createHibernateTemplate, getHibernateTemplate, getSession, getSession, getSessionFactory, releaseSession, setHibernateTemplate, setSessionFactoryclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcountAll, countWithRestriction, delete, deleteAll, executeReturnInt, executeReturnLong, findAll, findById, save, saveAllpublic TestCaseResult findById(long id)
TestCaseResultDaofindById in interface TestCaseResultDaoid - of the test you want to find@NotNull public List<TestCaseResult> getTestsForBuildResultByState(ResultsSummary summary, TestState state)
TestCaseResultDaogetTestsForBuildResultByState in interface TestCaseResultDaosummary - the BuildResultsSaummary to get the tests forstate - - The TestState to search for.@NotNull public List<TestCaseResult> getTestsForBuildResultByState(ResultsSummary summary, TestState state, int firstResult, int maxCount)
TestCaseResultDaogetTestsForBuildResultByState in interface TestCaseResultDaosummary - 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 public List<TestCaseResult> getTestsForBuildResultByDeltaState(ResultsSummary summary, TestDeltaState deltaState, int firstResult, int maxCount)
TestCaseResultDaogetTestsForBuildResultByDeltaState in interface TestCaseResultDaosummary - 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 public List<TestCaseResult> getTestsForChainResultByDeltaStates(ChainResultsSummary summary, TestDeltaState[] deltaStates, int firstResult, int maxCount)
TestCaseResultDaogetTestsForChainResultByDeltaStates in interface TestCaseResultDaofirstResult - - index of the first resultmaxCount - - maximum amount of records returned@NotNull public List<TestCaseResult> getTestsForChainResultByState(@NotNull ChainResultsSummary summary, @NotNull TestState testState, int firstResult, int maxCount)
TestCaseResultDaoTestStategetTestsForChainResultByState in interface TestCaseResultDao@NotNull public List<TestCaseResult> getQuarantinedTestCasesForChainResult(@NotNull ChainResultsSummary chainResultsSummary)
TestCaseResultDaogetQuarantinedTestCasesForChainResult in interface TestCaseResultDaochainResultsSummary - to search for the tests.@NotNull public List<TestCaseResult> getTestsForBuildResultSummary(BuildResultsSummary summary)
TestCaseResultDaogetTestsForBuildResultSummary in interface TestCaseResultDaosummary - the BuildResultsSummary to get the tests for@NotNull public List<TestCaseResult> getQuarantinedTestCasesForBuildResult(@NotNull BuildResultsSummary buildResultsSummary)
TestCaseResultDaogetQuarantinedTestCasesForBuildResult in interface TestCaseResultDaobuildResultsSummary - to search for the tests.@NotNull public List<TestCaseResultStatisticsProvider> getResultStatisticsForTestCase(@NotNull TestCase testCase)
TestCaseResultDaogetResultStatisticsForTestCase in interface TestCaseResultDaotestCase - to find the results forTestCaseResultStatisticsProviderfor each TestCaseResult found for the TestCase@NotNull public List<TestCaseResultStatisticsProvider> getResultStatisticsForTestCaseAndBuilds(@NotNull TestCase testCase, @NotNull List<BuildResultsSummary> buildResults)
TestCaseResultDaogetResultStatisticsForTestCaseAndBuilds in interface TestCaseResultDaotestCase - to find the results forbuildResults - to contain search to (this list must not be empty)TestCaseResultStatisticsProvider for each TestCaseResult found for the TestCase@NotNull public List<TestCaseResult> getTestCaseResultsForTestCase(@NotNull TestCase testCase)
TestCaseResultDaogetTestCaseResultsForTestCase in interface TestCaseResultDaotestCase - to look forTestCaseResult for the given TestCase@NotNull public List<TestCaseResult> getTestCaseResultsForTestCaseAndBuilds(@NotNull TestCase testCase, @NotNull List<BuildResultsSummary> buildResults)
TestCaseResultDaogetTestCaseResultsForTestCaseAndBuilds in interface TestCaseResultDaotestCase - to look forbuildResults - to contain search toTestCaseResult for the given TestCase@NotNull public List<Pair<TestCaseResult,Integer>> getLastNFailingResultsForTestCase(@NotNull TestCase testCase, int number)
TestCaseResultDaogetLastNFailingResultsForTestCase in interface TestCaseResultDaotestCase - to look for the results for.number - of results to retrieve@NotNull public List<Pair<TestCaseResult,Integer>> getLastNFailingResultsForTestCaseAndBuildResults(@NotNull TestCase testCase, @NotNull List<BuildResultsSummary> buildResults, int number)
TestCaseResultDaogetLastNFailingResultsForTestCaseAndBuildResults in interface TestCaseResultDaotestCase - to look for the results for.buildResults - to search in for the tests.number - of results to retrievepublic TestCaseResult getTestCaseResult(TestCase testCase, long buildNumber)
TestCaseResultDaogetTestCaseResult in interface TestCaseResultDaotestCase - to look forbuildNumber - of the build the run should have occurred in@NotNull public List<TestCaseResult> getTestCaseResults(TestCase testCase, long buildNumber)
TestCaseResultDaogetTestCaseResults in interface TestCaseResultDaotestCase - to look forbuildNumber - of the build the run should have occurred inpublic BuildResultsSummary getSucceedingSinceBuildResultSummary(TestCase testCase)
TestCaseResultDaogetSucceedingSinceBuildResultSummary in interface TestCaseResultDaotestCase - to search history for.public long countTestCaseResults()
TestCaseResultDaocountTestCaseResults in interface TestCaseResultDaopublic long countTestCaseResultErrors()
TestCaseResultDaocountTestCaseResultErrors in interface TestCaseResultDaopublic long scrollTestCaseResultsForExport(@NotNull
com.google.common.base.Function<TestCaseResult,Void> function)
TestCaseResultDaoscrollTestCaseResultsForExport in interface TestCaseResultDaofunction - function to be executed on each of the TestClassResultspublic long scrollTestCaseResultErrorsForExport(@NotNull
com.google.common.base.Function<TestCaseResultError,Void> function)
TestCaseResultDaoscrollTestCaseResultErrorsForExport in interface TestCaseResultDaofunction - function to be executed on each of the TestClassResultsCopyright © 2016 Atlassian Software Systems Pty Ltd. All rights reserved.