public class XmlSuite extends Object implements Serializable, Cloneable
Modifier and Type | Field and Description |
---|---|
static String |
CONTINUE |
static Boolean |
DEFAULT_ALLOW_RETURN_VALUES |
static String |
DEFAULT_CONFIG_FAILURE_POLICY
Whether to SKIP or CONTINUE to re-attempt failed configuration methods.
|
static Integer |
DEFAULT_DATA_PROVIDER_THREAD_COUNT
Thread count for the data provider pool
|
static Boolean |
DEFAULT_GROUP_BY_INSTANCES
By default, a method failing will cause all instances of that class to skip
|
static Boolean |
DEFAULT_JUNIT
JUnit compatibility flag.
|
static Boolean |
DEFAULT_MIXED
mixed mode flag.
|
static String |
DEFAULT_PARALLEL |
static String |
DEFAULT_PRESERVE_ORDER |
static Boolean |
DEFAULT_SKIP_FAILED_INVOCATION_COUNTS |
static Integer |
DEFAULT_THREAD_COUNT
The thread count.
|
static Integer |
DEFAULT_VERBOSE
The suite verbose flag.
|
static String |
PARALLEL_CLASSES |
static String |
PARALLEL_INSTANCES |
static String |
PARALLEL_METHODS |
static Set<String> |
PARALLEL_MODES |
static String |
PARALLEL_NONE |
static String |
PARALLEL_TESTS
Parallel modes
|
static String |
SKIP
Configuration failure policy options
|
Constructor and Description |
---|
XmlSuite() |
Modifier and Type | Method and Description |
---|---|
void |
addExcludedGroup(String g) |
void |
addIncludedGroup(String g) |
void |
addListener(String listener) |
void |
addTest(XmlTest test) |
Object |
clone()
Note that this is not a full clone: XmlTest children are not cloned by this
method.
|
boolean |
equals(Object obj) |
Boolean |
getAllowReturnValues() |
Map<String,String> |
getAllParameters() |
List<XmlSuite> |
getChildSuites() |
String |
getConfigFailurePolicy()
Returns the configuration failure policy.
|
int |
getDataProviderThreadCount() |
List<String> |
getExcludedGroups() |
String |
getFileName() |
Boolean |
getGroupByInstances() |
XmlGroups |
getGroups() |
String |
getGuiceStage() |
List<String> |
getIncludedGroups() |
List<String> |
getListeners() |
List<XmlMethodSelector> |
getMethodSelectors()
Returns the method selectors.
|
String |
getName()
Returns the name.
|
ITestObjectFactory |
getObjectFactory() |
Collection<String> |
getPackageNames() |
List<XmlPackage> |
getPackages() |
String |
getParallel()
Returns the parallel mode.
|
String |
getParameter(String name)
Returns the parameter defined in this suite only.
|
Map<String,String> |
getParameters()
Gets the parameters that apply to tests in this suite.
Set of parameters for a suite is appended with parameters from parent suite. |
String |
getParentModule() |
XmlSuite |
getParentSuite() |
String |
getPreserveOrder() |
List<String> |
getSuiteFiles()
Returns the suite files.
|
String |
getTest()
Returns the test.
|
List<XmlTest> |
getTests()
Returns the tests.
|
int |
getThreadCount() |
String |
getTimeOut()
Returns the timeout.
|
long |
getTimeOut(long def)
Returns the timeout as a long value specifying the default value to be used if
no timeout was specified.
|
Integer |
getVerbose()
Returns the verbose.
|
List<XmlPackage> |
getXmlPackages()
Returns the XML packages.
|
int |
hashCode() |
Boolean |
isJUnit() |
static boolean |
isParallel(String parallel) |
void |
onListenerElement(String className) |
void |
onMethodSelectorElement(String language,
String name,
String priority) |
void |
onPackagesElement(String name) |
void |
onParameterElement(String name,
String value) |
void |
onSuiteFilesElement(String path) |
void |
setAllowReturnValues(Boolean allowReturnValues) |
void |
setConfigFailurePolicy(String configFailurePolicy)
Sets the configuration failure policy.
|
void |
setDataProviderThreadCount(int count) |
void |
setExcludedGroups(List<String> g) |
void |
setFileName(String fileName) |
void |
setGroupByInstances(boolean f) |
void |
setGroups(XmlGroups xmlGroups) |
void |
setGuiceStage(String guiceStage) |
void |
setIncludedGroups(List<String> g) |
void |
setJunit(Boolean j) |
void |
setJUnit(Boolean isJUnit)
Sets the JUnit compatibility flag.
|
void |
setListeners(List<String> listeners) |
void |
setMethodSelectors(List<XmlMethodSelector> methodSelectors)
Sets the method selectors.
|
void |
setMethodSelectors(XmlMethodSelectors xms) |
void |
setName(String name)
Sets the name.
|
void |
setObjectFactory(ITestObjectFactory objectFactory) |
void |
setPackages(List<XmlPackage> packages) |
void |
setParallel(String parallel)
Sets the parallel mode
|
void |
setParameters(Map<String,String> parameters)
Sets parameters.
|
void |
setParentModule(String parentModule) |
void |
setParentSuite(XmlSuite parentSuite) |
void |
setPreserveOrder(String f) |
void |
setSkipFailedInvocationCounts(boolean skip) |
void |
setSuiteFiles(List<String> files)
Sets the suite files.
|
void |
setTests(List<XmlTest> tests) |
void |
setThreadCount(int threadCount)
Set the thread count.
|
void |
setTimeOut(String timeOut)
Sets the timeout.
|
void |
setVerbose(Integer verbose)
Set the verbose.
|
void |
setXmlMethodSelectors(XmlMethodSelectors xms) |
void |
setXmlPackages(List<XmlPackage> packages)
Sets the XML packages.
|
Boolean |
skipFailedInvocationCounts() |
String |
toString() |
String |
toXml() |
public static final String PARALLEL_TESTS
public static final String PARALLEL_METHODS
public static final String PARALLEL_CLASSES
public static final String PARALLEL_INSTANCES
public static final String PARALLEL_NONE
public static final String SKIP
public static final String CONTINUE
public static Integer DEFAULT_VERBOSE
public static String DEFAULT_PARALLEL
public static String DEFAULT_CONFIG_FAILURE_POLICY
public static Boolean DEFAULT_JUNIT
public static Boolean DEFAULT_MIXED
public static Boolean DEFAULT_SKIP_FAILED_INVOCATION_COUNTS
public static Integer DEFAULT_THREAD_COUNT
public static final Integer DEFAULT_DATA_PROVIDER_THREAD_COUNT
public static final Boolean DEFAULT_GROUP_BY_INSTANCES
public static Boolean DEFAULT_ALLOW_RETURN_VALUES
public static String DEFAULT_PRESERVE_ORDER
public String getFileName()
public void setFileName(String fileName)
fileName
- the fileName to setpublic String getParallel()
public String getParentModule()
public String getGuiceStage()
public ITestObjectFactory getObjectFactory()
public void setObjectFactory(ITestObjectFactory objectFactory)
public void setParallel(String parallel)
parallel
- the parallel modepublic void setParentModule(String parentModule)
public void setGuiceStage(String guiceStage)
public void setConfigFailurePolicy(String configFailurePolicy)
configFailurePolicy
- the config failure policypublic String getConfigFailurePolicy()
public Integer getVerbose()
public void setVerbose(Integer verbose)
verbose
- The verbose to set.public String getName()
public void setName(String name)
name
- The name to set.public String getTest()
public List<XmlMethodSelector> getMethodSelectors()
public void setMethodSelectors(List<XmlMethodSelector> methodSelectors)
methodSelectors
- the method selectors.public void setParameters(Map<String,String> parameters)
parameters
- the parameters.public Map<String,String> getParameters()
public Map<String,String> getAllParameters()
public String getParameter(String name)
name
- the parameter name.public int getThreadCount()
public void setThreadCount(int threadCount)
threadCount
- The thread count to set.public Boolean isJUnit()
public void setJUnit(Boolean isJUnit)
isJUnit
- the JUnit compatibility flag.public void setJunit(Boolean j)
public Boolean skipFailedInvocationCounts()
public void setSkipFailedInvocationCounts(boolean skip)
public void setXmlPackages(List<XmlPackage> packages)
packages
- the XML packages.public List<XmlPackage> getXmlPackages()
public List<XmlPackage> getPackages()
public void setMethodSelectors(XmlMethodSelectors xms)
public void setPackages(List<XmlPackage> packages)
public String toXml()
public void setXmlMethodSelectors(XmlMethodSelectors xms)
public Object clone()
public void setTimeOut(String timeOut)
timeOut
- the timeout.public String getTimeOut()
public long getTimeOut(long def)
def
- the the default value to be used if no timeout was specified.public void setSuiteFiles(List<String> files)
files
- the suite files.public List<String> getSuiteFiles()
public void setDataProviderThreadCount(int count)
public int getDataProviderThreadCount()
public void setParentSuite(XmlSuite parentSuite)
public XmlSuite getParentSuite()
public void setPreserveOrder(String f)
public String getPreserveOrder()
public List<String> getIncludedGroups()
addIncludedGroup(String)
.public void addIncludedGroup(String g)
public void setExcludedGroups(List<String> g)
g
- The excludedGrousps to set.public List<String> getExcludedGroups()
addExcludedGroup(String)
.public void addExcludedGroup(String g)
public Boolean getGroupByInstances()
public void setGroupByInstances(boolean f)
public void addListener(String listener)
public Boolean getAllowReturnValues()
public void setAllowReturnValues(Boolean allowReturnValues)
public void setGroups(XmlGroups xmlGroups)
public void onListenerElement(String className)
public void onSuiteFilesElement(String path)
public void onPackagesElement(String name)
public void onMethodSelectorElement(String language, String name, String priority)
public XmlGroups getGroups()
public void addTest(XmlTest test)
public Collection<String> getPackageNames()
public static boolean isParallel(String parallel)
Copyright © 2015. All rights reserved.