Package net.thucydides.core.steps
Interface StepPublisher
- All Known Implementing Classes:
BaseStepListener
public interface StepPublisher
Represents a class that monitors step results and can report on test outcomes.
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Should return true if a step failure has been logged.org.openqa.selenium.WebDriver
The currently-used WebDriver instance for these tests.If a test failed, what was the error.A step listener should be able to return a set of test results at the end of the test run.void
setDriver
(org.openqa.selenium.WebDriver driver) Used to update the webdriver driver for screenshots if a listener is reused between scenarios.
-
Method Details
-
getTestOutcomes
List<TestOutcome> getTestOutcomes()A step listener should be able to return a set of test results at the end of the test run. -
setDriver
void setDriver(org.openqa.selenium.WebDriver driver) Used to update the webdriver driver for screenshots if a listener is reused between scenarios. -
getDriver
org.openqa.selenium.WebDriver getDriver()The currently-used WebDriver instance for these tests. -
aStepHasFailed
boolean aStepHasFailed()Should return true if a step failure has been logged. We need to share this information if multiple step libraries are used. -
firstFailingStep
-
getTestFailureCause
FailureCause getTestFailureCause()If a test failed, what was the error.
-