net.thucydides.core.model
Class StoryTestResults

Package class diagram package StoryTestResults
java.lang.Object
  extended by net.thucydides.core.model.StoryTestResults

public class StoryTestResults
extends Object

A collection of test results, corresponding to a the acceptance tests for a single user story. User stories can in turn belong to Features.

Author:
johnsmart

Constructor Summary
StoryTestResults(Story story)
          Create a new acceptance test run instance.
StoryTestResults(Story story, Configuration configuration, IssueTracking issueTracking)
          Create a new acceptance test run instance.
 
Method Summary
 boolean containsResultsFor(Story aUserStory)
          Does this set of test results correspond to a specified user story?
 int countStepsInFailingTests()
           
 int countStepsInSkippedTests()
           
 int countStepsInSuccessfulTests()
          How many steps make up the successful tests?
 double getAverageTestSize()
           
 Double getCoverage()
           
 long getDuration()
           
 Integer getEstimatedTotalStepCount()
           
 int getFailureCount()
          How many test cases contain at least one failing test.
 CoverageFormatter getFormatted()
           
 String getFormattedIssues()
           
 Set<String> getIssues()
           
 int getPendingCount()
           
 Double getPercentFailingCoverage()
           
 Double getPercentPassingCoverage()
           
 Double getPercentPendingCoverage()
           
 String getReportName()
           
 String getReportName(ReportType type)
           
 TestResult getResult()
           
 Integer getSkipCount()
           
 int getStepCount()
           
 Story getStory()
           
 int getSuccessCount()
          How many test cases contain only successful or ignored tests.
 List<TestOutcome> getTestOutcomes()
           
 String getTitle()
           
 String getTitleWithLinks()
           
 int getTotal()
          How many test runs in total have been recorded.
 void recordTestRun(TestOutcome testOutcome)
          Add a test run result to the aggregate set of results.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StoryTestResults

public StoryTestResults(Story story)
Create a new acceptance test run instance.


StoryTestResults

public StoryTestResults(Story story,
                        Configuration configuration,
                        IssueTracking issueTracking)
Create a new acceptance test run instance.

Method Detail

getStory

public Story getStory()

getReportName

public String getReportName(ReportType type)

getReportName

public String getReportName()

recordTestRun

public void recordTestRun(TestOutcome testOutcome)
Add a test run result to the aggregate set of results.


countStepsInSuccessfulTests

public int countStepsInSuccessfulTests()
How many steps make up the successful tests?


countStepsInFailingTests

public int countStepsInFailingTests()

countStepsInSkippedTests

public int countStepsInSkippedTests()

getTestOutcomes

public List<TestOutcome> getTestOutcomes()

getTitle

public String getTitle()

getTitleWithLinks

public String getTitleWithLinks()

getFormattedIssues

public String getFormattedIssues()

getIssues

public Set<String> getIssues()

getCoverage

public Double getCoverage()

getPercentPassingCoverage

public Double getPercentPassingCoverage()

getPercentFailingCoverage

public Double getPercentFailingCoverage()

getPercentPendingCoverage

public Double getPercentPendingCoverage()

getEstimatedTotalStepCount

public Integer getEstimatedTotalStepCount()

getAverageTestSize

public double getAverageTestSize()

containsResultsFor

public boolean containsResultsFor(Story aUserStory)
Does this set of test results correspond to a specified user story?


getFormatted

public CoverageFormatter getFormatted()

getDuration

public long getDuration()

getTotal

public int getTotal()
How many test runs in total have been recorded.


getResult

public TestResult getResult()

getStepCount

public int getStepCount()

getSuccessCount

public int getSuccessCount()
How many test cases contain only successful or ignored tests.


getFailureCount

public int getFailureCount()
How many test cases contain at least one failing test.


getPendingCount

public int getPendingCount()

getSkipCount

public Integer getSkipCount()


Copyright © 2011-2012 Wakaleo Consulting. All Rights Reserved.