public interface StepListener
| Modifier and Type | Method and Description |
|---|---|
void |
addNewExamplesFrom(DataTable table)
If multiple tables are used, this method will add any new rows to the test data
|
void |
assumptionViolated(java.lang.String message) |
void |
exampleFinished()
An example has finished.
|
void |
exampleStarted(java.util.Map<java.lang.String,java.lang.String> data)
A new example has just started.
|
void |
lastStepFailed(StepFailure failure)
Declare that a step has failed after it has finished.
|
void |
notifyScreenChange() |
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 |
stepPending(java.lang.String message)
The step is marked as pending with a descriptive message.
|
void |
stepStarted(ExecutedStepDescription description)
Called when a test step is about to be started.
|
void |
testFailed(TestOutcome testOutcome,
java.lang.Throwable cause)
The test failed, but not while executing a step.
|
void |
testFinished(TestOutcome result)
Called when a test finishes.
|
default void |
testFinished(TestOutcome result,
boolean isInDataDrivenTest) |
void |
testIgnored()
The test as a whole was ignored.
|
void |
testIsManual() |
void |
testPending()
The test as a whole should be marked as 'pending'.
|
void |
testRetried()
The last test run is about to be restarted
|
void |
testRunFinished() |
void |
testSkipped()
The test as a whole was skipped.
|
void |
testStarted(java.lang.String description)
A test with a given name has started.
|
void |
testStarted(java.lang.String description,
java.lang.String id) |
void |
testSuiteFinished()
End of a test case or story.
|
void |
testSuiteStarted(java.lang.Class<?> storyClass)
Start a test run using a test case or a user story.
|
void |
testSuiteStarted(Story story)
Start a test run using a specific story, without a corresponding Java class.
|
void |
useExamplesFrom(DataTable table)
The current scenario is a data-driven scenario using test data from the specified table.
|
void testSuiteStarted(java.lang.Class<?> storyClass)
void testSuiteStarted(Story story)
void testSuiteFinished()
void testStarted(java.lang.String description)
void testStarted(java.lang.String description,
java.lang.String id)
void testFinished(TestOutcome result)
default void testFinished(TestOutcome result, boolean isInDataDrivenTest)
void testRetried()
void stepStarted(ExecutedStepDescription description)
description - the description of the test that is about to be run
(generally a class and method name)void skippedStepStarted(ExecutedStepDescription description)
description - the description of the test that is about to be run
(generally a class and method name)void stepFailed(StepFailure failure)
failure - describes the test that failed and the exception that was thrownvoid lastStepFailed(StepFailure failure)
void stepIgnored()
Ignore.void stepPending()
void stepPending(java.lang.String message)
message - void stepFinished()
void testFailed(TestOutcome testOutcome, java.lang.Throwable cause)
testOutcome - The test outcome structure for the failing testcause - The exception that triggered the failurevoid testIgnored()
void testSkipped()
void testPending()
void testIsManual()
void notifyScreenChange()
void useExamplesFrom(DataTable table)
void addNewExamplesFrom(DataTable table)
void exampleStarted(java.util.Map<java.lang.String,java.lang.String> data)
void exampleFinished()
void assumptionViolated(java.lang.String message)
void testRunFinished()