in Testing by (20.8k points)

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

1 Answer

0 votes
by (31.7k points)
To skip a particular test method or a code, then you can set the ‘enabled’ parameter in test annotation to false.

@Test(enabled = false)

Related questions

0 votes
0 votes
asked Mar 29, 2021 in Testing by sharadyadav1986 (31.7k points)
0 votes
asked Dec 9, 2019 in Testing by Robindeniel (20.8k points)
+1 vote
asked Mar 27, 2021 in Testing by rajeshsharma (23.9k points)
...