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 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 Configurator
TestSetFailedException
public void configure(org.testng.xml.XmlSuite suite, Map<String,String> options) throws TestSetFailedException
configure
in interface Configurator
TestSetFailedException
protected Object convertListeners(String listenerClasses) throws TestSetFailedException
TestSetFailedException
Copyright © 2004–2018 The Apache Software Foundation. All rights reserved.