

- Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
How to overlook a particular test method from execution in TestNG?
To overlook a particular test method from execution in TestNG enabled helper attribute is used. This attribute has to be set to false to overlook a test method from execution.
Example
Java class file.
@Test(enabled=false) public void verifyRepay(){ System.out.println("Repayment successful"); } @Test public void Login(){ System.out.println("Login is successful "); } @Test public verifyHistory(){ System.out.println ("History verification is successful"); }
Here the verifyRepay() method shall be overlooked during execution.
- Related Questions & Answers
- How does the execution of a particular test method depend on other test methods in TestNG?
- How to skip a particular test method from execution in Cucumber?
- How to skip a particular test method in TestNG?
- How to incorporate and remove test methods from execution from a collection of test cases in TestNG?
- How to retrieve test method description in TestNG before and after execution?
- How to retrieve test method name in TestNG before and after execution?
- How to execute a particular test method multiple times (say 5 times) in TestNG?
- How to exclude a test from execution in Pytest?
- How can a particular group of test cases get executed in TestNG?
- How does running a specific test method depend on another test method in TestNG?
- How to get the test group name in TestNG before and after execution?
- How to skip a selected test from execution in pytest?
- How to skip a selected test from execution in pytest?
- What is the order of test execution with priority in TestNG?
- How to achieve parallel execution in TestNG?
Advertisements