public class XmlMethodSelector extends java.lang.Object implements IMethodSelector
Constructor and Description |
---|
XmlMethodSelector() |
Modifier and Type | Method and Description |
---|---|
java.util.Map<java.lang.String,java.lang.String> |
getExcludedGroups() |
java.util.Map<java.lang.String,java.lang.String> |
getIncludedGroups() |
boolean |
includeMethod(IMethodSelectorContext context,
ITestNGMethod tm,
boolean isTestMethod) |
void |
setExcludedGroups(java.util.Map<java.lang.String,java.lang.String> excludedGroups) |
void |
setExpression(java.lang.String expression)
Deprecated.
Use
setScript(XmlScript) instead |
void |
setIncludedGroups(java.util.Map<java.lang.String,java.lang.String> includedGroups) |
void |
setScript(XmlScript script) |
void |
setTestMethods(java.util.List<ITestNGMethod> testMethods)
Invoked when all the test methods are known so that the method selector can perform additional
work, such as adding the transitive closure of all the groups being included and depended upon.
|
void |
setXmlClasses(java.util.List<XmlClass> classes) |
public boolean includeMethod(IMethodSelectorContext context, ITestNGMethod tm, boolean isTestMethod)
includeMethod
in interface IMethodSelector
context
- The selector context. The implementation of this method can invoke
setHalted(true) to indicate that no other Method Selector should be invoked by TestNG after
this one. Additionally, this implementation can manipulate the Map object returned by
getUserData().tm
- The test methodisTestMethod
- true if this is a @Test method, false if it's a configuration methodpublic void setXmlClasses(java.util.List<XmlClass> classes)
public java.util.Map<java.lang.String,java.lang.String> getExcludedGroups()
public java.util.Map<java.lang.String,java.lang.String> getIncludedGroups()
public void setExcludedGroups(java.util.Map<java.lang.String,java.lang.String> excludedGroups)
excludedGroups
- The excludedGroups to set.public void setIncludedGroups(java.util.Map<java.lang.String,java.lang.String> includedGroups)
includedGroups
- The includedGroups to set.@Deprecated public void setExpression(java.lang.String expression)
setScript(XmlScript)
insteadpublic void setScript(XmlScript script)
public void setTestMethods(java.util.List<ITestNGMethod> testMethods)
IMethodSelector
setTestMethods
in interface IMethodSelector