public class TestOutcomes
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
class |
TestOutcomes.OutcomeProportionCounter |
class |
TestOutcomes.OutcomeProportionStepCounter |
static 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.Collection<? extends TestOutcome> outcomes)
public static TestOutcomes withNoResults()
public java.util.Map<? extends Flag,java.lang.Integer> getFlagCounts()
public boolean haveFlags()
public java.util.Set<? extends Flag> getFlags()
public java.lang.Integer flagCountFor(Flag flag)
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 TestTag getTestTag()
public boolean containsTag(TestTag testTag)
public java.util.Optional<java.time.ZonedDateTime> getStartTime()
public TestOutcomes ofType(TestType testType)
public TestOutcomes withResult(TestResult result)
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 withCardNumber(java.lang.String issueCardNumber)
public TestOutcomes withTags(java.util.List<TestTag> tags)
public TestOutcomes getFailingOrErrorTests()
public TestOutcomes getFailingTests()
public TestOutcomes getErrorTests()
public TestOutcomes getManualTests()
public TestOutcomes getCompromisedTests()
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 ScenarioOutcomeCounter getTotalScenarios()
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 int getTestCount()
public boolean hasDataDrivenTests()
public int getTotalDataRows()
public TestOutcomes.TestOutcomeMatcher findMatchingTags()