| Modifier and Type | Field and Description |
|---|---|
static int |
DEFAULT_TIMEOUT_MS |
| Constructor and Description |
|---|
XmlTest() |
XmlTest(XmlSuite suite) |
XmlTest(XmlSuite suite,
int index)
Constructs a
XmlTest and adds it to suite's list of tests. |
public static final int DEFAULT_TIMEOUT_MS
public XmlTest(XmlSuite suite, int index)
XmlTest and adds it to suite's list of tests.suite - the parent suite.index - the index of this test tag in testng.xmlpublic XmlTest(XmlSuite suite)
public XmlTest()
public void setXmlPackages(List<XmlPackage> packages)
public List<XmlPackage> getXmlPackages()
public List<XmlPackage> getPackages()
public void setPackages(List<XmlPackage> p)
public List<XmlMethodSelector> getMethodSelectors()
public void setMethodSelectors(List<XmlMethodSelector> methodSelectors)
public final XmlSuite getSuite()
public boolean isGroupFilteringDisabled()
public void setXmlClasses(List<XmlClass> classes)
classes - The classes to set.public String getName()
public void setName(String name)
name - The name to set.public void setVerbose(int v)
v - - Verbosity level.public int getThreadCount()
public void setThreadCount(int threadCount)
public void addIncludedGroup(String g)
public void addExcludedGroup(String g)
public int getVerbose()
public boolean getGroupByInstances()
public void setGroupByInstances(boolean f)
public boolean isJUnit()
public void setJUnit(boolean isJUnit)
isJUnit - The isJUnit to set.public void setJunit(boolean isJUnit)
public void setSkipFailedInvocationCounts(boolean skip)
public boolean skipFailedInvocationCounts()
public void setParameters(Map<String,String> parameters)
parameters - - A Map of parameters.public Map<String,String> getAllParameters()
public Map<String,String> getLocalParameters()
getAllParameters().public void setParallel(XmlSuite.ParallelMode parallel)
public XmlSuite.ParallelMode getParallel()
public String getTimeOut()
public long getTimeOut(long def)
public void setTimeOut(long timeOut)
public void setScript(XmlScript script)
public XmlScript getScript()
public Object clone()
source XmlTest by including: - test attributes - groups
definitions - parameters
The <classes> sub element is ignored for the moment.
public List<Integer> getInvocationNumbers(String method)
method - The method namepublic void setPreserveOrder(Boolean preserveOrder)
public Boolean getPreserveOrder()
public void setSuite(XmlSuite result)
public Boolean getAllowReturnValues()
public void setAllowReturnValues(Boolean allowReturnValues)
public int getIndex()
public void setXmlSuite(XmlSuite suite)
public void setGroups(XmlGroups xmlGroups)
public XmlGroups getXmlGroups()
public boolean nameMatchesAny(List<String> names)
names - The list of names to check.true if the current test's name matches with any of the given names.Copyright © 2025. All rights reserved.