public class SilentEventBus extends StepEventBus
| Constructor and Description |
|---|
SilentEventBus(net.thucydides.core.util.EnvironmentVariables environmentVariables) |
| Modifier and Type | Method and Description |
|---|---|
void |
addDescriptionToCurrentTest(java.lang.String description) |
void |
addIssuesToCurrentStory(java.util.List<java.lang.String> issues) |
void |
addIssuesToCurrentTest(java.util.List<java.lang.String> issues) |
void |
addNewExamplesFrom(net.thucydides.core.model.DataTable newTable) |
void |
addTagsToCurrentStory(java.util.List<net.thucydides.core.model.TestTag> tags) |
void |
addTagsToCurrentTest(java.util.List<net.thucydides.core.model.TestTag> tags) |
boolean |
areStepsRunning() |
boolean |
assumptionViolated() |
void |
assumptionViolated(java.lang.String message) |
boolean |
aStepInTheCurrentTestHasFailed() |
void |
cancelPreviousTest() |
void |
clear() |
void |
clearStepFailures() |
boolean |
currentTestIsSuspended() |
boolean |
currentTestOutcomeIsDataDriven() |
void |
disableSoftAsserts() |
void |
dropAllListeners() |
void |
dropListener(net.thucydides.core.steps.StepListener stepListener) |
void |
enableDryRun() |
void |
enableSoftAsserts() |
void |
exampleFinished() |
void |
exampleStarted(java.util.Map<java.lang.String,java.lang.String> data) |
void |
exceptionExpected(java.lang.Class<? extends java.lang.Throwable> expected) |
java.lang.String |
getAssumptionViolatedMessage() |
BaseStepListener |
getBaseStepListener() |
java.util.Optional<net.thucydides.core.model.TestStep> |
getCurrentStep() |
java.util.Optional<net.thucydides.core.model.TestResult> |
getForcedResult() |
java.lang.String |
getTestSource() |
boolean |
isBaseStepListenerRegistered() |
boolean |
isCurrentTestDataDriven() |
boolean |
isDryRun() |
boolean |
isUniqueSession() |
void |
lastStepFailed(net.thucydides.core.steps.StepFailure failure) |
void |
lastTestPassedAfterRetries(int remainingTries,
java.util.List<java.lang.String> failureMessages,
net.thucydides.core.steps.TestFailureCause testFailureCause) |
void |
mergePreviousStep() |
void |
notifyScreenChange() |
void |
reenableWebdriverCalls() |
StepEventBus |
registerListener(net.thucydides.core.steps.StepListener listener)
Register a listener to receive notification at different points during a test's execution.
|
void |
reset() |
java.util.Optional<net.thucydides.core.model.TestResult> |
resultSoFar() |
void |
setAllStepsTo(net.thucydides.core.model.TestResult result)
Set all steps in the current test outcome to a given result.
|
void |
setBackgroundDescription(java.lang.String description) |
void |
setBackgroundTitle(java.lang.String title) |
void |
setTestSource(java.lang.String testSource) |
void |
setUniqueSession(boolean uniqueSession) |
void |
skippedStepStarted(net.thucydides.core.steps.ExecutedStepDescription executedStepDescription)
Record a step that is not scheduled to be executed (e.g.
|
boolean |
softAssertsActive() |
void |
stepFailed(net.thucydides.core.steps.StepFailure failure) |
void |
stepFinished() |
void |
stepIgnored() |
void |
stepPending() |
void |
stepPending(java.lang.String message) |
void |
stepStarted(net.thucydides.core.steps.ExecutedStepDescription stepDescription)
Start the execution of a test step.
|
void |
stepStarted(net.thucydides.core.steps.ExecutedStepDescription stepDescription,
boolean isPrecondition)
Start the execution of a test step.
|
void |
suspendTest() |
void |
suspendTest(net.thucydides.core.model.TestResult result) |
void |
takeScreenshot()
Forces Thucydides to take a screenshot now.
|
void |
temporarilySuspendWebdriverCalls() |
void |
testFailed(java.lang.Throwable cause)
The test failed, but not during the execution of a step.
|
void |
testFinished() |
void |
testFinished(net.thucydides.core.model.TestOutcome result) |
void |
testIgnored() |
void |
testIsManual()
Mark the current test method as pending.
|
void |
testPending()
Mark the current test method as pending.
|
void |
testRetried() |
void |
testRunFinished() |
void |
testSkipped() |
void |
testStarted(java.lang.String testName) |
void |
testStarted(java.lang.String newTestName,
java.lang.Class<?> testClass) |
void |
testStarted(java.lang.String newTestName,
net.thucydides.core.model.Story story) |
void |
testStarted(java.lang.String testName,
java.lang.String id) |
void |
testSuiteFinished() |
boolean |
testSuiteHasStarted() |
void |
testSuiteStarted(java.lang.Class<?> testClass) |
void |
testSuiteStarted(net.thucydides.core.model.Story story) |
void |
updateCurrentStepTitle(java.lang.String stepTitle) |
void |
updateCurrentStepTitleAsPrecondition(java.lang.String stepTitle) |
void |
updateOverallResults() |
void |
useExamplesFrom(net.thucydides.core.model.DataTable table) |
boolean |
webdriverCallsAreSuspended() |
castActor, clearEventBusFor, eventBusFor, getEnvironmentVariables, getEventBus, initialiseSession, overrideEventBusWith, reenableWebDriver, setCurrentBusToEventBusFor, testFinished, unsuspend, useScenarioOutlinepublic SilentEventBus(net.thucydides.core.util.EnvironmentVariables environmentVariables)
public StepEventBus registerListener(net.thucydides.core.steps.StepListener listener)
StepEventBusregisterListener in class StepEventBuspublic boolean isBaseStepListenerRegistered()
isBaseStepListenerRegistered in class StepEventBuspublic BaseStepListener getBaseStepListener()
getBaseStepListener in class StepEventBuspublic void testStarted(java.lang.String testName)
testStarted in class StepEventBuspublic void testStarted(java.lang.String testName,
java.lang.String id)
testStarted in class StepEventBuspublic boolean isUniqueSession()
isUniqueSession in class StepEventBuspublic void setUniqueSession(boolean uniqueSession)
setUniqueSession in class StepEventBuspublic void testStarted(java.lang.String newTestName,
net.thucydides.core.model.Story story)
testStarted in class StepEventBuspublic void testStarted(java.lang.String newTestName,
java.lang.Class<?> testClass)
testStarted in class StepEventBuspublic void testSuiteStarted(java.lang.Class<?> testClass)
testSuiteStarted in class StepEventBuspublic void testSuiteStarted(net.thucydides.core.model.Story story)
testSuiteStarted in class StepEventBuspublic void clear()
clear in class StepEventBuspublic void testFinished()
testFinished in class StepEventBuspublic void testFinished(net.thucydides.core.model.TestOutcome result)
testFinished in class StepEventBuspublic void testRetried()
testRetried in class StepEventBuspublic void clearStepFailures()
clearStepFailures in class StepEventBuspublic boolean aStepInTheCurrentTestHasFailed()
aStepInTheCurrentTestHasFailed in class StepEventBuspublic boolean isCurrentTestDataDriven()
isCurrentTestDataDriven in class StepEventBuspublic void stepStarted(net.thucydides.core.steps.ExecutedStepDescription stepDescription)
StepEventBusstepStarted in class StepEventBuspublic void stepStarted(net.thucydides.core.steps.ExecutedStepDescription stepDescription,
boolean isPrecondition)
StepEventBusstepStarted in class StepEventBuspublic void skippedStepStarted(net.thucydides.core.steps.ExecutedStepDescription executedStepDescription)
StepEventBusskippedStepStarted in class StepEventBuspublic void stepFinished()
stepFinished in class StepEventBuspublic void stepFailed(net.thucydides.core.steps.StepFailure failure)
stepFailed in class StepEventBuspublic void lastStepFailed(net.thucydides.core.steps.StepFailure failure)
lastStepFailed in class StepEventBuspublic void stepIgnored()
stepIgnored in class StepEventBuspublic void stepPending()
stepPending in class StepEventBuspublic void stepPending(java.lang.String message)
stepPending in class StepEventBuspublic void assumptionViolated(java.lang.String message)
assumptionViolated in class StepEventBuspublic void dropListener(net.thucydides.core.steps.StepListener stepListener)
dropListener in class StepEventBuspublic void dropAllListeners()
dropAllListeners in class StepEventBuspublic boolean webdriverCallsAreSuspended()
webdriverCallsAreSuspended in class StepEventBuspublic void reenableWebdriverCalls()
reenableWebdriverCalls in class StepEventBuspublic void temporarilySuspendWebdriverCalls()
temporarilySuspendWebdriverCalls in class StepEventBuspublic void testFailed(java.lang.Throwable cause)
StepEventBustestFailed in class StepEventBuscause - the underlying cause of the failure.public void testPending()
StepEventBustestPending in class StepEventBuspublic void testIsManual()
StepEventBustestIsManual in class StepEventBuspublic void suspendTest()
suspendTest in class StepEventBuspublic void suspendTest(net.thucydides.core.model.TestResult result)
suspendTest in class StepEventBuspublic boolean currentTestIsSuspended()
currentTestIsSuspended in class StepEventBuspublic boolean assumptionViolated()
assumptionViolated in class StepEventBuspublic void testIgnored()
testIgnored in class StepEventBuspublic void testSkipped()
testSkipped in class StepEventBuspublic boolean areStepsRunning()
areStepsRunning in class StepEventBuspublic void notifyScreenChange()
notifyScreenChange in class StepEventBuspublic void testSuiteFinished()
testSuiteFinished in class StepEventBuspublic void testRunFinished()
testRunFinished in class StepEventBuspublic void updateCurrentStepTitle(java.lang.String stepTitle)
updateCurrentStepTitle in class StepEventBuspublic void updateCurrentStepTitleAsPrecondition(java.lang.String stepTitle)
updateCurrentStepTitleAsPrecondition in class StepEventBuspublic void addIssuesToCurrentStory(java.util.List<java.lang.String> issues)
addIssuesToCurrentStory in class StepEventBuspublic void addIssuesToCurrentTest(java.util.List<java.lang.String> issues)
addIssuesToCurrentTest in class StepEventBuspublic void addTagsToCurrentTest(java.util.List<net.thucydides.core.model.TestTag> tags)
addTagsToCurrentTest in class StepEventBuspublic void addTagsToCurrentStory(java.util.List<net.thucydides.core.model.TestTag> tags)
addTagsToCurrentStory in class StepEventBuspublic void addDescriptionToCurrentTest(java.lang.String description)
addDescriptionToCurrentTest in class StepEventBuspublic void setBackgroundTitle(java.lang.String title)
setBackgroundTitle in class StepEventBuspublic void setBackgroundDescription(java.lang.String description)
setBackgroundDescription in class StepEventBuspublic void useExamplesFrom(net.thucydides.core.model.DataTable table)
useExamplesFrom in class StepEventBuspublic void addNewExamplesFrom(net.thucydides.core.model.DataTable newTable)
addNewExamplesFrom in class StepEventBuspublic void exampleStarted(java.util.Map<java.lang.String,java.lang.String> data)
exampleStarted in class StepEventBuspublic void exampleFinished()
exampleFinished in class StepEventBuspublic boolean currentTestOutcomeIsDataDriven()
currentTestOutcomeIsDataDriven in class StepEventBuspublic void takeScreenshot()
StepEventBustakeScreenshot in class StepEventBuspublic boolean testSuiteHasStarted()
testSuiteHasStarted in class StepEventBuspublic java.lang.String getAssumptionViolatedMessage()
getAssumptionViolatedMessage in class StepEventBuspublic java.util.Optional<net.thucydides.core.model.TestStep> getCurrentStep()
getCurrentStep in class StepEventBuspublic void setAllStepsTo(net.thucydides.core.model.TestResult result)
StepEventBussetAllStepsTo in class StepEventBuspublic java.util.Optional<net.thucydides.core.model.TestResult> getForcedResult()
getForcedResult in class StepEventBuspublic boolean isDryRun()
isDryRun in class StepEventBuspublic void enableDryRun()
enableDryRun in class StepEventBuspublic void exceptionExpected(java.lang.Class<? extends java.lang.Throwable> expected)
exceptionExpected in class StepEventBuspublic java.util.Optional<net.thucydides.core.model.TestResult> resultSoFar()
resultSoFar in class StepEventBuspublic void mergePreviousStep()
mergePreviousStep in class StepEventBuspublic void updateOverallResults()
updateOverallResults in class StepEventBuspublic void reset()
reset in class StepEventBuspublic void disableSoftAsserts()
disableSoftAsserts in class StepEventBuspublic void enableSoftAsserts()
enableSoftAsserts in class StepEventBuspublic boolean softAssertsActive()
softAssertsActive in class StepEventBuspublic java.lang.String getTestSource()
getTestSource in class StepEventBuspublic void setTestSource(java.lang.String testSource)
setTestSource in class StepEventBuspublic void cancelPreviousTest()
cancelPreviousTest in class StepEventBuspublic void lastTestPassedAfterRetries(int remainingTries,
java.util.List<java.lang.String> failureMessages,
net.thucydides.core.steps.TestFailureCause testFailureCause)
lastTestPassedAfterRetries in class StepEventBus