net.thucydides.core.steps
Interface StepPublisher

Package class diagram package StepPublisher
All Known Implementing Classes:
BaseStepListener, ConsoleStepListener

public interface StepPublisher

Represents a class that monitors step results and can report on test outcomes.


Method Summary
 boolean aStepHasFailed()
          Should return true if a step failure has been logged.
 org.openqa.selenium.WebDriver getDriver()
          The currently-used WebDriver instance for these tests.
 Throwable getTestFailureCause()
          If a test failed, what was the error.
 List<TestOutcome> getTestOutcomes()
          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 Detail

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.


getTestFailureCause

Throwable getTestFailureCause()
If a test failed, what was the error.



Copyright © 2011-2013 Wakaleo Consulting. All Rights Reserved.