|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface TestsDao
Dao for retrieving and manipulating Test Objects (e.g TestClass, TestCase)
Method Summary | |
---|---|
long |
countTestCases()
Count all TestCase records |
long |
countTestClasses()
Count all TestClass records |
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<TestCase> |
getLongestRunningTestCasesForPlan(Plan plan)
Provide a list of the top ten longest running tests for a plan, based on the duration of the TestCase's TestCaseResults Finds top 10 results in order (longest first) |
java.util.List<Pair<java.lang.Long,java.lang.Float>> |
getLongestToFixTestCasesForBuildResults(java.util.List<BuildResultsSummary> buildResults)
Retrieve a list of the test cases that have taken the longest amount of time to fix. |
java.util.List<Pair<java.lang.Long,java.lang.Float>> |
getLongestToFixTestCasesForPlan(Plan plan)
Retrieve a list of the test cases that have taken the longest amount of time to fix. |
java.util.List<Pair<java.lang.Long,java.lang.Integer>> |
getMostFailingTestCasesForBuildResults(java.util.List<BuildResultsSummary> buildResults)
Provide a list of the top 10 most failing test cases for a plan. |
java.util.List<Pair<java.lang.Long,java.lang.Integer>> |
getMostFailingTestCasesForPlan(Plan plan)
Provide a list of the top 10 most failing test cases for a plan. |
java.util.List |
getQuarantinedTestCasesForChain(ImmutableChain chain)
Provide a list of the quarantined tests for a job |
java.util.List<TestCase> |
getQuarantinedTestCasesForJob(ImmutableJob job)
Provide a list of the quarantined tests for a job |
TestCase |
getTestCaseById(long testCaseId)
Find a specific testCase by id |
TestClass |
getTestClassById(long testClassId)
Find a specific testClass by id |
java.util.List<TestClass> |
getTestClassesForPlan(Plan plan)
Retrieve all test classes attached to a specific plan |
long |
scrollTestCasesForExport(com.google.common.base.Function<TestCase,java.lang.Void> function)
Scroll through and execute function for each of TestCase records Objects passed to function are not fully initialized. |
long |
scrollTestClassesForExport(com.google.common.base.Function<TestClass,java.lang.Void> function)
Scroll through and execute function for each of TestClass records Objects passed to function are not fully initialized. |
Methods inherited from interface com.atlassian.bamboo.persistence.BambooObjectDao |
---|
findById |
Methods inherited from interface bucket.core.persistence.ObjectDao |
---|
findAll, findAllSorted, getPersistentClass, refresh, remove, replicate, save, saveRaw |
Method Detail |
---|
@Nullable TestCase getTestCaseById(long testCaseId)
testCaseId
- of the test case you want to find
@Nullable TestClass getTestClassById(long testClassId)
testClassId
- of the test class you want to find
@NotNull java.util.List<TestClass> getTestClassesForPlan(Plan plan)
plan
- the tests are attached to
@NotNull java.util.List<TestCase> getLongestRunningTestCasesForPlan(@NotNull Plan plan)
plan
- to search in for the tests.
@NotNull java.util.List<TestCase> getQuarantinedTestCasesForJob(@NotNull ImmutableJob job)
job
- to search in for the tests.
@NotNull java.util.List getQuarantinedTestCasesForChain(@NotNull ImmutableChain chain)
chain
- to search in for the tests.
@NotNull java.util.List<Pair<java.lang.Long,java.lang.Integer>> getMostFailingTestCasesForPlan(@NotNull Plan plan)
plan
- to search for the tests
@NotNull java.util.List<Pair<java.lang.Long,java.lang.Integer>> getMostFailingTestCasesForBuildResults(@NotNull java.util.List<BuildResultsSummary> buildResults)
buildResults
- to search in for the tests.
@NotNull java.util.List<Pair<java.lang.Long,java.lang.Float>> getLongestToFixTestCasesForPlan(@NotNull Plan plan)
plan
- to search for results in
@NotNull java.util.List<Pair<java.lang.Long,java.lang.Float>> getLongestToFixTestCasesForBuildResults(@NotNull java.util.List<BuildResultsSummary> buildResults)
buildResults
- to search in for the tests.
@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
long countTestClasses()
long scrollTestClassesForExport(@NotNull com.google.common.base.Function<TestClass,java.lang.Void> function)
function
- function to be executed on each of the TestClass records
long countTestCases()
long scrollTestCasesForExport(@NotNull com.google.common.base.Function<TestCase,java.lang.Void> function)
function
- function to be executed on each of the TestCase records
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |