TestNG – 7 || Use of BeforeClass and AfterClass.

BeforeClass and AfterClass annotations are like defining pre-condition and post-conditions in a Program. As in the last chapter, we have…

Continue Reading →

TestNG – 6 || Use of BeforeMethod and AfterMethod.

As per the names, BeforeMethod and AfterMethod annotations get executed for each test method/case in a class file. Please note,…

Continue Reading →