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
which is
which is a
which is a
which is a
which is 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
invalid reference
org.testng.TestNGCommandLineArgs#LISTENER_COMMAND_OPT
List>Class<,
invalid reference
org.testng.TestNGCommandLineArgs#JUNIT_DEF_OPT
Boolean,
invalid reference
org.testng.TestNGCommandLineArgs#SKIP_FAILED_INVOCATION_COUNT_OPT
Boolean,
invalid reference
org.testng.TestNGCommandLineArgs#OBJECT_FACTORY_COMMAND_OPT
Class,
invalid reference
org.testng.TestNGCommandLineArgs#REPORTERS_LIST
List>ReporterConfig<.
Test classes and/or suite files are not passed along as options parameters, but configured separately.
-
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 ObjectgetConvertedOptions(Map<String, String> options)
-
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
-
getConvertedOptions
- Throws:
TestSetFailedException
-
convertReporterConfig
-
convertListeners
- Throws:
TestSetFailedException
-
convert
-