Listeners (TestNG)

Overview | Package | Class | Tree | Deprecated | Index | Help

PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT

## org.testng.annotations
Annotation Type Listeners

    @Retention(value=RUNTIME)
    @Target(value=TYPE)
    public @interface Listeners

This annotation lets you define listeners directly on a test class instead of doing so in your testng.xml. Any class that implements the interface `ITestNGListener` is allowed, except `IAnnotationTransformer` and `IAnnotationTransformer2`, which 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.

Author:
  Cedric Beust, Mar 26, 2010

Optional Element Summary
`java.lang.Class<? extends ITestNGListener>[]` | `value`

### value

    public abstract java.lang.Class<? extends ITestNGListener>[] value

  Default:
    {}

Overview | Package | Class | Tree | Deprecated | Index | Help

PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT