org.testng.xml
Class ClassSuite
java.lang.Object
org.testng.xml.XmlSuite
org.testng.xml.ClassSuite
- All Implemented Interfaces:
- Serializable, Cloneable
public class ClassSuite
- extends XmlSuite
This class represents an XML <suite>
made up of one test which is
made up of <class> elements only. Given a testName "testName" it is equivalent to the
following XML <suite>:
<suite name ="Suite for testName">
<test name ="testName">
<classes>
...
</classes>
</test>
</suite>
This class is typically used to build a XML <suite> from command line class parameters.
- Author:
- jolly
- See Also:
- Serialized Form
Methods inherited from class org.testng.xml.XmlSuite |
clone, getAllParameters, getAnnotations, getBeanShellExpression, getChildSuites, getConfigFailurePolicy, getDataProviderThreadCount, getExpression, getFileName, getListeners, getMethodSelectors, getName, getObjectFactory, getParallel, getParameter, getParameters, getParentSuite, getSuiteFiles, getTest, getTests, getThreadCount, getTimeOut, getTimeOut, getVerbose, getXmlPackages, isJUnit, setAnnotations, setBeanShellExpression, setConfigFailurePolicy, setDataProviderThreadCount, setDefaultAnnotations, setFileName, setJUnit, setListeners, setMethodSelectors, setName, setObjectFactory, setParallel, setParameters, setParentSuite, setSkipFailedInvocationCounts, setSuiteFiles, setThreadCount, setTimeOut, setVerbose, setXmlPackages, skipFailedInvocationCounts, toString, toXml |
ClassSuite
public ClassSuite(String testName,
Class[] classes)
- Constructs a
XmlSuite
. The suite has the following characteristics:
- The suite name is "Suite for testName"
- The suite is made up of a single test named "testName"
- The test is made up of list <class> only
- Parameters:
testName
- the suite and inner test name.classes
- the classes making up the suite test.
Copyright © 2010. All Rights Reserved.