Package org.testng.annotations
Annotation Type Listeners
-
@Retention(RUNTIME) @Target(TYPE) public @interface ListenersThis annotation lets you define listeners directly on a test class instead of doing so in your testng.xml. Any class that implements the interfaceITestNGListeneris allowed, exceptIAnnotationTransformerwhich need to be defined in XML since they have to be known before we even start looking for annotations.Note that listeners specified this way are global to your entire suite, just like listeners specified in testng.xml.
-
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description java.lang.Class<? extends ITestNGListener>[]value
-
-
-
Element Detail
-
value
java.lang.Class<? extends ITestNGListener>[] value
- Default:
- {}
-
-