public interface TestCaseDao extends BambooObjectDao<TestCase>
Modifier and Type | Method and Description |
---|---|
int |
countCurrentlyQuarantinedTests(ImmutableChain chain) |
long |
countTestCases()
Count all TestCase records
|
TestCase |
findById(long testCaseId)
Find a specific testCase by id
|
List<TestCase> |
getAllTestCasesWithExpiredQuarantine()
Returns a list of all
test cases that are marked as quarantined, but their quarantine has
expired. |
List<TestCase> |
getLongestRunningTestCasesForPlan(ImmutablePlan 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)
|
List<Pair<Long,Float>> |
getLongestToFixTestCasesForBuildResults(List<BuildResultsSummary> buildResults)
Retrieve a list of the test cases that have taken the longest amount of time to fix.
|
List<Pair<Long,Float>> |
getLongestToFixTestCasesForPlan(PlanIdentifier plan)
Retrieve a list of the test cases that have taken the longest amount of time to fix.
|
List<Pair<Long,Long>> |
getMostFailingTestCasesForBuildResults(List<BuildResultsSummary> buildResults)
Provide a list of the top 10 most failing test cases for a plan.
|
List<Pair<Long,Long>> |
getMostFailingTestCasesForPlan(PlanIdentifier plan)
Provide a list of the top 10 most failing test cases for a plan.
|
List<TestCase> |
getQuarantinedTestCasesForChain(ImmutableChain chain)
Provide a list of the quarantined tests for a job
|
List<TestCase> |
getQuarantinedTestCasesForJob(ImmutableJob job)
Provide a list of the quarantined tests for a job
|
List<Pair<Long,Long>> |
getTopBrokenTests(PlanKey planKey,
BuildResultsFilter filter) |
long |
scrollTestCasesForExport(Consumer<TestCase> consumer)
Scroll through and execute function for each of TestCase records
Objects passed to function are not fully initialized.
|
countAll, countWithRestriction, delete, deleteAll, findAll, findById, merge, save, saveAll
@Nullable TestCase findById(long testCaseId)
testCaseId
- of the test case you want to find@NotNull List<TestCase> getLongestRunningTestCasesForPlan(@NotNull ImmutablePlan plan)
plan
- to search in for the tests.@NotNull List<TestCase> getQuarantinedTestCasesForChain(@NotNull ImmutableChain chain)
chain
- to search in for the tests.int countCurrentlyQuarantinedTests(ImmutableChain chain)
@NotNull List<TestCase> getQuarantinedTestCasesForJob(@NotNull ImmutableJob job)
job
- to search in for the tests.@NotNull List<Pair<Long,Long>> getMostFailingTestCasesForPlan(@NotNull PlanIdentifier plan)
plan
- to search for the tests@NotNull List<Pair<Long,Long>> getMostFailingTestCasesForBuildResults(@NotNull List<BuildResultsSummary> buildResults)
buildResults
- to search in for the tests.@NotNull List<Pair<Long,Float>> getLongestToFixTestCasesForPlan(@NotNull PlanIdentifier plan)
plan
- to search for results in@NotNull List<Pair<Long,Float>> getLongestToFixTestCasesForBuildResults(@NotNull List<BuildResultsSummary> buildResults)
buildResults
- to search in for the tests.@NotNull List<Pair<Long,Long>> getTopBrokenTests(@NotNull PlanKey planKey, BuildResultsFilter filter)
long countTestCases()
long scrollTestCasesForExport(@NotNull Consumer<TestCase> consumer)
consumer
- consumer to accept each of the TestCase records@NotNull List<TestCase> getAllTestCasesWithExpiredQuarantine()
test cases
that are marked as quarantined, but their quarantine has
expired.Copyright © 2019 Atlassian Software Systems Pty Ltd. All rights reserved.