Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 
  • TestNG Annotations

    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 298
    Comment on it

    TestNG is a testing framework and there are many annotations supported by testNG

    1. @BeforeSuite: The annotated method will be executed before all tests in the suite.
    2. @AfterSuite: The annotated method will be executed after all tests in this suite have been executed.
    3. @BeforeTest: The annotated method will be executed before any test method belonging to the classes inside the tag is executed .
    4. @AfterTest: The annotated method will be executed after all the test methods belonging to the classes inside the tag have been executed.
    5. @BeforeClass: The annotated method will be executed before the first test method in the current class is invoked.
    6. @AfterClass: The annotated method will be executed after all the test methods in the current class have been executed.
    7. @BeforeMethod: The annotated method will be executed before each test method.
    8. @AfterMethod: The annotated method will be executed after each test method.
    9. @Test: This annotation marks a method or a class as a part of the test.

 0 Comment(s)

Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: