Popular

TestNG in Selenium

TestNG in Selenium

Level3, Popular, Selenium
TestNG Annotations : Annotations are nothing but a piece of instruction for the compiler that you apply to classes, methods or variables in your Java code. It is a powerful feature and an integral part of the TestNG framework.  The TestNG annotations extend the same concept and control the execution sequence of the test code and test methods   List of Annotations in TestNG: TestNG Annotations Description @Test Attaches a class or a method to become the part of the test. @BeforeTest Instructs the method to run before any test method related to the classes which are inside the <test> tag as per the testng.xml file @AfterTest Halts a method from execution till all the test methods finish their execution. These methods belong to the classes defined