Class TestNGMapConfigurator
java.lang.Object
org.apache.maven.surefire.testng.conf.TestNGMapConfigurator
- All Implemented Interfaces:
Configurator
- Direct Known Subclasses:
TestNG510Configurator
TestNG configurator for 5.3+ versions. TestNG exposes a
Test classes and/or suite files are not passed along as options parameters, but configured separately.
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<.
Test classes and/or suite files are not passed along as options parameters, but configured separately.
- Author:
- Alex Popescu
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidprotected voidconfigureParallel(org.testng.xml.XmlSuite suite, Map<String, String> options) protected voidconfigureThreadCount(org.testng.xml.XmlSuite suite, Map<String, String> options) protected Objectprotected ObjectconvertListeners(String listenerClasses) protected Object
-
Constructor Details
-
TestNGMapConfigurator
public TestNGMapConfigurator()
-
-
Method Details
-
configure
public void configure(org.testng.TestNG testng, Map<String, String> options) throws TestSetFailedException- Specified by:
configurein interfaceConfigurator- Throws:
TestSetFailedException
-
configure
public void configure(org.testng.xml.XmlSuite suite, Map<String, String> options) throws TestSetFailedException- Specified by:
configurein interfaceConfigurator- Throws:
TestSetFailedException
-
configureThreadCount
protected void configureThreadCount(org.testng.xml.XmlSuite suite, Map<String, String> options) throws TestSetFailedException- Throws:
TestSetFailedException
-
configureParallel
protected void configureParallel(org.testng.xml.XmlSuite suite, Map<String, String> options) throws TestSetFailedException- Throws:
TestSetFailedException
-
convertReporterConfig
-
convertListeners
- Throws:
TestSetFailedException
-
convert
-