Top Description Methods
org.testng.annotations

public Interface IDataProviderAnnotation

extends IAnnotation
Known Direct Implementers
org.testng.internal.annotations.DataProviderAnnotation
Imports
java.util.List, org.testng.IRetryDataProvider

Encapsulate the @DataProvider / @testng.data-provider annotation

Method Summary

Modifier and TypeMethod and Description
public void
cacheDataForTestRetries(boolean
- when set to true, TestNG does not invoke the data provider again when retrying failed tests using a retry analyzer.
cache
)

public List<Integer>
public String

Returns:

The name of this DataProvider.
getName
()

public 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.
isCacheDataForTestRetries
()

public boolean

Returns:

true if in parallel
isParallel
()

Whether this data provider should be used in parallel.

public boolean

Returns:

- trueIf data provider failures should be propagated as test failures
isPropagateFailureAsTestFailure
()

public void
propagateFailureAsTestFailure()

Have TestNG consider failures in data provider methods as test failures.

public Class<? extends IRetryDataProvider>

Returns:

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

public void
public void
public void
setParallel(boolean parallel)

public void
setRetryUsing(Class<? extends IRetryDataProvider>
- A Class that implements IRetryDataProvider and which can be used to retry a data provider.
retry
)

Method Detail

cacheDataForTestRetriesback to summary
public void cacheDataForTestRetries(boolean cache)
Parameters
cache:boolean

- when set to true, TestNG does not invoke the data provider again when retrying failed tests using a retry analyzer.

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

The name of this DataProvider.

isCacheDataForTestRetriesback to summary
public boolean isCacheDataForTestRetries()
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.

isParallelback to summary
public boolean isParallel()

Whether this data provider should be used in parallel.

Returns:boolean

true if in parallel

isPropagateFailureAsTestFailureback to summary
public boolean isPropagateFailureAsTestFailure()
Returns:boolean

- trueIf data provider failures should be propagated as test failures

propagateFailureAsTestFailureback to summary
public void propagateFailureAsTestFailure()

Have TestNG consider failures in data provider methods as test failures.

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

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

setIndicesback to summary
public void setIndices(List<Integer> indices)
setNameback to summary
public void setName(String name)
setParallelback to summary
public void setParallel(boolean parallel)
setRetryUsingback to summary
public void setRetryUsing(Class<? extends IRetryDataProvider> retry)
Parameters
retry:Class<? extends IRetryDataProvider>

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