net.thucydides.core.steps
Class ConsoleStepListener

Package class diagram package ConsoleStepListener
java.lang.Object
  extended by net.thucydides.core.steps.BaseStepListener
      extended by net.thucydides.core.steps.ConsoleStepListener
All Implemented Interfaces:
StepListener, StepPublisher

public class ConsoleStepListener
extends BaseStepListener


Nested Class Summary
 
Nested classes/interfaces inherited from class net.thucydides.core.steps.BaseStepListener
BaseStepListener.ScreenshotType
 
Constructor Summary
ConsoleStepListener()
           
 
Method Summary
 void skippedStepStarted(ExecutedStepDescription description)
          Called when a test step is about to be started, but this step is scheduled to be skipped.
 void stepFailed(StepFailure failure)
          Called when a test step fails.
 void stepFinished()
          Called when an test step has finished successfully
 void stepIgnored()
          Called when a step will not be run, generally because a test method is annotated with Ignore.
 void stepPending()
          The step is marked as pending.
 void stepStarted(ExecutedStepDescription description)
          A step within a test is called.
 void testFailed(TestOutcome testOutcome, Throwable cause)
          The test failed, but not while executing a step.
 void testFailed(Throwable cause)
           
 void testFinished(TestOutcome result)
          A test has finished.
 void testIgnored()
          The test as a whole was skipped or ignored.
 void testStarted(String description)
          An individual test starts.
 String toString()
           
 
Methods inherited from class net.thucydides.core.steps.BaseStepListener
aStepHasFailed, getClock, getCurrentTestOutcome, getDriver, getPhotographer, getProxyFactory, getTestFailureCause, getTestOutcomes, lastStepFailed, notifyScreenChange, setDriver, stepIgnored, stepPending, testSuiteFinished, testSuiteStarted, testSuiteStarted
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ConsoleStepListener

public ConsoleStepListener()
Method Detail

toString

public String toString()
Overrides:
toString in class Object

testStarted

public void testStarted(String description)
Description copied from class: BaseStepListener
An individual test starts.

Specified by:
testStarted in interface StepListener
Overrides:
testStarted in class BaseStepListener
Parameters:
description - the name of the test method in the test suite class.

testFinished

public void testFinished(TestOutcome result)
Description copied from class: BaseStepListener
A test has finished.

Specified by:
testFinished in interface StepListener
Overrides:
testFinished in class BaseStepListener
Parameters:
result - the result of the test that just finished.

stepStarted

public void stepStarted(ExecutedStepDescription description)
Description copied from class: BaseStepListener
A step within a test is called. This step might be nested in another step, in which case the original step becomes a group of steps.

Specified by:
stepStarted in interface StepListener
Overrides:
stepStarted in class BaseStepListener
Parameters:
description - the description of the test that is about to be run

skippedStepStarted

public void skippedStepStarted(ExecutedStepDescription description)
Description copied from interface: StepListener
Called when a test step is about to be started, but this step is scheduled to be skipped.

Specified by:
skippedStepStarted in interface StepListener
Overrides:
skippedStepStarted in class BaseStepListener
Parameters:
description - the description of the test that is about to be run (generally a class and method name)

stepFinished

public void stepFinished()
Description copied from interface: StepListener
Called when an test step has finished successfully

Specified by:
stepFinished in interface StepListener
Overrides:
stepFinished in class BaseStepListener

stepFailed

public void stepFailed(StepFailure failure)
Description copied from interface: StepListener
Called when a test step fails.

Specified by:
stepFailed in interface StepListener
Overrides:
stepFailed in class BaseStepListener
Parameters:
failure - describes the test that failed and the exception that was thrown

stepIgnored

public void stepIgnored()
Description copied from interface: StepListener
Called when a step will not be run, generally because a test method is annotated with Ignore.

Specified by:
stepIgnored in interface StepListener
Overrides:
stepIgnored in class BaseStepListener

stepPending

public void stepPending()
Description copied from interface: StepListener
The step is marked as pending.

Specified by:
stepPending in interface StepListener
Overrides:
stepPending in class BaseStepListener

testFailed

public void testFailed(Throwable cause)

testIgnored

public void testIgnored()
Description copied from interface: StepListener
The test as a whole was skipped or ignored.

Specified by:
testIgnored in interface StepListener
Overrides:
testIgnored in class BaseStepListener

testFailed

public void testFailed(TestOutcome testOutcome,
                       Throwable cause)
Description copied from interface: StepListener
The test failed, but not while executing a step.

Specified by:
testFailed in interface StepListener
Overrides:
testFailed in class BaseStepListener
Parameters:
testOutcome - The test outcome structure for the failing test
cause - The exception that triggered the failure


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