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