public class SerenityRunner
extends org.junit.runners.BlockJUnit4ClassRunner
Constructor and Description |
---|
SerenityRunner(java.lang.Class<?> klass)
Creates a new test runner for WebDriver web tests.
|
SerenityRunner(java.lang.Class<?> klass,
net.thucydides.core.batches.BatchManager batchManager) |
SerenityRunner(java.lang.Class<?> klass,
com.google.inject.Injector injector) |
SerenityRunner(java.lang.Class<?> klass,
com.google.inject.Module module)
Creates a new test runner for WebDriver web tests.
|
SerenityRunner(java.lang.Class<?> klass,
net.thucydides.core.webdriver.WebDriverFactory webDriverFactory) |
SerenityRunner(java.lang.Class<?> klass,
net.thucydides.core.webdriver.WebDriverFactory webDriverFactory,
net.thucydides.core.webdriver.Configuration configuration) |
SerenityRunner(java.lang.Class<?> klass,
net.thucydides.core.webdriver.WebDriverFactory webDriverFactory,
net.thucydides.core.webdriver.Configuration configuration,
net.thucydides.core.batches.BatchManager batchManager) |
SerenityRunner(java.lang.Class<?> klass,
net.thucydides.core.webdriver.WebdriverManager webDriverManager,
net.thucydides.core.webdriver.Configuration configuration,
net.thucydides.core.batches.BatchManager batchManager) |
Modifier and Type | Method and Description |
---|---|
java.io.File |
getOutputDirectory() |
net.thucydides.core.pages.Pages |
getPages() |
java.util.List<net.thucydides.core.model.TestOutcome> |
getTestOutcomes()
Find the current set of test outcomes produced by the test execution.
|
boolean |
isAWebTest() |
void |
run(org.junit.runner.notification.RunNotifier notifier)
Runs the tests in the acceptance test case.
|
void |
subscribeReporter(net.thucydides.core.reports.AcceptanceTestReporter reporter)
To generate reports, different AcceptanceTestReporter instances need to
subscribe to the listener.
|
void |
useQualifier(java.lang.String qualifier) |
public SerenityRunner(java.lang.Class<?> klass) throws org.junit.runners.model.InitializationError
klass
- the class under testorg.junit.runners.model.InitializationError
- if some JUnit-related initialization problem occurredpublic SerenityRunner(java.lang.Class<?> klass, com.google.inject.Module module) throws org.junit.runners.model.InitializationError
klass
- the class under testmodule
- used to inject a custom Guice moduleorg.junit.runners.model.InitializationError
- if some JUnit-related initialization problem occurredpublic SerenityRunner(java.lang.Class<?> klass, com.google.inject.Injector injector) throws org.junit.runners.model.InitializationError
org.junit.runners.model.InitializationError
public SerenityRunner(java.lang.Class<?> klass, net.thucydides.core.webdriver.WebDriverFactory webDriverFactory) throws org.junit.runners.model.InitializationError
org.junit.runners.model.InitializationError
public SerenityRunner(java.lang.Class<?> klass, net.thucydides.core.webdriver.WebDriverFactory webDriverFactory, net.thucydides.core.webdriver.Configuration configuration) throws org.junit.runners.model.InitializationError
org.junit.runners.model.InitializationError
public SerenityRunner(java.lang.Class<?> klass, net.thucydides.core.webdriver.WebDriverFactory webDriverFactory, net.thucydides.core.webdriver.Configuration configuration, net.thucydides.core.batches.BatchManager batchManager) throws org.junit.runners.model.InitializationError
org.junit.runners.model.InitializationError
public SerenityRunner(java.lang.Class<?> klass, net.thucydides.core.batches.BatchManager batchManager) throws org.junit.runners.model.InitializationError
org.junit.runners.model.InitializationError
public SerenityRunner(java.lang.Class<?> klass, net.thucydides.core.webdriver.WebdriverManager webDriverManager, net.thucydides.core.webdriver.Configuration configuration, net.thucydides.core.batches.BatchManager batchManager) throws org.junit.runners.model.InitializationError
org.junit.runners.model.InitializationError
public net.thucydides.core.pages.Pages getPages()
public java.io.File getOutputDirectory()
public void subscribeReporter(net.thucydides.core.reports.AcceptanceTestReporter reporter)
reporter
- an implementation of the AcceptanceTestReporter interface.public void useQualifier(java.lang.String qualifier)
public void run(org.junit.runner.notification.RunNotifier notifier)
run
in class org.junit.runners.ParentRunner<org.junit.runners.model.FrameworkMethod>
public java.util.List<net.thucydides.core.model.TestOutcome> getTestOutcomes()
public boolean isAWebTest()