Some of the features of TestNG
Some of the features of TestNG
1. Ability to enable or disable a test method:
We can manually set disable a particular test method or all the test methods in a class by providing a parameter to @Test annotation
Example:
//To disable all test methods in a class
@Ignore
public class FirstTest { ...@Test(enabled = false)
public void ignoredTestCase(String name) { ...Last updated
Was this helpful?