public class StepEventBus extends Object
Constructor and Description |
---|
StepEventBus(ScreenshotProcessor screenshotProcessor) |
Modifier and Type | Method and Description |
---|---|
void |
addIssuesToCurrentStory(List<String> issues) |
void |
addIssuesToCurrentTest(List<String> issues) |
void |
addTagsToCurrentStory(List<TestTag> tags) |
void |
addTagsToCurrentTest(List<TestTag> tags) |
boolean |
areStepsRunning() |
void |
assumptionViolated(String message) |
boolean |
aStepInTheCurrentTestHasFailed() |
void |
clear() |
void |
clearStepFailures() |
boolean |
currentTestIsPending() |
void |
dropAllListeners() |
void |
dropListener(StepListener stepListener) |
void |
exampleFinished() |
void |
exampleStarted(Map<String,String> data) |
protected List<StepListener> |
getAllListeners() |
static StepEventBus |
getEventBus()
The event bus used to inform listening classes about when tests and test steps start and finish.
|
boolean |
isCurrentTestDataDriven() |
boolean |
isUniqueSession() |
void |
lastStepFailed(StepFailure failure) |
void |
notifyScreenChange() |
void |
reenableWebdriverCalls() |
StepEventBus |
registerListener(StepListener listener)
Register a listener to receive notification at different points during a test's execution.
|
void |
setUniqueSession(boolean uniqueSession) |
void |
skippedStepStarted(ExecutedStepDescription executedStepDescription)
Record a step that is not scheduled to be executed (e.g.
|
void |
stepFailed(StepFailure failure) |
void |
stepFinished() |
void |
stepIgnored() |
void |
stepPending() |
void |
stepPending(String message) |
void |
stepStarted(ExecutedStepDescription stepDescription)
Start the execution of a test step.
|
void |
takeScreenshot()
Forces Thucydides to take a screenshot now.
|
void |
temporarilySuspendWebdriverCalls() |
void |
testFailed(Throwable cause)
The test failed, but not during the execution of a step.
|
void |
testFinished() |
void |
testFinished(TestOutcome result) |
void |
testIgnored() |
void |
testPending()
Mark the current test method as pending.
|
void |
testRetried() |
void |
testStarted(String testName) |
void |
testStarted(String newTestName,
Class<?> testClass) |
void |
testStarted(String newTestName,
Story story) |
void |
testSuiteFinished() |
boolean |
testSuiteHasStarted() |
void |
testSuiteStarted(Class<?> testClass) |
void |
testSuiteStarted(Story story) |
void |
updateCurrentStepTitle(String stepTitle) |
void |
useExamplesFrom(DataTable table) |
boolean |
webdriverCallsAreSuspended() |
@Inject public StepEventBus(ScreenshotProcessor screenshotProcessor)
public static StepEventBus getEventBus()
public StepEventBus registerListener(StepListener listener)
public void testStarted(String testName)
public boolean isUniqueSession()
public void setUniqueSession(boolean uniqueSession)
protected List<StepListener> getAllListeners()
public void testSuiteStarted(Class<?> testClass)
public void testSuiteStarted(Story story)
public void clear()
public void testFinished()
public void testFinished(TestOutcome result)
public void testRetried()
public void clearStepFailures()
public boolean aStepInTheCurrentTestHasFailed()
public boolean isCurrentTestDataDriven()
public void stepStarted(ExecutedStepDescription stepDescription)
public void skippedStepStarted(ExecutedStepDescription executedStepDescription)
public void stepFinished()
public void stepFailed(StepFailure failure)
public void lastStepFailed(StepFailure failure)
public void stepIgnored()
public void stepPending()
public void stepPending(String message)
public void assumptionViolated(String message)
public void dropListener(StepListener stepListener)
public void dropAllListeners()
public boolean webdriverCallsAreSuspended()
public void reenableWebdriverCalls()
public void temporarilySuspendWebdriverCalls()
public void testFailed(Throwable cause)
cause
- the underlying cause of the failure.public void testPending()
public boolean currentTestIsPending()
public void testIgnored()
public boolean areStepsRunning()
public void notifyScreenChange()
public void testSuiteFinished()
public void updateCurrentStepTitle(String stepTitle)
public void useExamplesFrom(DataTable table)
public void exampleFinished()
public void takeScreenshot()
public boolean testSuiteHasStarted()
Copyright © 2011–2014 Wakaleo Consulting. All rights reserved.