Login
Remember
Register
Ask a Question
How to skip a method or a code block in TestNG?
0
votes
asked
Dec 9, 2019
in
Testing
by
Robindeniel
How to skip a method or a code block in TestNG?
#code-block
Testing-questions-answers
Please
log in
or
register
to answer this question.
1
Answer
0
votes
answered
Dec 9, 2019
by
sharadyadav1986
To skip a particular test method or a code, then you can set the ‘enabled’ parameter in test annotation to false.
@Test(enabled = false)
...