net.thucydides.core.steps
Class TestResultTally

Package class diagram package TestResultTally
java.lang.Object
  extended by net.thucydides.core.steps.TestResultTally
All Implemented Interfaces:
Serializable

public class TestResultTally
extends Object
implements Serializable

Result of a test step or sequence of test steps.

See Also:
Serialized Form

Method Summary
static TestResultTally forTestClass(Class<?> classUnderTest)
           
 Class<?> getClassUnderTest()
           
 int getFailureCount()
          How many test steps failed.
 List<StepFailure> getFailures()
          What were the failures.
 int getIgnoreCount()
          How many test steps were ignored.
 int getRunCount()
          How many test steps were executed, including ignored and failing test steps.
 void logExecutedTest()
          A test step was executed.
 void logFailure(StepFailure failure)
          Record a test step failure.
 void logIgnoredTest()
          A test step was ignored.
 boolean wasSuccessful()
          The test case is considered successful if there were no failing tests.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getClassUnderTest

public Class<?> getClassUnderTest()

logFailure

public void logFailure(StepFailure failure)
Record a test step failure. Test step failures are recorded and reported at the end of the test case.


logIgnoredTest

public void logIgnoredTest()
A test step was ignored.


logExecutedTest

public void logExecutedTest()
A test step was executed.


getFailureCount

public int getFailureCount()
How many test steps failed.


getFailures

public List<StepFailure> getFailures()
What were the failures.


getIgnoreCount

public int getIgnoreCount()
How many test steps were ignored.


getRunCount

public int getRunCount()
How many test steps were executed, including ignored and failing test steps.


wasSuccessful

public boolean wasSuccessful()
The test case is considered successful if there were no failing tests.


forTestClass

public static TestResultTally forTestClass(Class<?> classUnderTest)


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