org.testng.annotations
Annotation Type TestInstance


@Retention(value=RUNTIME)
@Target(value=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.

Author:
cbeust



Copyright © 2012. All Rights Reserved.