public class TestNGMapConfigurator extends Object implements Configurator
TestNG.configure(java.util.Map) method.
All supported TestNG options are passed in String format, except
TestNGCommandLineArgs.LISTENER_COMMAND_OPT which is List>Class<,
TestNGCommandLineArgs.JUNIT_DEF_OPT which is a Boolean,
TestNGCommandLineArgs.SKIP_FAILED_INVOCATION_COUNT_OPT which is a Boolean,
TestNGCommandLineArgs.OBJECT_FACTORY_COMMAND_OPT which is a Class,
TestNGCommandLineArgs.REPORTERS_LIST which is a List>ReporterConfig<.
| Constructor and Description |
|---|
TestNGMapConfigurator() |
| Modifier and Type | Method and Description |
|---|---|
void |
configure(org.testng.TestNG testng,
Map<String,String> options) |
void |
configure(org.testng.xml.XmlSuite suite,
Map<String,String> options) |
protected void |
configureParallel(org.testng.xml.XmlSuite suite,
Map<String,String> options) |
protected void |
configureThreadCount(org.testng.xml.XmlSuite suite,
Map<String,String> options) |
protected Object |
convert(Object val,
Class<?> type) |
protected Object |
convertListeners(String listenerClasses) |
protected Object |
convertReporterConfig(Object val) |
public void configure(org.testng.TestNG testng,
Map<String,String> options)
throws TestSetFailedException
configure in interface ConfiguratorTestSetFailedExceptionpublic void configure(org.testng.xml.XmlSuite suite,
Map<String,String> options)
throws TestSetFailedException
configure in interface ConfiguratorTestSetFailedExceptionprotected void configureThreadCount(org.testng.xml.XmlSuite suite,
Map<String,String> options)
throws TestSetFailedException
TestSetFailedExceptionprotected void configureParallel(org.testng.xml.XmlSuite suite,
Map<String,String> options)
throws TestSetFailedException
TestSetFailedExceptionprotected Object convertListeners(String listenerClasses) throws TestSetFailedException
TestSetFailedExceptionCopyright © 2004–2024 The Apache Software Foundation. All rights reserved.