public class ConsoleStepListener extends BaseStepListener
BaseStepListener.StepMerger, BaseStepListener.StepMutator| Constructor and Description |
|---|
ConsoleStepListener() |
| Modifier and Type | Method and Description |
|---|---|
void |
assumptionViolated(java.lang.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,
java.lang.Throwable cause)
The test failed, but not while executing a step.
|
void |
testFailed(java.lang.Throwable cause) |
void |
testFinished(TestOutcome result)
A test has finished.
|
void |
testIgnored()
The test as a whole was ignored.
|
void |
testPending()
The test as a whole should be marked as 'pending'.
|
void |
testSkipped()
The test as a whole was skipped.
|
void |
testStarted(java.lang.String description)
An individual test starts.
|
java.lang.String |
toString() |
addIssuesToCurrentStory, addNewExamplesFrom, addRestQuery, addTagsToCurrentStory, aStepHasFailed, cancelPreviousTest, clearForcedResult, cloneCurrentStep, currentStepIsAPrecondition, exampleFinished, exampleStarted, exceptionExpected, getCurrentStepMethod, getDriver, getEventBus, getForcedResult, getPhotographer, getStepCount, getTestFailureCause, getTestOutcomes, lastStepFailed, lastTestPassedAfterRetries, mergeLast, notifyScreenChange, recordRestQuery, setAllStepsTo, setDriver, setEventBus, stepPending, takeScreenshot, testIsManual, testRetried, testRunFinished, testStarted, testSuiteFinished, testSuiteRunning, testSuiteStarted, testSuiteStarted, updateCurrentStepTitle, updateOverallResults, useExamplesFrompublic java.lang.String toString()
toString in class java.lang.Objectpublic void testStarted(java.lang.String description)
BaseStepListenertestStarted in interface StepListenertestStarted in class BaseStepListenerdescription - the name of the test method in the test suite class.public void testFinished(TestOutcome result)
BaseStepListenertestFinished in interface StepListenertestFinished in class BaseStepListenerresult - the result of the test that just finished.public void stepStarted(ExecutedStepDescription description)
BaseStepListenerstepStarted in interface StepListenerstepStarted in class BaseStepListenerdescription - the description of the test that is about to be runpublic void skippedStepStarted(ExecutedStepDescription description)
StepListenerskippedStepStarted in interface StepListenerskippedStepStarted in class BaseStepListenerdescription - the description of the test that is about to be run
(generally a class and method name)public void stepFinished()
StepListenerstepFinished in interface StepListenerstepFinished in class BaseStepListenerpublic void stepFailed(StepFailure failure)
StepListenerstepFailed in interface StepListenerstepFailed in class BaseStepListenerfailure - describes the test that failed and the exception that was thrownpublic void stepIgnored()
StepListenerIgnore.stepIgnored in interface StepListenerstepIgnored in class BaseStepListenerpublic void stepPending()
StepListenerstepPending in interface StepListenerstepPending in class BaseStepListenerpublic void assumptionViolated(java.lang.String message)
assumptionViolated in interface StepListenerassumptionViolated in class BaseStepListenerpublic void testFailed(java.lang.Throwable cause)
public void testIgnored()
StepListenertestIgnored in interface StepListenertestIgnored in class BaseStepListenerpublic void testSkipped()
StepListenertestSkipped in interface StepListenertestSkipped in class BaseStepListenerpublic void testPending()
StepListenertestPending in interface StepListenertestPending in class BaseStepListenerpublic void testFailed(TestOutcome testOutcome, java.lang.Throwable cause)
StepListenertestFailed in interface StepListenertestFailed in class BaseStepListenertestOutcome - The test outcome structure for the failing testcause - The exception that triggered the failure