public class XmlMethodSelector extends Object implements IMethodSelector
| Constructor and Description |
|---|
XmlMethodSelector() |
| Modifier and Type | Method and Description |
|---|---|
Map<String,String> |
getExcludedGroups() |
Map<String,String> |
getIncludedGroups() |
boolean |
getOverrideIncludedMethods() |
boolean |
includeMethod(IMethodSelectorContext context,
ITestNGMethod tm,
boolean isTestMethod) |
void |
setExcludedGroups(Map<String,String> excludedGroups) |
void |
setIncludedGroups(Map<String,String> includedGroups) |
void |
setOverrideIncludedMethods(boolean overrideIncludedMethods) |
void |
setScript(XmlScript script) |
void |
setTestMethods(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(List<XmlClass> classes) |
public boolean includeMethod(IMethodSelectorContext context, ITestNGMethod tm, boolean isTestMethod)
includeMethod in interface IMethodSelectorcontext - 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 Map<String,String> getExcludedGroups()
public Map<String,String> getIncludedGroups()
public void setExcludedGroups(Map<String,String> excludedGroups)
excludedGroups - The excludedGroups to set.public void setIncludedGroups(Map<String,String> includedGroups)
includedGroups - The includedGroups to set.public void setScript(XmlScript script)
public void setTestMethods(List<ITestNGMethod> testMethods)
IMethodSelectorsetTestMethods in interface IMethodSelectortestMethods - The test methodspublic boolean getOverrideIncludedMethods()
public void setOverrideIncludedMethods(boolean overrideIncludedMethods)
Copyright © 2025. All rights reserved.