|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||

java.lang.Objectnet.thucydides.core.reports.TestOutcomes
public class TestOutcomes
A set of test outcomes, which lets you perform query operations on the test outcomes. In particular, you can filter a set of test outcomes by tag type and by tag values. Since these operations also return TestOutcomes, you can then further drill down into the test outcome sets. The TestOutcomes object will usually return a list of TestOutcome objects. You can also inject statistics and test run history by using the withHistory() method. This will return a list of TestOutcomeWithHistory instances.
| Nested Class Summary | |
|---|---|
class |
TestOutcomes.OutcomeProportionCounter
|
class |
TestOutcomes.OutcomeProportionStepCounter
|
class |
TestOutcomes.TestOutcomeMatcher
|
| Constructor Summary | |
|---|---|
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)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
@Inject
protected TestOutcomes(List<? extends TestOutcome> outcomes,
double estimatedAverageStepCount,
String label,
TestOutcomes rootOutcomes)
protected TestOutcomes(List<? extends TestOutcome> outcomes,
double estimatedAverageStepCount,
String label)
protected TestOutcomes(List<? extends TestOutcome> outcomes,
double estimatedAverageStepCount)
| Method Detail |
|---|
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> getFirstClassTagTypes()
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 on
public TestOutcomes withTag(String tagName)
tagName - the name of the tag type we are filtering on
public 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 templates
public 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 Double getPercentageTestCount(TestResult expectedResult)
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 countStepsWithResult(TestResult expectedResult)
protected int countTestsWithResult(TestResult expectedResult)
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()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||