Categories

Dec 9, 2019 in Testing
Q:

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

1 Answer

Dec 9, 2019
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

Madanswer
Jun 24 in Python
May 31 in JAVA
Jan 30 in Selenium
...