|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ITestNGMethod
Describes a TestNG annotated method and the instance on which it will be invoked. This interface is not meant to be implemented by users.
Method Summary | |
---|---|
void |
addFailedInvocationNumber(int number)
The list of invocation numbers that failed, which is only applicable for methods that have a data provider. |
void |
addMethodDependedUpon(String methodName)
|
boolean |
canRunFromClass(IClass testClass)
Returns if this ITestNGMethod can be invoked from within IClass. |
ITestNGMethod |
clone()
|
Map<String,String> |
findMethodParameters(XmlTest test)
|
String[] |
getAfterGroups()
|
String[] |
getBeforeGroups()
Before and After groups |
org.testng.internal.ConstructorOrMethod |
getConstructorOrMethod()
|
int |
getCurrentInvocationCount()
|
long |
getDate()
|
String |
getDescription()
|
boolean |
getEnabled()
|
List<Integer> |
getFailedInvocationNumbers()
|
String[] |
getGroups()
|
String[] |
getGroupsDependedUpon()
|
String |
getId()
|
Object |
getInstance()
|
long[] |
getInstanceHashCodes()
Needed for serialization. |
Object[] |
getInstances()
Deprecated. Use getInstance(). |
int |
getInvocationCount()
|
List<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. |
Method |
getMethod()
Deprecated. This method is deprecated and can now return null. Use getConstructorOrMethod() instead. |
String |
getMethodName()
Returns the method name. |
String[] |
getMethodsDependedUpon()
|
String |
getMissingGroup()
If a group was not found. |
int |
getParameterInvocationCount()
|
int |
getPriority()
The scheduling priority. |
Class |
getRealClass()
|
IRetryAnalyzer |
getRetryAnalyzer()
|
int |
getSuccessPercentage()
|
ITestClass |
getTestClass()
|
int |
getThreadPoolSize()
|
long |
getTimeOut()
|
XmlTest |
getXmlTest()
|
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 |
setId(String id)
|
void |
setIgnoreMissingDependencies(boolean ignore)
|
void |
setInvocationCount(int count)
|
void |
setInvocationNumbers(List<Integer> numbers)
|
void |
setMissingGroup(String group)
|
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()
|
Methods inherited from interface java.lang.Comparable |
---|
compareTo |
Method Detail |
---|
Class getRealClass()
ITestClass getTestClass()
void setTestClass(ITestClass cls)
cls
- The test class having this method.@Deprecated Method getMethod()
String getMethodName()
@Deprecated Object[] getInstances()
Object getInstance()
long[] getInstanceHashCodes()
String[] getGroups()
String[] getGroupsDependedUpon()
String getMissingGroup()
void setMissingGroup(String group)
String[] getBeforeGroups()
String[] getAfterGroups()
String[] getMethodsDependedUpon()
void addMethodDependedUpon(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()
String getId()
void setId(String id)
long getDate()
void setDate(long date)
boolean canRunFromClass(IClass testClass)
boolean isAlwaysRun()
int getThreadPoolSize()
void setThreadPoolSize(int threadPoolSize)
boolean getEnabled()
String getDescription()
void incrementCurrentInvocationCount()
int getCurrentInvocationCount()
void setParameterInvocationCount(int n)
int getParameterInvocationCount()
ITestNGMethod clone()
IRetryAnalyzer getRetryAnalyzer()
void setRetryAnalyzer(IRetryAnalyzer retryAnalyzer)
boolean skipFailedInvocations()
void setSkipFailedInvocations(boolean skip)
long getInvocationTimeOut()
boolean ignoreMissingDependencies()
void setIgnoreMissingDependencies(boolean ignore)
List<Integer> getInvocationNumbers()
void setInvocationNumbers(List<Integer> numbers)
void addFailedInvocationNumber(int number)
List<Integer> getFailedInvocationNumbers()
int getPriority()
void setPriority(int priority)
XmlTest getXmlTest()
org.testng.internal.ConstructorOrMethod getConstructorOrMethod()
Map<String,String> findMethodParameters(XmlTest test)
test
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |