In this post we will learn how to disable or ignore a test using @Test(enabled=false). Occasionally, we want to disable…
In this post we will learn how to execute TestNG tests with Maven using maven-surefire-plugin. This post also goes over…
In this post we will learn about TestNG Suite test. A Suite in TestNG is commonly represented by one XML…
In this post we will learn about how to use TestNG groups testing feature using @BeforeGroups, @AfterGroups and group exclusion.…
In this post we will learn common TestNG annotations including @Test, @BeforeMethod, @AfterMethod, @BeforeClass, @AfterClass, @BeforeGroups, @AfterGroups, @BeforeSuite, @AfterSuite, @BeforeTest…
In this post we will learn a very basic Hello World example using TestNG. We will learn how to setup…