| Interface | Description |
|---|---|
| IAnnotation |
The parent interface for all the annotations.
|
| IConfigurationAnnotation |
Encapsulate the @Configuration / @testng.configuration annotation
|
| IDataProviderAnnotation |
Encapsulate the @DataProvider / @testng.data-provider annotation
|
| IFactoryAnnotation |
Encapsulate the @Factory / @testng.factory annotation
|
| IListenersAnnotation | |
| IObjectFactoryAnnotation | |
| IParameterizable |
Parent interface for annotations that can receive parameters.
|
| IParametersAnnotation |
Encapsulate the @Parameters / @testng.parameters annotation
|
| ITestAnnotation |
Encapsulate the @Test / @testng.test annotation.
|
| ITestOrConfiguration |
This interface captures methods common to @Test and @Configuration
|
| Annotation Type | Description |
|---|---|
| AfterClass | |
| AfterGroups | |
| AfterMethod | |
| AfterSuite | |
| AfterTest | |
| BeforeClass | |
| BeforeGroups | |
| BeforeMethod | |
| BeforeSuite | |
| BeforeTest | |
| CustomAttribute |
Represents a means to add in custom attributes to @
Test annotated tests. |
| DataProvider |
Mark a method as supplying data for a test method.
|
| Factory |
Marks a method as a factory that returns objects that will be used by TestNG as Test classes.
|
| Guice |
This annotation specifies what Guice modules should be used to instantiate this test class.
|
| Ignore |
Alternative of @Test(enable=false)
|
| Listeners |
This annotation lets you define listeners directly on a test class instead of doing so in your
testng.xml.
|
| NoInjection |
Turn off TestNG injection for a parameter.
|
| ObjectFactory |
Marks a method as the object factory to use for creating all test instances.
|
| Optional |
Specifies that the current parameter is optional.
|
| Parameters |
Describes how to pass parameters to a @Test method.
|
| Test |
Mark a class or a method as part of the test.
|
| 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.
|