public interface ITestNGMethod
extends java.lang.Cloneable
This interface is not meant to be implemented by users.
| Modifier and Type | Method and Description |
|---|---|
void |
addFailedInvocationNumber(int number)
The list of invocation numbers that failed, which is only applicable for methods that have a
data provider.
|
void |
addMethodDependedUpon(java.lang.String methodName) |
boolean |
canRunFromClass(IClass testClass) |
ITestNGMethod |
clone() |
java.util.Map<java.lang.String,java.lang.String> |
findMethodParameters(XmlTest test) |
java.lang.String[] |
getAfterGroups() |
default CustomAttribute[] |
getAttributes() |
java.lang.String[] |
getBeforeGroups() |
org.testng.internal.ConstructorOrMethod |
getConstructorOrMethod() |
int |
getCurrentInvocationCount() |
default IDataProviderMethod |
getDataProviderMethod() |
long |
getDate() |
java.lang.String |
getDescription() |
boolean |
getEnabled() |
default org.testng.internal.IParameterInfo |
getFactoryMethodParamsInfo() |
java.util.List<java.lang.Integer> |
getFailedInvocationNumbers() |
java.lang.String[] |
getGroups() |
java.lang.String[] |
getGroupsDependedUpon() |
java.lang.String |
getId() |
java.lang.Object |
getInstance() |
long[] |
getInstanceHashCodes()
Needed for serialization.
|
int |
getInterceptedPriority() |
int |
getInvocationCount() |
java.util.List<java.lang.Integer> |
getInvocationNumbers()
Which invocation numbers of this method should be used (only applicable if it uses a data
provider).
|
long |
getInvocationTimeOut() |
java.lang.String |
getMethodName()
Returns the method name.
|
java.lang.String[] |
getMethodsDependedUpon() |
java.lang.String |
getMissingGroup() |
int |
getParameterInvocationCount() |
default java.lang.Class<?>[] |
getParameterTypes() |
int |
getPriority()
The scheduling priority.
|
java.lang.String |
getQualifiedName()
getRealClass().getName() + "." + getMethodName()
|
java.lang.Class |
getRealClass() |
IRetryAnalyzer |
getRetryAnalyzer(ITestResult result) |
java.lang.Class<? extends IRetryAnalyzer> |
getRetryAnalyzerClass() |
int |
getSuccessPercentage() |
ITestClass |
getTestClass() |
int |
getThreadPoolSize() |
long |
getTimeOut() |
XmlTest |
getXmlTest() |
default boolean |
hasAfterGroupsConfiguration() |
default boolean |
hasBeforeGroupsConfiguration() |
boolean |
hasMoreInvocation() |
boolean |
ignoreMissingDependencies() |
void |
incrementCurrentInvocationCount() |
boolean |
isAfterClassConfiguration() |
boolean |
isAfterGroupsConfiguration() |
boolean |
isAfterMethodConfiguration() |
boolean |
isAfterSuiteConfiguration() |
boolean |
isAfterTestConfiguration() |
boolean |
isAlwaysRun() |
boolean |
isBeforeClassConfiguration() |
boolean |
isBeforeGroupsConfiguration() |
boolean |
isBeforeMethodConfiguration() |
boolean |
isBeforeSuiteConfiguration() |
boolean |
isBeforeTestConfiguration() |
default boolean |
isDataDriven() |
boolean |
isTest() |
void |
setDate(long date) |
void |
setDescription(java.lang.String description) |
void |
setId(java.lang.String id) |
void |
setIgnoreMissingDependencies(boolean ignore) |
void |
setInterceptedPriority(int priority) |
void |
setInvocationCount(int count) |
void |
setInvocationNumbers(java.util.List<java.lang.Integer> numbers) |
void |
setMissingGroup(java.lang.String group) |
void |
setMoreInvocationChecker(java.util.concurrent.Callable<java.lang.Boolean> moreInvocationChecker) |
void |
setParameterInvocationCount(int n) |
void |
setPriority(int priority) |
void |
setRetryAnalyzerClass(java.lang.Class<? extends IRetryAnalyzer> clazz) |
void |
setSkipFailedInvocations(boolean skip) |
void |
setTestClass(ITestClass cls)
Sets the test class having this method.
|
void |
setThreadPoolSize(int threadPoolSize) |
void |
setTimeOut(long timeOut) |
boolean |
skipFailedInvocations() |
java.lang.Class getRealClass()
ITestClass getTestClass()
void setTestClass(ITestClass cls)
cls - The test class having this method.java.lang.String getMethodName()
java.lang.Object getInstance()
long[] getInstanceHashCodes()
java.lang.String[] getGroups()
java.lang.String[] getGroupsDependedUpon()
java.lang.String getMissingGroup()
void setMissingGroup(java.lang.String group)
java.lang.String[] getBeforeGroups()
java.lang.String[] getAfterGroups()
java.lang.String[] getMethodsDependedUpon()
void addMethodDependedUpon(java.lang.String methodName)
boolean isTest()
boolean isBeforeMethodConfiguration()
boolean isAfterMethodConfiguration()
boolean isBeforeClassConfiguration()
boolean isAfterClassConfiguration()
boolean isBeforeSuiteConfiguration()
boolean isAfterSuiteConfiguration()
boolean isBeforeTestConfiguration()
true if this method is a @BeforeTest (@Configuration beforeTest=true)boolean isAfterTestConfiguration()
true if this method is an @AfterTest (@Configuration afterTest=true)boolean isBeforeGroupsConfiguration()
boolean isAfterGroupsConfiguration()
default boolean hasBeforeGroupsConfiguration()
default boolean hasAfterGroupsConfiguration()
long getTimeOut()
void setTimeOut(long timeOut)
int getInvocationCount()
void setInvocationCount(int count)
int getSuccessPercentage()
java.lang.String getId()
void setId(java.lang.String id)
long getDate()
void setDate(long date)
boolean canRunFromClass(IClass testClass)
testClass - The test classboolean isAlwaysRun()
int getThreadPoolSize()
void setThreadPoolSize(int threadPoolSize)
boolean getEnabled()
java.lang.String getDescription()
void setDescription(java.lang.String description)
void incrementCurrentInvocationCount()
int getCurrentInvocationCount()
void setParameterInvocationCount(int n)
int getParameterInvocationCount()
void setMoreInvocationChecker(java.util.concurrent.Callable<java.lang.Boolean> moreInvocationChecker)
boolean hasMoreInvocation()
ITestNGMethod clone()
IRetryAnalyzer getRetryAnalyzer(ITestResult result)
void setRetryAnalyzerClass(java.lang.Class<? extends IRetryAnalyzer> clazz)
java.lang.Class<? extends IRetryAnalyzer> getRetryAnalyzerClass()
boolean skipFailedInvocations()
void setSkipFailedInvocations(boolean skip)
long getInvocationTimeOut()
boolean ignoreMissingDependencies()
void setIgnoreMissingDependencies(boolean ignore)
java.util.List<java.lang.Integer> getInvocationNumbers()
<include invocationNumbers="..."> tag.void setInvocationNumbers(java.util.List<java.lang.Integer> numbers)
void addFailedInvocationNumber(int number)
number - The invocation number that failedjava.util.List<java.lang.Integer> getFailedInvocationNumbers()
int getPriority()
void setPriority(int priority)
int getInterceptedPriority()
void setInterceptedPriority(int priority)
XmlTest getXmlTest()
org.testng.internal.ConstructorOrMethod getConstructorOrMethod()
java.util.Map<java.lang.String,java.lang.String> findMethodParameters(XmlTest test)
test - - The XmlTest object.java.lang.String getQualifiedName()
default boolean isDataDriven()
default org.testng.internal.IParameterInfo getFactoryMethodParamsInfo()
IParameterInfo object that represents details about the parameters
associated with the factory method.default CustomAttribute[] getAttributes()
CustomAttribute that represents the custom attributes associated
with a test.default IDataProviderMethod getDataProviderMethod()
IDataProviderMethod for a data provider powered test method and
null otherwise.default java.lang.Class<?>[] getParameterTypes()