exclude a test in testng code example
Example 1: ignore test in testng
To ignore the test case, we use the (enabled = false) parameter :
@Test(enabled=false)
Example 2: excluding test in testng
By adding the exclude tag in the testing.xml
To ignore the test case, we use the (enabled = false) parameter :
@Test(enabled=false)
By adding the exclude tag in the testing.xml