Package org.testng.annotations
Annotation Type TestInstance
-
@Retention(RUNTIME) @Target(PARAMETER) public @interface TestInstance
If this annotation is used on a parameter of a data provider, that parameter is the instance of the test method which is going to be fed by this data provider.This annotation is ignored everywhere else.