Java Scrap Book  

Java Scrap Book > TestNG > Annotation

TestNG Annotation

TestNG Annotation Reference

Annotation Name Description
@BeforeSuite The annotated method will be run only one time before the execution of all tests in the suite.
@AfterSuite The annotated method will be run only one time After the execution of all tests in the suite.
@BeforeTest The annotated method will be run only one time before the execution of all the tests.
@AfterTest The annotated method will be run only one time After the execution of all the tests.
@BeforeGroups The annotated method will be run only one time before the execution of all tests in the Group.
@AfterGroups The annotated method will be run only one time After the execution of all tests in the Group.
@BeforeClass The annotated method will be run only one time before the execution of all tests in the class.
@AfterClass The annotated method will be run only one time After the execution of all tests in the class.
@BeforeMethod The annotated method will be run always before the execution of each test method.
@AfterMethod The annotated method will be run always After the execution of each test method.


Copyright © 2013-2017

javascrapbook.com is a computer science content service should not be treated as the publisher or speaker of any information provided by another Computer Science content provider.

Contact email: help@javascrapbook.com