Package org.testng
Interface IDataProviderMethod
public interface IDataProviderMethod
Represents the attributes of a
DataProvider
annotated method.-
Method Summary
Modifier and TypeMethodDescriptiondefault boolean
getName()
boolean
default boolean
default Class
<? extends IRetryDataProvider>
-
Method Details
-
getInstance
Object getInstance()- Returns:
- - The instance to which the data provider belongs to.
null
if the data provider is a static one.
-
getMethod
Method getMethod()- Returns:
- - A
Method
object that represents the actual @DataProvider
method.
-
getName
String getName()- Returns:
- The name of this DataProvider.
-
isParallel
boolean isParallel()- Returns:
- Whether this data provider should be run in parallel.
-
getIndices
- Returns:
- Which indices to run from this data provider, default: all.
-
propagateFailureAsTestFailure
default boolean propagateFailureAsTestFailure()- Returns:
- Whether failures in data providers should be treated as test failures
-
retryUsing
- Returns:
- - An Class which implements
IRetryDataProvider
and which can be used to retry a data provider.
-
cacheDataForTestRetries
default boolean cacheDataForTestRetries()- Returns:
- -
true
if TestNG should use data returned by the original data provider invocation, when a test method fails and is configured to be retried.
-