Annotation Type | Description |
---|---|
AfterClass | |
AfterGroups | |
AfterMethod | |
AfterSuite | |
AfterTest | |
BeforeClass | |
BeforeGroups | |
BeforeMethod | |
BeforeSuite | |
BeforeTest | |
Configuration | Deprecated
Use @BeforeSuite, @AfterSuite, @BeforeTest, @AfterTest,
|
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.
|
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.
|