in Testing by
Q:

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

1 Answer

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

@Test(enabled = false)
Click here to read more about Loan/Mortgage
Click here to read more about Insurance

Related questions

0 votes
asked Jan 18 in Python by SakshiSharma
0 votes
asked Jun 22, 2019 in PHP by SakshiSharma
0 votes
...