public class TestOutcomes extends Object
Modifier and Type | Class and Description |
---|---|
class |
TestOutcomes.OutcomeProportionCounter |
class |
TestOutcomes.OutcomeProportionStepCounter |
static class |
TestOutcomes.TestOutcomeMatcher |
Modifier | Constructor and Description |
---|---|
protected |
TestOutcomes(Collection<? extends TestOutcome> outcomes,
double estimatedAverageStepCount) |
protected |
TestOutcomes(Collection<? extends TestOutcome> outcomes,
double estimatedAverageStepCount,
String label) |
protected |
TestOutcomes(Collection<? extends TestOutcome> outcomes,
double estimatedAverageStepCount,
String label,
TestTag testTag,
TestResult resultFilter,
TestOutcomes rootOutcomes,
EnvironmentVariables environmentVariables) |
protected |
TestOutcomes(List<? extends TestOutcome> outcomes,
double estimatedAverageStepCount,
String label,
TestResult resultFilter) |
protected |
TestOutcomes(List<? extends TestOutcome> outcomes,
double estimatedAverageStepCount,
String label,
TestTag tag) |
@Inject protected TestOutcomes(Collection<? extends TestOutcome> outcomes, double estimatedAverageStepCount, String label, TestTag testTag, TestResult resultFilter, TestOutcomes rootOutcomes, EnvironmentVariables environmentVariables)
protected TestOutcomes(Collection<? extends TestOutcome> outcomes, double estimatedAverageStepCount, String label)
protected TestOutcomes(List<? extends TestOutcome> outcomes, double estimatedAverageStepCount, String label, TestTag tag)
protected TestOutcomes(List<? extends TestOutcome> outcomes, double estimatedAverageStepCount, String label, TestResult resultFilter)
protected TestOutcomes(Collection<? extends TestOutcome> outcomes, double estimatedAverageStepCount)
public TestOutcomes withLabel(String label)
public TestOutcomes withResultFilter(TestResult testResult)
public TestOutcomes filteredByEnvironmentTags()
public EnvironmentVariables getEnvironmentVariables()
public TestOutcomes havingResult(String result)
public TestOutcomes havingResult(TestResult result)
public static TestOutcomes of(Collection<? extends TestOutcome> outcomes)
public static TestOutcomes withNoResults()
public boolean haveFlags()
public String getLabel()
public List<String> getTagTypes()
public List<String> getTagNames()
public List<TestTag> getTags()
public List<TestTag> getTagsOfType(String tagType)
public List<TestTag> getMostSpecificTagsOfType(String tagType)
public List<TestTag> getTagsOfTypeExcluding(String tagType, String excludedTag)
public TestOutcomes getRootOutcomes()
public TestOutcomes forRequirement(Requirement requirement)
public TestTag getTestTag()
public boolean containsTag(TestTag testTag)
public boolean containsMatchingTag(TestTag containedTag)
public Optional<ZonedDateTime> getStartTime()
public TestOutcomes ofType(TestType testType)
public Integer scenarioCountWithResult(TestResult result)
public TestOutcomes withErrorType(String testFailureErrorType)
public TestOutcomes withResult(TestResult result)
public TestOutcomes withRequirementsTags()
public Optional<? extends TestOutcome> testOutcomeWithName(String name)
public List<TestOutcome> testOutcomesWithName(String name)
public long getFastestTestDuration()
public long getSlowestTestDuration()
public boolean containTestFor(Requirement requirement)
public TestOutcomes withTagType(String tagType)
tagType
- the tag type we are filtering onpublic TestOutcomes withTagTypes(List<String> tagTypes)
public TestOutcomes withTag(String tagName)
tagName
- the name of the tag type we are filtering onpublic TestOutcomes withTag(TestTag tag)
public TestOutcomes withCardNumber(String issueCardNumber)
public TestOutcomes withTags(Collection<TestTag> tags)
public String getResultFilterName()
public TestOutcomes getUnsuccessfulTests()
public TestOutcomes getFailingTests()
public TestOutcomes getAbortedTests()
public TestOutcomes getErrorTests()
public TestOutcomes getCompromisedTests()
public TestOutcomes getPassingTests()
public TestOutcomes getPendingTests()
public List<? extends TestOutcome> getTests()
public Long getDuration()
public double getDurationInSeconds()
public String getResultTypeLabel()
public int getTotal()
public int getTotalMatchingScenarios()
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 ScenarioOutcomeCounter getTotalScenarios()
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 int getTestCount()
public int getTestCaseCount()
public int getScenarioCount()
public boolean hasDataDrivenTests()
public int getTotalDataRows()
public TestOutcomes.TestOutcomeMatcher findMatchingTags()
public boolean isEmpty()
Copyright © 2022. All rights reserved.