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)
Returns if this ITestNGMethod can be invoked from within IClass.
|
ITestNGMethod |
clone() |
java.util.Map<java.lang.String,java.lang.String> |
findMethodParameters(XmlTest test) |
java.lang.String[] |
getAfterGroups() |
java.lang.String[] |
getBeforeGroups()
Before and After groups
|
ConstructorOrMethod |
getConstructorOrMethod() |
int |
getCurrentInvocationCount() |
long |
getDate() |
java.lang.String |
getDescription() |
boolean |
getEnabled() |
default 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()
The time under which all invocationCount methods need to complete by.
|
java.lang.String |
getMethodName()
Returns the method name.
|
java.lang.String[] |
getMethodsDependedUpon() |
java.lang.String |
getMissingGroup()
If a group was not found.
|
int |
getParameterInvocationCount() |
int |
getPriority()
The scheduling priority.
|
java.lang.String |
getQualifiedName()
getRealClass().getName() + "." + getMethodName()
|
java.lang.Class |
getRealClass() |
IRetryAnalyzer |
getRetryAnalyzer()
Deprecated.
- This method stands deprecated as of TestNG 7.0.0.
Please use
getRetryAnalyzer(ITestResult) instead. |
default IRetryAnalyzer |
getRetryAnalyzer(ITestResult result) |
default java.lang.Class<? extends IRetryAnalyzer> |
getRetryAnalyzerClass() |
int |
getSuccessPercentage() |
ITestClass |
getTestClass() |
int |
getThreadPoolSize() |
long |
getTimeOut() |
XmlTest |
getXmlTest() |
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 |
setRetryAnalyzer(IRetryAnalyzer retryAnalyzer)
Deprecated.
- This method stands deprecated as of TestNG 7.0.0.
Please use
setRetryAnalyzerClass(Class) instead. |
default 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()
boolean isAfterTestConfiguration()
boolean isBeforeGroupsConfiguration()
boolean isAfterGroupsConfiguration()
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)
boolean 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()
@Deprecated IRetryAnalyzer getRetryAnalyzer()
getRetryAnalyzer(ITestResult)
instead.@Deprecated void setRetryAnalyzer(IRetryAnalyzer retryAnalyzer)
setRetryAnalyzerClass(Class)
instead.default IRetryAnalyzer getRetryAnalyzer(ITestResult result)
default void setRetryAnalyzerClass(java.lang.Class<? extends IRetryAnalyzer> clazz)
default 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()
void setInvocationNumbers(java.util.List<java.lang.Integer> numbers)
void addFailedInvocationNumber(int number)
java.util.List<java.lang.Integer> getFailedInvocationNumbers()
int getPriority()
void setPriority(int priority)
int getInterceptedPriority()
void setInterceptedPriority(int priority)
XmlTest getXmlTest()
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 IParameterInfo getFactoryMethodParamsInfo()
IParameterInfo
object that represents details about the parameters
associated with the factory method.