This interface is not meant to be implemented by users.
| Modifier and Type | Method and Description |
|---|---|
| public void | addFailedInvocationNumber(int
The invocation number that failed number)The list of invocation numbers that failed, which is only applicable for methods that have a data provider. |
| public void | |
| public boolean | Returns: true if this ITestNGMethod can be invoked from within IClass.The test class testClass)
|
| public ITestNGMethod | |
| public default Set | Returns: - The set of methods that are dependent on the current method. This information can help in deciding what other TestNG methods will be skipped if the current method fails. If the current method is a configuration method, then an empty set is returned.
|
| public Map | Returns: the parameters found in the include tag, if any- The test)XmlTest object.
|
| public String[] | |
| public default CustomAttribute[] | Returns: - An array ofCustomAttribute that represents the custom attributes associated
with a test.
|
| public String[] | |
| public ConstructorOrMethod | |
| public int | |
| public default IDataProviderMethod | |
| public long | |
| public String | |
| public boolean | |
| public default IParameterInfo | Returns: - AIParameterInfo object that represents details about the parameters
associated with the factory method.
|
| public List | |
| public String[] | Returns: The groups this method belongs to, possibly added to the groups declared on the class.
|
| public String[] | Returns: The groups this method depends on, possibly added to the groups declared on the class.
|
| public String | |
| public Object | |
| public long[] | |
| public int | |
| public int | |
| public List | Returns: The list of invocation numbersWhich invocation numbers of this method should be used (only applicable if it uses a data provider). |
| public long | Returns: The time under which all invocationCount methods need to complete by.
|
| public String | |
| public String[] | Returns: The methods this method depends on, possibly added to the methods declared on the class.
|
| public String | |
| public int | |
| public default Class | |
| public int | |
| public String | Returns: qualified name for this methodgetRealClass().getName() + "." + getMethodName() |
| public Class | Returns: The real class on which this method was declared (can be different from getMethod().getDeclaringClass() if the test method was defined in a superclass).
|
| public IRetryAnalyzer | |
| public Class | |
| public int | |
| public ITestClass | |
| public int | |
| public long | |
| public XmlTest | |
| public default boolean | |
| public default boolean | |
| public boolean | |
| public boolean | |
| public void | |
| public boolean | Returns: true if this method was annotated with @Configuration and beforeClassMethod = false
|
| public boolean | |
| public boolean | Returns: true if this method was annotated with @Configuration and beforeTestMethod = false
|
| public boolean | Returns: true if this method was annotated with @Configuration and afterSuite = true
|
| public boolean | Returns: true if this method is an @AfterTest (@Configuration afterTest=true)
|
| public boolean | |
| public boolean | Returns: true if this method was annotated with @Configuration and beforeClassMethod = true
|
| public boolean | |
| public boolean | Returns: true if this method was annotated with @Configuration and beforeTestMethod = true
|
| public boolean | Returns: true if this method was annotated with @Configuration and beforeSuite = true
|
| public boolean | Returns: true if this method is a @BeforeTest (@Configuration beforeTest=true)
|
| public default boolean | |
| public default boolean | Returns: -true if the configuration failure arising out of this method should be
ignored.
|
| public boolean | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | setTestClass(ITestClass
The test class having this method. cls)Sets the test class having this method. |
| public void | |
| public void | |
| public boolean | |
| public default Set | Returns: - The set of methods upon which the current method has a dependency. This information can help in deciding what all TestNG methods need to pass before the current method can be executed. If the current method is a configuration method, then an empty set is returned.
|
| addFailedInvocationNumber | back to summary |
|---|---|
| public void addFailedInvocationNumber(int number) The list of invocation numbers that failed, which is only applicable for methods that have a data provider.
| |
| addMethodDependedUpon | back to summary |
|---|---|
| public void addMethodDependedUpon(String methodName) | |
| canRunFromClass | back to summary |
|---|---|
public boolean canRunFromClass(IClass testClass)
| |
| clone | back to summary |
|---|---|
| public ITestNGMethod clone() | |
| downstreamDependencies | back to summary |
|---|---|
public default Set
| |
| findMethodParameters | back to summary |
|---|---|
| public Map | |
| getAfterGroups | back to summary |
|---|---|
| public String[] getAfterGroups() | |
| getAttributes | back to summary |
|---|---|
public default CustomAttribute[] getAttributes()
| |
| getBeforeGroups | back to summary |
|---|---|
| public String[] getBeforeGroups() | |
| getConstructorOrMethod | back to summary |
|---|---|
| public ConstructorOrMethod getConstructorOrMethod() | |
| getCurrentInvocationCount | back to summary |
|---|---|
| public int getCurrentInvocationCount() | |
| getDataProviderMethod | back to summary |
|---|---|
public default IDataProviderMethod getDataProviderMethod()
| |
| getDate | back to summary |
|---|---|
| public long getDate() | |
| getDescription | back to summary |
|---|---|
| public String getDescription() | |
| getEnabled | back to summary |
|---|---|
| public boolean getEnabled() | |
| getFactoryMethodParamsInfo | back to summary |
|---|---|
public default IParameterInfo getFactoryMethodParamsInfo()
| |
| getFailedInvocationNumbers | back to summary |
|---|---|
| public List | |
| getGroups | back to summary |
|---|---|
public String[] getGroups()
| |
| getGroupsDependedUpon | back to summary |
|---|---|
public String[] getGroupsDependedUpon()
| |
| getId | back to summary |
|---|---|
public String getId()
| |
| getInstance | back to summary |
|---|---|
| public Object getInstance() | |
| getInstanceHashCodes | back to summary |
|---|---|
| public long[] getInstanceHashCodes() Needed for serialization.
| |
| getInterceptedPriority | back to summary |
|---|---|
| public int getInterceptedPriority() | |
| getInvocationCount | back to summary |
|---|---|
public int getInvocationCount()
| |
| getInvocationNumbers | back to summary |
|---|---|
| public List Which invocation numbers of this method should be used (only applicable if it uses a data
provider). If this value is an empty list, use all the values returned from the data provider.
These values are read from the XML file in the | |
| getInvocationTimeOut | back to summary |
|---|---|
public long getInvocationTimeOut()
| |
| getMethodName | back to summary |
|---|---|
| public String getMethodName() Returns the method name. This is needed for serialization because methods are not Serializable.
| |
| getMethodsDependedUpon | back to summary |
|---|---|
public String[] getMethodsDependedUpon()
| |
| getMissingGroup | back to summary |
|---|---|
public String getMissingGroup()
| |
| getParameterInvocationCount | back to summary |
|---|---|
| public int getParameterInvocationCount() | |
| getParameterTypes | back to summary |
|---|---|
| public default Class | |
| getPriority | back to summary |
|---|---|
| public int getPriority() The scheduling priority. Lower priorities get scheduled first.
| |
| getQualifiedName | back to summary |
|---|---|
| public String getQualifiedName() getRealClass().getName() + "." + getMethodName()
| |
| getRealClass | back to summary |
|---|---|
public Class
| |
| getRetryAnalyzer | back to summary |
|---|---|
| public IRetryAnalyzer getRetryAnalyzer(ITestResult result) | |
| getRetryAnalyzerClass | back to summary |
|---|---|
| public Class | |
| getSuccessPercentage | back to summary |
|---|---|
public int getSuccessPercentage()
| |
| getTestClass | back to summary |
|---|---|
| public ITestClass getTestClass() | |
| getThreadPoolSize | back to summary |
|---|---|
public int getThreadPoolSize()
| |
| getTimeOut | back to summary |
|---|---|
public long getTimeOut()
| |
| getXmlTest | back to summary |
|---|---|
public XmlTest getXmlTest()
| |
| hasAfterGroupsConfiguration | back to summary |
|---|---|
| public default boolean hasAfterGroupsConfiguration() | |
| hasBeforeGroupsConfiguration | back to summary |
|---|---|
| public default boolean hasBeforeGroupsConfiguration() | |
| hasMoreInvocation | back to summary |
|---|---|
| public boolean hasMoreInvocation() | |
| ignoreMissingDependencies | back to summary |
|---|---|
| public boolean ignoreMissingDependencies() | |
| incrementCurrentInvocationCount | back to summary |
|---|---|
| public void incrementCurrentInvocationCount() | |
| isAfterClassConfiguration | back to summary |
|---|---|
public boolean isAfterClassConfiguration()
| |
| isAfterGroupsConfiguration | back to summary |
|---|---|
| public boolean isAfterGroupsConfiguration() | |
| isAfterMethodConfiguration | back to summary |
|---|---|
public boolean isAfterMethodConfiguration()
| |
| isAfterSuiteConfiguration | back to summary |
|---|---|
public boolean isAfterSuiteConfiguration()
| |
| isAfterTestConfiguration | back to summary |
|---|---|
public boolean isAfterTestConfiguration()
| |
| isAlwaysRun | back to summary |
|---|---|
public boolean isAlwaysRun()
| |
| isBeforeClassConfiguration | back to summary |
|---|---|
public boolean isBeforeClassConfiguration()
| |
| isBeforeGroupsConfiguration | back to summary |
|---|---|
| public boolean isBeforeGroupsConfiguration() | |
| isBeforeMethodConfiguration | back to summary |
|---|---|
public boolean isBeforeMethodConfiguration()
| |
| isBeforeSuiteConfiguration | back to summary |
|---|---|
public boolean isBeforeSuiteConfiguration()
| |
| isBeforeTestConfiguration | back to summary |
|---|---|
public boolean isBeforeTestConfiguration()
| |
| isDataDriven | back to summary |
|---|---|
| public default boolean isDataDriven() | |
| isIgnoreFailure | back to summary |
|---|---|
public default boolean isIgnoreFailure()
| |
| isTest | back to summary |
|---|---|
public boolean isTest()
| |
| setDate | back to summary |
|---|---|
| public void setDate(long date) | |
| setDescription | back to summary |
|---|---|
| public void setDescription(String description) | |
| setId | back to summary |
|---|---|
| public void setId(String id) | |
| setIgnoreMissingDependencies | back to summary |
|---|---|
| public void setIgnoreMissingDependencies(boolean ignore) | |
| setInterceptedPriority | back to summary |
|---|---|
| public void setInterceptedPriority(int priority) | |
| setInvocationCount | back to summary |
|---|---|
| public void setInvocationCount(int count) | |
| setInvocationNumbers | back to summary |
|---|---|
| public void setInvocationNumbers(List<Integer> numbers) | |
| setMissingGroup | back to summary |
|---|---|
| public void setMissingGroup(String group) | |
| setMoreInvocationChecker | back to summary |
|---|---|
| public void setMoreInvocationChecker(Callable<Boolean> moreInvocationChecker) | |
| setParameterInvocationCount | back to summary |
|---|---|
| public void setParameterInvocationCount(int n) | |
| setPriority | back to summary |
|---|---|
| public void setPriority(int priority) | |
| setRetryAnalyzerClass | back to summary |
|---|---|
| public void setRetryAnalyzerClass(Class<? extends IRetryAnalyzer> clazz) | |
| setSkipFailedInvocations | back to summary |
|---|---|
| public void setSkipFailedInvocations(boolean skip) | |
| setTestClass | back to summary |
|---|---|
| public void setTestClass(ITestClass cls) Sets the test class having this method. This is not necessarily the declaring class.
| |
| setThreadPoolSize | back to summary |
|---|---|
| public void setThreadPoolSize(int threadPoolSize) | |
| setTimeOut | back to summary |
|---|---|
| public void setTimeOut(long timeOut) | |
| skipFailedInvocations | back to summary |
|---|---|
| public boolean skipFailedInvocations() | |
| upstreamDependencies | back to summary |
|---|---|
public default Set
| |