|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.junit.runner.Runner
org.junit.runners.ParentRunner<org.junit.runner.Runner>
org.junit.runners.Suite
org.easetech.easytest.runner.BaseSuite
org.easetech.easytest.runner.DataDrivenTestRunner
public class DataDrivenTestRunner
An implementation of Suite that encapsulates the DataDrivenTestRunner.EasyTestRunner in order to provide users with clear
indication of which test method is run and what is the input test data that the method is run with. For example, when
a user runs the test method with name : getTestData with the following test data:
DataDrivenTestRunner, will provide the details of the executing test method in the JUnit supported IDEs
like this:
DataDrivenTestRunner.EasyTestRunner
| Nested Class Summary | |
|---|---|
class |
DataDrivenTestRunner.EasyTestRunner
A BlockJUnit4ClassRunner Runner implementation that adds support of input parameters as part of the
Test annotation. |
| Nested classes/interfaces inherited from class org.junit.runners.Suite |
|---|
org.junit.runners.Suite.SuiteClasses |
| Field Summary | |
|---|---|
protected static org.slf4j.Logger |
PARAM_LOG
An instance of logger associated with the test framework. |
| Fields inherited from class org.easetech.easytest.runner.BaseSuite |
|---|
methodsWithData, methodsWithNoData, runners, writableData |
| Constructor Summary | |
|---|---|
DataDrivenTestRunner(Class<?> klass)
Construct a new DataDrivenTest. |
|
| Method Summary |
|---|
| Methods inherited from class org.easetech.easytest.runner.BaseSuite |
|---|
getChildren, registerConverter, withAfterClasses, withBeforeClasses |
| Methods inherited from class org.junit.runners.Suite |
|---|
describeChild, emptySuite, runChild |
| Methods inherited from class org.junit.runners.ParentRunner |
|---|
childrenInvoker, classBlock, classRules, collectInitializationErrors, filter, getDescription, getName, getRunnerAnnotations, getTestClass, run, runLeaf, setScheduler, sort, validatePublicVoidNoArgMethods |
| Methods inherited from class org.junit.runner.Runner |
|---|
testCount |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static final org.slf4j.Logger PARAM_LOG
| Constructor Detail |
|---|
public DataDrivenTestRunner(Class<?> klass)
throws org.junit.runners.model.InitializationError
DataDrivenTestRunner.EasyTestRunner. The algorithm is as follows:DataLoader annotation
at the class levelDataLoader annotation, it means that there is test data associated with the test
method.DataLoader annotation, then:
DataDrivenTestRunner.EasyTestRunner and make it use all the different types of methods we
identified.
klass - the test class
org.junit.runners.model.InitializationError - if an initializationError occurs
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||