Annotations in TestNg
Pri
|
Annotation
name
|
Documentation
|
1
|
@BeforeSuite
|
Annotates
methods that will be run before any method in a given is run.
|
2
|
@BeforeGroups
|
Annotates
methods that will be run before the first method in any of the specified
groups is run.
|
3
|
@BeforeClass
|
Annotates
methods that will be run before the first method on the current test class is
run.
|
4
|
@BeforeTest
|
Annotates
methods that will be run before any method in a given is run.
|
5
|
@BeforeMethod
|
Annotates
methods that will be run before each test method.
|
6
|
@AfterMethod
|
Annotates
methods that will be run after every test method.
|
7
|
@AfterTest
|
Annotates
methods that will be run after all the test methods in a given have been run.
|
8
|
@AfterClass
|
Annotates
methods that will be run after the last test method on the current class is
run.
|
9
|
@AfterGroups
|
Annotates
methods that will be run after the last test method belonging to the groups
specified in its value attribute has been run. The annotated method is
automatically put into these specified groups.
|
10
|
@AfterSuite
|
Annotates
methods that will be run after all the test methods in a given have been run.
|
Subscribe to:
Post Comments
(
Atom
)
No comments :
Post a Comment