All Methods Static Methods Instance Methods Concrete Methods
Modifier and Type |
Method and Description |
void |
addDescriptionToCurrentTest(String description) |
void |
addIssuesToCurrentStory(List<String> issues) |
void |
addIssuesToCurrentTest(List<String> issues) |
void |
addNewExamplesFrom(DataTable newTable) |
void |
addTagsToCurrentStory(List<TestTag> tags) |
void |
addTagsToCurrentTest(List<TestTag> tags) |
boolean |
areStepsRunning() |
boolean |
assumptionViolated() |
void |
assumptionViolated(String message) |
boolean |
aStepInTheCurrentTestHasFailed() |
void |
cancelPreviousTest() |
void |
castActor(String name) |
void |
clear() |
static void |
clearEventBusFor(Object key) |
void |
clearStepFailures() |
boolean |
currentTestHasTag(TestTag tag) |
boolean |
currentTestIsSuspended() |
boolean |
currentTestOutcomeIsDataDriven() |
void |
disableSoftAsserts() |
void |
dropAgent(Agent agent) |
void |
dropAgents(Agent... agents) |
void |
dropAllListeners() |
void |
dropListener(StepListener stepListener) |
void |
enableDryRun() |
void |
enableSoftAsserts() |
static StepEventBus |
eventBusFor(Object key) |
void |
exampleFinished() |
void |
exampleStarted(Map<String,String> data) |
void |
exampleStarted(Map<String,String> data,
String exampleName) |
void |
exceptionExpected(Class<? extends Throwable> expected) |
void |
finishTestRun() |
static void |
forceClearEventBusFor(Object key) |
protected List<StepListener> |
getAllListeners() |
String |
getAssumptionViolatedMessage() |
BaseStepListener |
getBaseStepListener() |
Optional<TestStep> |
getCurrentStep() |
EnvironmentVariables |
getEnvironmentVariables() |
static StepEventBus |
getEventBus()
The event bus used to inform listening classes about when tests and test steps start and finish.
|
Optional<TestResult> |
getForcedResult() |
static StepEventBus |
getParallelEventBus()
If called from a Cucumber parallel Test session will return the corresponding StepEventBus, otherwise
will redirect to getEventBus()
|
String |
getTestSource() |
boolean |
inFixtureMethod() |
void |
initialiseSession() |
boolean |
isASingleBrowserScenario() |
boolean |
isBaseStepListenerRegistered() |
boolean |
isCurrentTestDataDriven() |
boolean |
isDryRun() |
boolean |
isNewSingleBrowserScenario() |
boolean |
isUniqueSession() |
void |
lastStepFailed(StepFailure failure) |
void |
lastTestPassedAfterRetries(int remainingTries,
List<String> failureMessages,
TestFailureCause testFailureCause) |
void |
mergeActivitiesToDefaultStepListener(Agent... agents) |
void |
mergeActivitiesToDefaultStepListener(String stepName,
Agent... agents) |
void |
mergePreviousStep() |
void |
notifyFailure() |
void |
notifyScreenChange() |
static void |
overrideEventBusWith(StepEventBus stepEventBus) |
void |
reenableWebDriver() |
void |
reenableWebdriverCalls() |
void |
registerAgent(Agent agent) |
void |
registerAgents(Agent... agents) |
StepEventBus |
registerListener(StepListener listener)
Register a listener to receive notification at different points during a test's execution.
|
void |
reset() |
Optional<TestResult> |
resultSoFar() |
void |
setAllStepsTo(TestResult result)
Set all steps in the current test outcome to a given result.
|
void |
setBackgroundDescription(String description) |
void |
setBackgroundTitle(String title) |
static void |
setCurrentBusToEventBusFor(Object key) |
static void |
setNoCleanupForStickyBuses(boolean noCleanup) |
void |
setRule(Rule rule) |
void |
setTestSource(String testSource) |
void |
setUniqueSession(boolean uniqueSession) |
void |
skippedStepStarted(ExecutedStepDescription executedStepDescription)
Record a step that is not scheduled to be executed (e.g.
|
boolean |
softAssertsActive() |
void |
stepFailed(StepFailure failure) |
void |
stepFinished() |
void |
stepFinished(List<ScreenshotAndHtmlSource> screenshots)
Called from serial replay - StepFinishedEvent
|
void |
stepIgnored() |
void |
stepPending() |
void |
stepPending(String message) |
void |
stepStarted(ExecutedStepDescription stepDescription)
Start the execution of a test step.
|
void |
stepStarted(ExecutedStepDescription stepDescription,
boolean isPrecondition)
Start the execution of a test step.
|
void |
suspendTest() |
void |
suspendTest(TestResult result) |
void |
takeScreenshot()
Forces Thucydides to take a screenshot now.
|
List<ScreenshotAndHtmlSource> |
takeScreenshots() |
void |
temporarilySuspendWebdriverCalls() |
void |
testAborted() |
void |
testFailed(Throwable cause)
The test failed, but not during the execution of a step.
|
void |
testFinished() |
void |
testFinished(boolean inDataDrivenTest) |
void |
testFinished(boolean inDataDrivenTest,
ZonedDateTime finishTime) |
void |
testFinished(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(String testName) |
void |
testStarted(String newTestName,
Class<?> testClass) |
void |
testStarted(String newTestName,
Story story) |
void |
testStarted(String testName,
String id) |
void |
testStarted(String testName,
String id,
ZonedDateTime startTime) |
void |
testSuiteFinished() |
boolean |
testSuiteHasStarted() |
void |
testSuiteStarted(Class<?> testClass) |
void |
testSuiteStarted(Story story) |
void |
unsuspend()
Removes a test suspension
|
void |
updateCurrentStepTitle(String stepTitle) |
void |
updateCurrentStepTitleAsPrecondition(String stepTitle) |
void |
updateExampleLineNumber(int lineNumber) |
void |
updateOverallResults() |
void |
useExamplesFrom(DataTable table) |
void |
useScenarioOutline(String scenarioOutline) |
boolean |
webdriverCallsAreSuspended() |
void |
wrapUpCurrentCucumberStep() |