public class TestOutcomes extends Object
Modifier and Type | Class and Description |
---|---|
class |
TestOutcomes.OutcomeProportionCounter |
class |
TestOutcomes.OutcomeProportionStepCounter |
class |
TestOutcomes.TestOutcomeMatcher |
Modifier | Constructor and Description |
---|---|
protected |
TestOutcomes(List<? extends TestOutcome> outcomes,
double estimatedAverageStepCount) |
protected |
TestOutcomes(List<? extends TestOutcome> outcomes,
double estimatedAverageStepCount,
String label) |
protected |
TestOutcomes(List<? extends TestOutcome> outcomes,
double estimatedAverageStepCount,
String label,
TestOutcomes rootOutcomes,
EnvironmentVariables environmentVariables) |
@Inject protected TestOutcomes(List<? extends TestOutcome> outcomes, double estimatedAverageStepCount, String label, TestOutcomes rootOutcomes, EnvironmentVariables environmentVariables)
protected TestOutcomes(List<? extends TestOutcome> outcomes, double estimatedAverageStepCount, String label)
protected TestOutcomes(List<? extends TestOutcome> outcomes, double estimatedAverageStepCount)
public TestOutcomes withLabel(String label)
public static TestOutcomes of(List<? extends TestOutcome> outcomes)
public static TestOutcomes withNoResults()
public String getLabel()
public List<String> getTagTypes()
public List<String> getTagNames()
public List<TestTag> getTags()
public List<String> getTagsOfType(String tagType)
public List<String> getTagsOfTypeExcluding(String tagType, String excludedTags)
public TestOutcomes getRootOutcomes()
public TestOutcomes forRequirement(Requirement requirement)
public boolean containsTag(TestTag testTag)
public org.joda.time.DateTime getStartTime()
public TestOutcomes ofType(TestType testType)
public TestOutcomes withTagType(String tagType)
tagType
- the tag type we are filtering onpublic TestOutcomes withTag(String tagName)
tagName
- the name of the tag type we are filtering onpublic TestOutcomes withTag(TestTag tag)
public TestOutcomes withTags(List<TestTag> tags)
public TestOutcomes withHistory()
public TestOutcomes getFailingTests()
public TestOutcomes getErrorTests()
public TestOutcomes getPassingTests()
public TestOutcomes getPendingTests()
public List<? extends TestOutcome> getTests()
public Long getDuration()
public double getDurationInSeconds()
public int getTotal()
public int getTotalTestScenarios()
public List<? extends TestOutcome> getOutcomes()
public TestResult getResult()
public int getStepCount()
public int successCount(String testType)
testType
- 'manual' or 'automated' (this is a string because it is mainly called from the freemarker templatespublic OutcomeCounter getTotalTests()
public OutcomeCounter count(String testType)
public OutcomeCounter count(TestType testType)
public TestOutcomes.OutcomeProportionCounter getProportion()
public TestOutcomes.OutcomeProportionCounter proportionOf(String testType)
public TestOutcomes.OutcomeProportionCounter proportionOf(TestType testType)
public TestOutcomes.OutcomeProportionStepCounter getPercentSteps()
public TestOutcomes.OutcomeProportionStepCounter proportionalStepsOf(String testType)
public TestOutcomes.OutcomeProportionStepCounter proportionalStepsOf(TestType testType)
public TestOutcomes.OutcomeProportionStepCounter decimalPercentageSteps(String testType)
public TestCoverageFormatter.FormattedPercentageStepCoverage getFormattedPercentageSteps()
public TestCoverageFormatter.FormattedPercentageCoverage getFormattedPercentage()
public TestCoverageFormatter.FormattedPercentageCoverage getFormattedPercentage(String testType)
public TestCoverageFormatter.FormattedPercentageCoverage getFormattedPercentage(TestType testType)
public TestCoverageFormatter getFormatted()
protected int countTestsWithResult(TestResult expectedResult, TestType testType)
public double getAverageTestSize()
public double getRecentStability()
public double getOverallStability()
public int getTestCount()
public boolean hasDataDrivenTests()
public int getTotalDataRows()
public TestOutcomes.TestOutcomeMatcher findMatchingTags()
Copyright © 2011–2014 Wakaleo Consulting. All rights reserved.