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;
}
Aggregations