Posted On: Apr 06, 2020
To disable a test in TestNG, you can set the enabled attribute in the @Test annotation to false. It will disable the test method from execution from the test suite. To disable all the public methods inside the class, you can set this attribute at the class level.
//set the following attribute to false to disable test case in TestNG. @Test(enabled=false)
Never Miss an Articles from us.