Top Description Fields Constructors Methods
org.testng.internal.annotations

public Class DataProviderAnnotation

extends BaseAnnotation
implements IDataProviderAnnotation
Class Inheritance
All Implemented Interfaces
org.testng.annotations.IDataProviderAnnotation, org.testng.annotations.IAnnotation
Imports
java.util.List, org.testng.IRetryDataProvider, org.testng.annotations.IDataProviderAnnotation

An implementation of IDataProvider.

Field Summary

Modifier and TypeField and Description
private boolean
private boolean
private List<Integer>
private String
private boolean
private Class<? extends IRetryDataProvider>

Constructor Summary

AccessConstructor and Description
public

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
)

Implements org.testng.annotations.IDataProviderAnnotation.cacheDataForTestRetries.

public List<Integer>
public String
public boolean
public boolean
isParallel()

Implements org.testng.annotations.IDataProviderAnnotation.isParallel.

Whether this data provider should be used in parallel.
public boolean
public void
propagateFailureAsTestFailure()

Implements org.testng.annotations.IDataProviderAnnotation.propagateFailureAsTestFailure.

Have TestNG consider failures in data provider methods as test failures.
public Class<? extends IRetryDataProvider>
public void
public void
public void
public void
setRetryUsing(Class<? extends IRetryDataProvider>
- A Class that implements IRetryDataProvider and which can be used to retry a data provider.
retry
)

Implements org.testng.annotations.IDataProviderAnnotation.setRetryUsing.

Inherited from org.testng.internal.annotations.BaseAnnotation:
getConstructorgetMethodgetTestClasssetConstructorsetMethodsetTestClass

Field Detail

cachedDataForTestRetriesback to summary
private boolean cachedDataForTestRetries
m_bubbleUpFailuresback to summary
private boolean m_bubbleUpFailures
m_indicesback to summary
private List<Integer> m_indices
m_nameback to summary
private String m_name
m_parallelback to summary
private boolean m_parallel
retryUsingback to summary
private Class<? extends IRetryDataProvider> retryUsing

Constructor Detail

DataProviderAnnotationback to summary
public DataProviderAnnotation()

Method Detail

cacheDataForTestRetriesback to summary
public void cacheDataForTestRetries(boolean cache)

Implements org.testng.annotations.IDataProviderAnnotation.cacheDataForTestRetries.

Parameters
cache:boolean

Doc from org.testng.annotations.IDataProviderAnnotation.cacheDataForTestRetries.

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

Implements org.testng.annotations.IDataProviderAnnotation.getIndices.

Annotations
@Override
getNameback to summary
public String getName()

Implements org.testng.annotations.IDataProviderAnnotation.getName.

Returns:String

Doc from org.testng.annotations.IDataProviderAnnotation.getName.

The name of this DataProvider.

Annotations
@Override
isCacheDataForTestRetriesback to summary
public boolean isCacheDataForTestRetries()

Implements org.testng.annotations.IDataProviderAnnotation.isCacheDataForTestRetries.

Returns:boolean

Doc from org.testng.annotations.IDataProviderAnnotation.isCacheDataForTestRetries.

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

Annotations
@Override
isParallelback to summary
public boolean isParallel()

Implements org.testng.annotations.IDataProviderAnnotation.isParallel.

Doc from org.testng.annotations.IDataProviderAnnotation.isParallel.

Whether this data provider should be used in parallel.

Returns:boolean

true if in parallel

Annotations
@Override
isPropagateFailureAsTestFailureback to summary
public boolean isPropagateFailureAsTestFailure()

Implements org.testng.annotations.IDataProviderAnnotation.isPropagateFailureAsTestFailure.

Returns:boolean

Doc from org.testng.annotations.IDataProviderAnnotation.isPropagateFailureAsTestFailure.

- trueIf data provider failures should be propagated as test failures

Annotations
@Override
propagateFailureAsTestFailureback to summary
public void propagateFailureAsTestFailure()

Implements org.testng.annotations.IDataProviderAnnotation.propagateFailureAsTestFailure.

Doc from org.testng.annotations.IDataProviderAnnotation.propagateFailureAsTestFailure.

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

Annotations
@Override
retryUsingback to summary
public Class<? extends IRetryDataProvider> retryUsing()

Implements org.testng.annotations.IDataProviderAnnotation.retryUsing.

Returns:Class<? extends IRetryDataProvider>

Doc from org.testng.annotations.IDataProviderAnnotation.retryUsing.

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

Annotations
@Override
setIndicesback to summary
public void setIndices(List<Integer> indices)

Implements org.testng.annotations.IDataProviderAnnotation.setIndices.

Annotations
@Override
setNameback to summary
public void setName(String name)

Implements org.testng.annotations.IDataProviderAnnotation.setName.

Annotations
@Override
setParallelback to summary
public void setParallel(boolean parallel)

Implements org.testng.annotations.IDataProviderAnnotation.setParallel.

Annotations
@Override
setRetryUsingback to summary
public void setRetryUsing(Class<? extends IRetryDataProvider> retry)

Implements org.testng.annotations.IDataProviderAnnotation.setRetryUsing.

Parameters
retry:Class<? extends IRetryDataProvider>

Doc from org.testng.annotations.IDataProviderAnnotation.setRetryUsing.

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

Annotations
@Override