public class TestOutcomes
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
class |
TestOutcomes.OutcomeProportionCounter |
class |
TestOutcomes.OutcomeProportionStepCounter |
class |
TestOutcomes.TestOutcomeMatcher |
public TestOutcomes withLabel(java.lang.String label)
public EnvironmentVariables getEnvironmentVariables()
public TestOutcomes havingResult(java.lang.String result)
public TestOutcomes havingResult(TestResult result)
public static TestOutcomes of(java.util.List<? extends TestOutcome> outcomes)
public static TestOutcomes withNoResults()
public java.lang.String getLabel()
public java.util.List<java.lang.String> getTagTypes()
public java.util.List<java.lang.String> getFirstClassTagTypes()
public java.util.List<java.lang.String> getRequirementTagTypes()
public java.util.List<java.lang.String> getTagNames()
public java.util.List<TestTag> getTags()
public java.util.List<TestTag> getTagsOfType(java.lang.String tagType)
public java.util.List<TestTag> getMostSpecificTagsOfType(java.lang.String tagType)
public java.util.List<TestTag> getTagsOfTypeExcluding(java.lang.String tagType, java.lang.String excludedTag)
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 withRequirementsTags()
public TestOutcomes withTagType(java.lang.String tagType)
tagType
- the tag type we are filtering onpublic TestOutcomes withTag(java.lang.String tagName)
tagName
- the name of the tag type we are filtering onpublic TestOutcomes withTag(TestTag tag)
public TestOutcomes withTags(java.util.List<TestTag> tags)
public TestOutcomes withHistory()
public TestOutcomes getFailingTests()
public TestOutcomes getErrorTests()
public TestOutcomes getPassingTests()
public TestOutcomes getPendingTests()
public java.util.List<? extends TestOutcome> getTests()
public java.lang.Long getDuration()
public double getDurationInSeconds()
public int getTotal()
public int getTotalTestScenarios()
public java.util.List<? extends TestOutcome> getOutcomes()
public TestResult getResult()
public int getStepCount()
public int successCount(java.lang.String testType)
testType
- 'manual' or 'automated' (this is a string because it is mainly called from the freemarker templatespublic OutcomeCounter getTotalTests()
public OutcomeCounter count(java.lang.String testType)
public OutcomeCounter count(TestType testType)
public TestOutcomes.OutcomeProportionCounter getProportion()
public TestOutcomes.OutcomeProportionCounter proportionOf(java.lang.String testType)
public TestOutcomes.OutcomeProportionCounter proportionOf(TestType testType)
public TestOutcomes.OutcomeProportionStepCounter getPercentSteps()
public TestOutcomes.OutcomeProportionStepCounter proportionalStepsOf(java.lang.String testType)
public TestOutcomes.OutcomeProportionStepCounter proportionalStepsOf(TestType testType)
public TestOutcomes.OutcomeProportionStepCounter decimalPercentageSteps(java.lang.String testType)
public TestCoverageFormatter.FormattedPercentageStepCoverage getFormattedPercentageSteps()
public TestCoverageFormatter.FormattedPercentageCoverage getFormattedPercentage()
public TestCoverageFormatter.FormattedPercentageCoverage getFormattedPercentage(java.lang.String testType)
public TestCoverageFormatter.FormattedPercentageCoverage getFormattedPercentage(TestType testType)
public TestCoverageFormatter getFormatted()
public double getAverageTestSize()
public double getRecentStability()
public double getOverallStability()
public int getTestCount()
public boolean hasDataDrivenTests()
public int getTotalDataRows()
public TestOutcomes.TestOutcomeMatcher findMatchingTags()