How to skip a method or a code block in TestNG?

How to skip a method or a code block in TestNG?

Hello Richard.hall,

You can skip a particular test method or a code; then, you can set the ‘enabled’ parameter in the test annotation to false.

@Test (enabled = false)