- Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
MS Excel
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
Physics
Chemistry
Biology
Mathematics
English
Economics
Psychology
Social Studies
Fashion Studies
Legal Studies
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
What do you mean by timeOut in TestNG?
The timeOut is a helper attribute in TestNG that can put an end to the execution of a test method if that method takes time beyond the timeOut duration. A timeOut time is set in milliseconds, after that the test method will be marked Failed.
Example
@Test public void ContactVerify(){ System.out.println("Contact validation is successful”); } @Test(timeOut = 1000) public void LandingPage(){ System.out.println("Landing page verification is successful”); } @Test public void LoanContact(){ System.out.println("Loan contact details verification is successful”); }
After 1000ms, if LandingPage() execution continues , that test method will be considered as failed. The rest of the test methods will have no impact.
- Related Articles
- What do you mean by Listeners in TestNG?
- What do you mean by starch?
- What do you mean by adolescence?
- What do you mean by heat?
- What do you mean by tissue?
- What do you mean by environment?
- What do you mean by Garbage?
- What do you mean by Propagation?
- What do you mean by Silk?
- What do you mean by Sex?
- What do you mean by disease?
- What do you mean by Nutrients?
- What do you mean by Obesity?
- What do you mean by Ruminants?
- What do you mean by Roughage?

Advertisements