|
Annotation Types Summary |
| AfterClass |
|
| AfterGroups |
|
| AfterMethod |
|
| AfterSuite |
|
| AfterTest |
|
| BeforeClass |
|
| BeforeGroups |
|
| BeforeMethod |
|
| BeforeSuite |
|
| BeforeTest |
|
| Configuration |
Deprecated. Use @BeforeSuite, @AfterSuite, @BeforeTest, @AfterTest,
\@BeforeGroups, @AfterGroups, @BeforeClass, @AfterClass, @BeforeMethod,
\@AfterMethod |
| DataProvider |
Mark a method as supplying data for a test method. |
| ExpectedExceptions |
Deprecated. Use @Test(expectedExceptions = "...") |
| 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. |
| 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. |