public class XmlSuite extends Object implements Serializable, Cloneable
Modifier and Type | Field and Description |
---|---|
static String |
CONTINUE |
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_JUNIT
JUnit compatibility flag.
|
static String |
DEFAULT_PARALLEL |
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 |
JAVADOC
Deprecated.
use JAVADOC_ANNOTATION_TYPE.
|
static String |
JAVADOC_ANNOTATION_TYPE
The JavaDoc annotation type ID ("javadoc").
|
static String |
JDK5_ANNOTATION_TYPE
The JDK50 annotation type ID ("JDK5").
|
static String |
PARALLEL_CLASSES |
static String |
PARALLEL_METHODS |
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 |
---|---|
Object |
clone()
Note that this is not a full clone: XmlTest children are not cloned by this
method.
|
boolean |
equals(Object obj) |
Map<String,String> |
getAllParameters() |
String |
getAnnotations()
Returns the annotation type for the suite.
|
List<XmlSuite> |
getChildSuites() |
String |
getConfigFailurePolicy()
Returns the configuration failure policy.
|
int |
getDataProviderThreadCount() |
String |
getFileName() |
List<String> |
getListeners() |
List<XmlMethodSelector> |
getMethodSelectors()
Returns the method selectors.
|
String |
getName()
Returns the name.
|
ITestObjectFactory |
getObjectFactory() |
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. |
XmlSuite |
getParentSuite() |
List<String> |
getSuiteFiles()
Returns the suite files.
|
String |
getTest()
Returns the test.
|
List<XmlTest> |
getTests()
Returns the tests.
|
int |
getThreadCount()
Returns the threadCount.
|
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()
Returns the JUnit compatibility flag.
|
void |
setAnnotations(String annotations)
Sets the annotation type for the suite.
|
void |
setConfigFailurePolicy(String configFailurePolicy)
Sets the configuration failure policy.
|
void |
setDataProviderThreadCount(int count) |
void |
setDefaultAnnotations(String annotationType)
Sets the overall default annotation type (JDK5/javadoc).
|
void |
setFileName(String fileName) |
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 |
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 |
setParentSuite(XmlSuite parentSuite) |
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 |
setXmlPackages(List<XmlPackage> packages)
Sets the XML packages.
|
Boolean |
skipFailedInvocationCounts() |
String |
toString() |
String |
toXml()
Returns a String representation of this XML suite.
|
@Deprecated public static final String JAVADOC
public static final String JDK5_ANNOTATION_TYPE
public static final String JAVADOC_ANNOTATION_TYPE
public static final String PARALLEL_TESTS
public static final String PARALLEL_METHODS
public static final String PARALLEL_CLASSES
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_SKIP_FAILED_INVOCATION_COUNTS
public static Integer DEFAULT_THREAD_COUNT
public static final Integer DEFAULT_DATA_PROVIDER_THREAD_COUNT
public String getFileName()
public void setFileName(String fileName)
fileName
- the fileName to setpublic String getParallel()
public ITestObjectFactory getObjectFactory()
public void setObjectFactory(ITestObjectFactory objectFactory)
public void setParallel(String parallel)
parallel
- the parallel modepublic 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 String getAnnotations()
public void setDefaultAnnotations(String annotationType)
annotationType
- one of the two string constant JAVADOC_ANNOTATION_TYPE or
JDK5_ANNOTATION_TYPE.JAVADOC_ANNOTATION_TYPE
,
JDK5_ANNOTATION_TYPE
public void setAnnotations(String annotations)
annotations
- one of the two string constant JAVADOC_ANNOTATION_TYPE or
JDK5_ANNOTATION_TYPE.JAVADOC_ANNOTATION_TYPE
,
JDK5_ANNOTATION_TYPE
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 setPackages(List<XmlPackage> packages)
public String toXml()
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 void setDataProviderThreadCount(int count)
public int getDataProviderThreadCount()
public void setParentSuite(XmlSuite parentSuite)
public XmlSuite getParentSuite()
Copyright © 2012. All Rights Reserved.