Package org.testng.annotations
Interface IDataProviderAnnotation
- All Superinterfaces:
IAnnotation
- All Known Implementing Classes:
DataProviderAnnotation
Encapsulate the @DataProvider / @testng.data-provider annotation
-
Method Summary
Modifier and TypeMethodDescriptiongetName()booleanWhether this data provider should be used in parallel.booleanvoidHave TestNG consider failures in data provider methods as test failures.voidsetIndices(List<Integer> indices) voidvoidsetParallel(boolean parallel)
-
Method Details
-
getName
String getName()- Returns:
- The name of this DataProvider.
-
setName
-
isParallel
boolean isParallel()Whether this data provider should be used in parallel.- Returns:
- true if in parallel
-
setParallel
void setParallel(boolean parallel) -
getIndices
-
setIndices
-
propagateFailureAsTestFailure
void propagateFailureAsTestFailure()Have TestNG consider failures in data provider methods as test failures. -
isPropagateFailureAsTestFailure
boolean isPropagateFailureAsTestFailure()- Returns:
- -
trueIf data provider failures should be propagated as test failures
-