Top Description Methods
org.testng

public Interface IDataProviderMethod

Known Direct Implementers
org.testng.internal.DataProviderMethod
Imports
java.lang.reflect.Method, java.util.List

Represents the attributes of a org.testng.annotations.DataProvider annotated method.

Method Summary

Modifier and TypeMethod and Description
public default boolean

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.
cacheDataForTestRetries
()

public List<Integer>

Returns:

Which indices to run from this data provider, default: all.
getIndices
()

public Object

Returns:

- The instance to which the data provider belongs to. null if the data provider is a static one.
getInstance
()

public Method

Returns:

- A Method object that represents the actual @org.testng.annotations.DataProvider method.
getMethod
()

public String

Returns:

The name of this DataProvider.
getName
()

public boolean

Returns:

Whether this data provider should be run in parallel.
isParallel
()

public default boolean

Returns:

Whether failures in data providers should be treated as test failures
propagateFailureAsTestFailure
()

public default Class<? extends IRetryDataProvider>

Returns:

- An Class which implements IRetryDataProvider and which can be used to retry a data provider.
retryUsing
()

Method Detail

cacheDataForTestRetriesback to summary
public default boolean cacheDataForTestRetries()
Returns:boolean

- true if TestNG should use data returned by the original data provider invocation, when a test method fails and is configured to be retried.

getIndicesback to summary
public List<Integer> getIndices()
Returns:List<Integer>

Which indices to run from this data provider, default: all.

getInstanceback to summary
public Object getInstance()
Returns:Object

- The instance to which the data provider belongs to. null if the data provider is a static one.

getMethodback to summary
public Method getMethod()
Returns:Method

- A Method object that represents the actual @org.testng.annotations.DataProvider method.

getNameback to summary
public String getName()
Returns:String

The name of this DataProvider.

isParallelback to summary
public boolean isParallel()
Returns:boolean

Whether this data provider should be run in parallel.

propagateFailureAsTestFailureback to summary
public default boolean propagateFailureAsTestFailure()
Returns:boolean

Whether failures in data providers should be treated as test failures

retryUsingback to summary
public default Class<? extends IRetryDataProvider> retryUsing()
Returns:Class<? extends IRetryDataProvider>

- An Class which implements IRetryDataProvider and which can be used to retry a data provider.