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 →

TestNG – 5 || Understand Assertion in TestNG.

The Assertion in TestNG decides the Pass/Fail status of individual Test Methods. Java Assertion is mainly used to take decisions…

Continue Reading →

TestNG – 4 || Let’s understand @Test Annotation and attributes.

Using Annotation is the way to implement additional properties in normal methods. These annotations are pre-defined and entry-point of the…

Continue Reading →