Top Interfaces Annotations
[default module]

Package org.testng.annotations


Interface Summary

Modifier and TypeInterface and Description
public interface
IAnnotation

The parent interface for all the annotations.

public interface
IConfigurationAnnotation

Encapsulate the @Configuration / @testng.configuration annotation

public interface
IDataProviderAnnotation

Encapsulate the @DataProvider / @testng.data-provider annotation

public interface
IFactoryAnnotation

Encapsulate the @Factory / @testng.factory annotation

public interface
IIgnoreAnnotation

Encapsulate the @Ignore annotation

public interface
public interface
public interface
IParameterizable

Parent interface for annotations that can receive parameters.

public interface
IParametersAnnotation

Encapsulate the @Parameters / @testng.parameters annotation

public interface
ITestAnnotation

Encapsulate the @Test / @testng.test annotation.

public interface
ITestOrConfiguration

This interface captures methods common to @Test and @Configuration

Annotation Summary

Modifier and TypeAnnotation and Description
public @interface
public @interface
public @interface
public @interface
public @interface
public @interface
public @interface
public @interface
public @interface
public @interface
public @interface
CustomAttribute

Represents a means to add in custom attributes to @Test annotated tests.

public @interface
DataProvider

Mark a method as supplying data for a test method.

public @interface
Factory

Marks a method as a factory that returns objects that will be used by TestNG as Test classes.

public @interface
Guice

This annotation specifies what Guice modules should be used to instantiate this test class.

public @interface
Ignore

Alternative of @Test(enabled=false)

Notice that @Ignore on a class will disable all test methods of the class.

public @interface
Listeners

This annotation lets you define listeners directly on a test class instead of doing so in your testng.xml.

public @interface
NoInjection

Turn off TestNG injection for a parameter.

public @interface
ObjectFactory

Marks a method as the object factory to use for creating all test instances.

public @interface
Optional

Specifies that the current parameter is optional.

public @interface
Parameters

Describes how to pass parameters to a @Test method.

public @interface
Test

Mark a class or a method as part of the test.

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.