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