Modifier and Type | Class and Description |
---|---|
static class |
XmlSuite.FailurePolicy
Configuration failure policy options
|
static class |
XmlSuite.ParallelMode
Parallel modes
|
Modifier and Type | Field and Description |
---|---|
static Boolean |
DEFAULT_ALLOW_RETURN_VALUES |
static XmlSuite.FailurePolicy |
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 XmlSuite.ParallelMode |
DEFAULT_PARALLEL |
static Boolean |
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.
|
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() |
XmlSuite.FailurePolicy |
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<String> |
getLocalListeners() |
List<XmlMethodSelector> |
getMethodSelectors()
Returns the method selectors.
|
String |
getName()
Returns the name.
|
ITestObjectFactory |
getObjectFactory() |
Collection<String> |
getPackageNames() |
List<XmlPackage> |
getPackages() |
XmlSuite.ParallelMode |
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() |
Boolean |
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.
|
XmlMethodSelectors |
getXmlMethodSelectors() |
List<XmlPackage> |
getXmlPackages()
Returns the XML packages.
|
int |
hashCode() |
Boolean |
isJUnit() |
boolean |
isParsed() |
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(XmlSuite.FailurePolicy 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)
Deprecated.
Use #setParallel(XmlSuite.ParallelMode) instead
|
void |
setParallel(XmlSuite.ParallelMode parallel)
Sets the parallel mode
|
void |
setParameters(Map<String,String> parameters)
Sets parameters.
|
void |
setParentModule(String parentModule) |
void |
setParentSuite(XmlSuite parentSuite) |
void |
setParsed(boolean parsed) |
void |
setPreserveOrder(Boolean f) |
void |
setPreserveOrder(String f)
Deprecated.
Use
setPreserveOrder(Boolean) instead |
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.
|
XmlSuite |
shallowCopy()
This method returns a shallow cloned version.
|
Boolean |
skipFailedInvocationCounts() |
String |
toString() |
String |
toXml() |
public static final Integer DEFAULT_VERBOSE
public static final XmlSuite.ParallelMode DEFAULT_PARALLEL
public static final XmlSuite.FailurePolicy DEFAULT_CONFIG_FAILURE_POLICY
public static final Boolean DEFAULT_JUNIT
public static final Boolean DEFAULT_MIXED
public static final Boolean DEFAULT_SKIP_FAILED_INVOCATION_COUNTS
public static final Integer DEFAULT_THREAD_COUNT
public static final Integer DEFAULT_DATA_PROVIDER_THREAD_COUNT
public static final Boolean DEFAULT_GROUP_BY_INSTANCES
public static final Boolean DEFAULT_ALLOW_RETURN_VALUES
public static final Boolean DEFAULT_PRESERVE_ORDER
public void setParsed(boolean parsed)
public boolean isParsed()
true
if the current XmlSuite
has already been parsed.public String getFileName()
public void setFileName(String fileName)
fileName
- the fileName to setpublic XmlSuite.ParallelMode getParallel()
public String getParentModule()
public String getGuiceStage()
public ITestObjectFactory getObjectFactory()
public void setObjectFactory(ITestObjectFactory objectFactory)
@Deprecated public void setParallel(String parallel)
public void setParallel(XmlSuite.ParallelMode parallel)
parallel
- the parallel modepublic void setParentModule(String parentModule)
public void setGuiceStage(String guiceStage)
public void setConfigFailurePolicy(XmlSuite.FailurePolicy configFailurePolicy)
configFailurePolicy
- the config failure policypublic XmlSuite.FailurePolicy 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 List<String> getLocalListeners()
public void setXmlMethodSelectors(XmlMethodSelectors xms)
public XmlMethodSelectors getXmlMethodSelectors()
public Object clone()
public XmlSuite shallowCopy()
XmlTest
are not copied by this method.XmlSuite
.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()
@Deprecated public void setPreserveOrder(String f)
setPreserveOrder(Boolean)
insteadpublic void setPreserveOrder(Boolean f)
public Boolean getPreserveOrder()
public List<String> getIncludedGroups()
addIncludedGroup(String)
.public void addIncludedGroup(String g)
public void setIncludedGroups(List<String> g)
g
- - The list of groups to include.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()
Copyright © 2024. All rights reserved.