AfterClass |
|
AfterGroups |
|
AfterMethod |
|
AfterSuite |
|
AfterTest |
|
BeforeClass |
|
BeforeGroups |
|
BeforeMethod |
|
BeforeSuite |
|
BeforeTest |
|
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)
Notice that @Ignore on a class will disable all test methods of the class.
|
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.
|