public interface ITestNGMethod
extends java.lang.Cloneable
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() |
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.
|
java.lang.Object[] |
getInstances()
Deprecated.
Use getInstance().
|
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.reflect.Method |
getMethod()
Deprecated.
This method is deprecated and can now return null. Use
getConstructorOrMethod() instead.
|
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() |
int |
getSuccessPercentage() |
ITestClass |
getTestClass() |
int |
getThreadPoolSize() |
long |
getTimeOut() |
int |
getTotalInvocationCount()
Deprecated.
Will always return 0
|
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() |
boolean |
isTest() |
void |
setDate(long date) |
void |
setDescription(java.lang.String description) |
void |
setId(java.lang.String id) |
void |
setIgnoreMissingDependencies(boolean ignore) |
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) |
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.@Deprecated java.lang.reflect.Method getMethod()
java.lang.String getMethodName()
@Deprecated java.lang.Object[] getInstances()
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)
@Deprecated int getTotalInvocationCount()
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()
IRetryAnalyzer getRetryAnalyzer()
void setRetryAnalyzer(IRetryAnalyzer retryAnalyzer)
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)
XmlTest getXmlTest()
ConstructorOrMethod getConstructorOrMethod()
java.util.Map<java.lang.String,java.lang.String> findMethodParameters(XmlTest test)
test
- java.lang.String getQualifiedName()