public interface ITestNGMethod extends Cloneable
This interface is not meant to be implemented by users.
Class getRealClass()
ITestClass getTestClass()
void setTestClass(ITestClass cls)
cls - The test class having this method.String getMethodName()
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()
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()
String getId()
void setId(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()
String getDescription()
void setDescription(String description)
void incrementCurrentInvocationCount()
int getCurrentInvocationCount()
void setParameterInvocationCount(int n)
int getParameterInvocationCount()
boolean hasMoreInvocation()
ITestNGMethod clone()
IRetryAnalyzer getRetryAnalyzer(ITestResult result)
void setRetryAnalyzerClass(Class<? extends IRetryAnalyzer> clazz)
Class<? extends IRetryAnalyzer> getRetryAnalyzerClass()
boolean skipFailedInvocations()
void setSkipFailedInvocations(boolean skip)
long getInvocationTimeOut()
boolean ignoreMissingDependencies()
void setIgnoreMissingDependencies(boolean ignore)
List<Integer> getInvocationNumbers()
<include invocationNumbers="...">
tag.void addFailedInvocationNumber(int number)
number - The invocation number that failedint getPriority()
void setPriority(int priority)
int getInterceptedPriority()
void setInterceptedPriority(int priority)
XmlTest getXmlTest()
ConstructorOrMethod getConstructorOrMethod()
Map<String,String> findMethodParameters(XmlTest test)
test - - The XmlTest object.String getQualifiedName()
default boolean isDataDriven()
default 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 Class<?>[] getParameterTypes()
Copyright © 2025. All rights reserved.