All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.testng.annotations.Listeners Maven / Gradle / Ivy

There is a newer version: 7.10.1
Show newest version
package org.testng.annotations;

import static java.lang.annotation.ElementType.TYPE;

import org.testng.IAnnotationTransformer;
import org.testng.ITestNGListener;

import java.lang.annotation.Retention;
import java.lang.annotation.Target;

/**
 * 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 {@link org.testng.ITestNGListener} is
 * allowed, except {@link IAnnotationTransformer} 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. */ @Retention(java.lang.annotation.RetentionPolicy.RUNTIME) @Target({TYPE}) public @interface Listeners { Class[] value() default {}; }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy