net.thucydides.junit.steps
Class ScenarioStepListener
java.lang.Object
org.junit.runner.notification.RunListener
net.thucydides.junit.steps.ScenarioStepListener
public class ScenarioStepListener
- extends org.junit.runner.notification.RunListener
Observes the test run and stores test run details for later reporting.
Observations are recorded in an AcceptanceTestRun object. This includes
recording the names and results of each test, and taking and storing
screenshots at strategic points during the tests.
- Author:
- johnsmart
| Methods inherited from class org.junit.runner.notification.RunListener |
testAssumptionFailure, testRunFinished |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ScenarioStepListener
public ScenarioStepListener(org.openqa.selenium.TakesScreenshot driver,
Configuration configuration)
getTestRunResults
public List<AcceptanceTestRun> getTestRunResults()
getPhotographer
public Photographer getPhotographer()
getCurrentAcceptanceTestRun
protected AcceptanceTestRun getCurrentAcceptanceTestRun()
getNewCurrentAcceptanceTestRun
protected AcceptanceTestRun getNewCurrentAcceptanceTestRun()
testRunStarted
public void testRunStarted(org.junit.runner.Description description)
throws Exception
- Overrides:
testRunStarted in class org.junit.runner.notification.RunListener
- Throws:
Exception
testStarted
public void testStarted(org.junit.runner.Description description)
throws Exception
- Overrides:
testStarted in class org.junit.runner.notification.RunListener
- Throws:
Exception
testGroupStarted
public void testGroupStarted(AnnotatedDescription testDescription)
testIgnored
public void testIgnored(org.junit.runner.Description description)
throws Exception
- Overrides:
testIgnored in class org.junit.runner.notification.RunListener
- Throws:
Exception
testFailure
public void testFailure(org.junit.runner.notification.Failure failure)
throws Exception
- Overrides:
testFailure in class org.junit.runner.notification.RunListener
- Throws:
Exception
testFinished
public void testFinished(org.junit.runner.Description description)
throws Exception
- Overrides:
testFinished in class org.junit.runner.notification.RunListener
- Throws:
Exception
aTestCalled
protected String aTestCalled(org.junit.runner.Description description)
Copyright © 2011 Wakaleo Consulting. All Rights Reserved.