public class TestCaseSummaryImpl extends Object implements TestCaseSummary
Constructor and Description |
---|
TestCaseSummaryImpl(TestCase testCase,
PlanKey planKey,
List<BuildResultsSummary> filteredBuildResults,
TestsManager testsManager,
ResultsSummaryManager resultsSummaryManager) |
Modifier and Type | Method and Description |
---|---|
float |
getAverageElapsedBuilds()
Calculates the average number of builds between fixes.
|
long |
getAverageElapsedTime()
Returns the averag etime in milliseconds it takes for builds to be fixed
|
int |
getCountFailingSince() |
BuildResultsSummary |
getFailingSinceBuild() |
String |
getFailingSinceBuildKey()
Just returns the key of the failing since build, just in case the buildResult doesn't exist anymore, e.g.
|
List<FailurePeriod> |
getFailurePeriods() |
BuildResultsSummary |
getLastRanBuild() |
TestCaseResult |
getLastTestCaseResult() |
PlanKey |
getPlanKey() |
BuildResultsSummary |
getSucceedingSinceBuild() |
public TestCaseSummaryImpl(@NotNull TestCase testCase, @NotNull PlanKey planKey, @Nullable List<BuildResultsSummary> filteredBuildResults, TestsManager testsManager, ResultsSummaryManager resultsSummaryManager)
@Nullable public TestCaseResult getLastTestCaseResult()
getLastTestCaseResult
in interface TestCaseSummary
@Nullable public BuildResultsSummary getLastRanBuild()
getLastRanBuild
in interface TestCaseSummary
public BuildResultsSummary getFailingSinceBuild()
getFailingSinceBuild
in interface TestCaseSummary
@Nullable public String getFailingSinceBuildKey()
TestCaseSummary
getFailingSinceBuildKey
in interface TestCaseSummary
public int getCountFailingSince()
getCountFailingSince
in interface TestCaseSummary
@Nullable public BuildResultsSummary getSucceedingSinceBuild()
getSucceedingSinceBuild
in interface TestCaseSummary
@NotNull public List<FailurePeriod> getFailurePeriods()
getFailurePeriods
in interface TestCaseSummary
public long getAverageElapsedTime()
getAverageElapsedTime
in interface TestCaseSummary
public float getAverageElapsedBuilds()
getAverageElapsedBuilds
in interface TestCaseSummary
public PlanKey getPlanKey()
Copyright © 2020 Atlassian Software Systems Pty Ltd. All rights reserved.