public class ConsoleStepListener extends BaseStepListener
BaseStepListener.ScreenshotType
Constructor and Description |
---|
ConsoleStepListener() |
Modifier and Type | Method and Description |
---|---|
void |
assumptionViolated(String message) |
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() |
addIssuesToCurrentStory, addTagsToCurrentStory, aStepHasFailed, exampleFinished, exampleStarted, getClock, getCurrentTestOutcome, getDriver, getEventBus, getPhotographer, getProxyFactory, getTestFailureCause, getTestOutcomes, lastStepFailed, notifyScreenChange, screenshots, setDriver, setEventBus, stepPending, takeScreenshot, testRetried, testSuiteFinished, testSuiteRunning, testSuiteStarted, testSuiteStarted, updateCurrentStepTitle, useExamplesFrom
public void testStarted(String description)
BaseStepListener
testStarted
in interface StepListener
testStarted
in class BaseStepListener
description
- the name of the test method in the test suite class.public void testFinished(TestOutcome result)
BaseStepListener
testFinished
in interface StepListener
testFinished
in class BaseStepListener
result
- the result of the test that just finished.public void stepStarted(ExecutedStepDescription description)
BaseStepListener
stepStarted
in interface StepListener
stepStarted
in class BaseStepListener
description
- the description of the test that is about to be runpublic void skippedStepStarted(ExecutedStepDescription description)
StepListener
skippedStepStarted
in interface StepListener
skippedStepStarted
in class BaseStepListener
description
- the description of the test that is about to be run
(generally a class and method name)public void stepFinished()
StepListener
stepFinished
in interface StepListener
stepFinished
in class BaseStepListener
public void stepFailed(StepFailure failure)
StepListener
stepFailed
in interface StepListener
stepFailed
in class BaseStepListener
failure
- describes the test that failed and the exception that was thrownpublic void stepIgnored()
StepListener
Ignore
.stepIgnored
in interface StepListener
stepIgnored
in class BaseStepListener
public void stepPending()
StepListener
stepPending
in interface StepListener
stepPending
in class BaseStepListener
public void assumptionViolated(String message)
assumptionViolated
in interface StepListener
assumptionViolated
in class BaseStepListener
public void testFailed(Throwable cause)
public void testIgnored()
StepListener
testIgnored
in interface StepListener
testIgnored
in class BaseStepListener
public void testFailed(TestOutcome testOutcome, Throwable cause)
StepListener
testFailed
in interface StepListener
testFailed
in class BaseStepListener
testOutcome
- The test outcome structure for the failing testcause
- The exception that triggered the failureCopyright © 2011–2014 Wakaleo Consulting. All rights reserved.