Search in sources :

Example 1 with DataProviderTransformer

use of io.github.sskorol.dataprovider.DataProviderTransformer in project selenium_java by sergueik.

the class BaseTest method run.

static InvokedMethodNameListener run(final Class<?>... testClasses) {
    final TestNG tng = create(testClasses);
    final InvokedMethodNameListener listener = new InvokedMethodNameListener();
    final DataProviderTransformer dataProviderTransformer = new DataProviderTransformer();
    tng.addListener((ITestNGListener) listener);
    tng.addListener(dataProviderTransformer);
    tng.setDefaultTestName("DataSupplier tests");
    tng.run();
    return listener;
}
Also used : InvokedMethodNameListener(io.github.sskorol.listeners.InvokedMethodNameListener) DataProviderTransformer(io.github.sskorol.dataprovider.DataProviderTransformer) TestNG(org.testng.TestNG)

Aggregations

DataProviderTransformer (io.github.sskorol.dataprovider.DataProviderTransformer)1 InvokedMethodNameListener (io.github.sskorol.listeners.InvokedMethodNameListener)1 TestNG (org.testng.TestNG)1