public class TestNGMethod extends BaseTestMethod
m_afterGroups, m_annotationFinder, m_beforeGroups, m_currentInvocationCount, m_date, m_groups, m_groupsDependedUpon, m_id, m_method, m_methodClass, m_methodsDependedUpon, m_objectFactory, m_testClass| Constructor and Description |
|---|
TestNGMethod(ITestObjectFactory objectFactory,
Method method,
IAnnotationFinder finder,
XmlTest xmlTest,
Object instance)
Constructs a
TestNGMethod |
| Modifier and Type | Method and Description |
|---|---|
BaseTestMethod |
clone()
Clones the current
TestNGMethod and its @BeforeMethod and @AfterMethod methods. |
CustomAttribute[] |
getAttributes() |
IDataProviderMethod |
getDataProviderMethod() |
int |
getInvocationCount() |
int |
getSuccessPercentage()
Default value for successPercentage.
|
int |
getThreadPoolSize() |
boolean |
isDataDriven() |
boolean |
isTest() |
void |
setDataProviderMethod(IDataProviderMethod dataProviderMethod) |
void |
setInvocationCount(int counter)
Sets the number of invocations for this method.
|
void |
setThreadPoolSize(int threadPoolSize)
Sets the number of threads on which this method should be invoked.
|
addFailedInvocationNumber, addMethodDependedUpon, canRunFromClass, equals, findMethodParameters, getAfterGroups, getAnnotationFinder, getBeforeGroups, getConstructorOrMethod, getCurrentInvocationCount, getDate, getDescription, getEnabled, getFactoryMethodParamsInfo, getFailedInvocationNumbers, getGroups, getGroupsDependedUpon, getIClass, getId, getInstance, getInstanceHashCodes, getInterceptedPriority, getInvocationNumbers, getInvocationTime, getInvocationTimeOut, getMethodName, getMethodsDependedUpon, getMissingGroup, getParameterInvocationCount, getParameterTypes, getPriority, getQualifiedName, getRealClass, getRetryAnalyzer, getRetryAnalyzerClass, getSignature, getSimpleName, getStringArray, getTestClass, getTimeOut, getXmlTest, hashCode, hasMoreInvocation, ignoreMissingDependencies, incrementCurrentInvocationCount, initBeforeAfterGroups, initGroups, isAfterClassConfiguration, isAfterGroupsConfiguration, isAfterMethodConfiguration, isAfterSuiteConfiguration, isAfterTestConfiguration, isAlwaysRun, isBeforeClassConfiguration, isBeforeGroupsConfiguration, isBeforeMethodConfiguration, isBeforeSuiteConfiguration, isBeforeTestConfiguration, setAlwaysRun, setDate, setDescription, setEnabled, setGroups, setGroupsDependedUpon, setId, setIgnoreMissingDependencies, setInterceptedPriority, setInvocationNumbers, setInvocationTimeOut, setInvokedAt, setMethodsDependedUpon, setMissingGroup, setMoreInvocationChecker, setParameterInvocationCount, setPriority, setRetryAnalyzerClass, setSkipFailedInvocations, setTestClass, setTimeOut, setXmlTest, skipFailedInvocations, toStringfinalize, getClass, notify, notifyAll, wait, wait, waithasAfterGroupsConfiguration, hasBeforeGroupsConfigurationpublic TestNGMethod(ITestObjectFactory objectFactory, Method method, IAnnotationFinder finder, XmlTest xmlTest, Object instance)
TestNGMethodpublic int getInvocationCount()
getInvocationCount in interface ITestNGMethodgetInvocationCount in class BaseTestMethodpublic int getSuccessPercentage()
getSuccessPercentage in interface ITestNGMethodgetSuccessPercentage in class BaseTestMethodpublic boolean isTest()
isTest in interface ITestNGMethodisTest in class BaseTestMethodpublic int getThreadPoolSize()
getThreadPoolSize in interface ITestNGMethodgetThreadPoolSize in class BaseTestMethodpublic void setThreadPoolSize(int threadPoolSize)
setThreadPoolSize in interface ITestNGMethodsetThreadPoolSize in class BaseTestMethodpublic void setInvocationCount(int counter)
setInvocationCount in interface ITestNGMethodsetInvocationCount in class BaseTestMethodpublic BaseTestMethod clone()
TestNGMethod and its @BeforeMethod and @AfterMethod methods.clone in interface ITestNGMethodclone in class BaseTestMethodBaseTestMethod.clone()public boolean isDataDriven()
public CustomAttribute[] getAttributes()
CustomAttribute that represents the custom attributes associated
with a test.public IDataProviderMethod getDataProviderMethod()
IDataProviderMethod for a data provider powered test method and null
otherwise.public void setDataProviderMethod(IDataProviderMethod dataProviderMethod)
Copyright © 2025. All rights reserved.