Package net.serenitybdd.junit.runners
Class SerenityParameterizedRunner
java.lang.Object
org.junit.runner.Runner
org.junit.runners.ParentRunner<org.junit.runner.Runner>
org.junit.runners.Suite
net.serenitybdd.junit.runners.SerenityParameterizedRunner
- All Implemented Interfaces:
net.thucydides.model.tags.Taggable,org.junit.runner.Describable,org.junit.runner.manipulation.Filterable,org.junit.runner.manipulation.Orderable,org.junit.runner.manipulation.Sortable
public class SerenityParameterizedRunner
extends org.junit.runners.Suite
implements net.thucydides.model.tags.Taggable
Run a Serenity test suite using a set of data.
Similar to the JUnit parameterized tests, but better ;-).
-
Nested Class Summary
Nested classes/interfaces inherited from class org.junit.runners.Suite
org.junit.runners.Suite.SuiteClasses -
Constructor Summary
ConstructorsConstructorDescriptionSerenityParameterizedRunner(Class<?> klass) Only called reflectively.SerenityParameterizedRunner(Class<?> klass, net.thucydides.core.webdriver.DriverConfiguration configuration, net.thucydides.core.webdriver.WebDriverFactory webDriverFactory, net.thucydides.model.batches.BatchManager batchManager) Test runner used for testing purposes. -
Method Summary
Modifier and TypeMethodDescriptionvoidprotected List<org.junit.runner.Runner> List<org.junit.runner.Runner> intgetThreadCountFor(Class<?> klass) voidrun(org.junit.runner.notification.RunNotifier notifier) booleanrunTestsInParallelFor(Class<?> klass) voidsubscribeReporter(net.thucydides.model.reports.AcceptanceTestReporter reporter) Methods inherited from class org.junit.runners.Suite
describeChild, emptySuite, runChildMethods inherited from class org.junit.runners.ParentRunner
childrenInvoker, classBlock, classRules, collectInitializationErrors, createTestClass, filter, getDescription, getName, getRunnerAnnotations, getTestClass, isIgnored, order, runLeaf, setScheduler, sort, validatePublicVoidNoArgMethods, withAfterClasses, withBeforeClasses, withInterruptIsolationMethods inherited from class org.junit.runner.Runner
testCount
-
Constructor Details
-
SerenityParameterizedRunner
public SerenityParameterizedRunner(Class<?> klass, net.thucydides.core.webdriver.DriverConfiguration configuration, net.thucydides.core.webdriver.WebDriverFactory webDriverFactory, net.thucydides.model.batches.BatchManager batchManager) throws Throwable Test runner used for testing purposes.- Parameters:
klass- The test class to runconfiguration- current system configuration (usually mocked)webDriverFactory- a webdriver factory (can be mocked)batchManager- a batch manager to process batched testing- Throws:
Throwable- - cause anything can happen!
-
SerenityParameterizedRunner
Only called reflectively. Do not use programmatically.- Parameters:
klass- The test class to run- Throws:
Throwable- Cause shit happens
-
-
Method Details
-
runTestsInParallelFor
-
getThreadCountFor
-
getChildren
- Overrides:
getChildrenin classorg.junit.runners.Suite
-
run
public void run(org.junit.runner.notification.RunNotifier notifier) - Overrides:
runin classorg.junit.runners.ParentRunner<org.junit.runner.Runner>
-
generateReports
public void generateReports() -
subscribeReporter
public void subscribeReporter(net.thucydides.model.reports.AcceptanceTestReporter reporter) -
getRunners
-