What is Time-Out test in TestNG?

Techugo Apps
Techugo Apps

Posted On: Apr 06, 2020

 

This is a feature that lets the test method to be terminated when it is taking a longer time than the specified time to execute. Some test gets struck or may take a longer time than to complete than the execution and to handle these scenarios, we can specify timeout so it gets terminated as it reaches the specified time. This Timeout can be specified in two ways. They are at the suite level and at each test method level. Specifying at suite level applies for all the tests in the test suite. Specifying at the method level is applicable only for that method.

    Related Questions

    Please Login or Register to leave a response.

    Related Questions

    TestNG Interview Questions

    What is TestNG?

    TestNG is a testing framework written in Java to cover a wide array of test categories like unit testing, functional testing, end-to-end test, integration test, etc. It is inspired from JUnit and NUni...

    TestNG Interview Questions

    List some features of TestNG Framework?

    Some of the important features of TestNG framework are,Support for Annotation. Support for data-driven-testing and parameters. Support for multiple instances in the same test class. Has a good ...

    TestNG Interview Questions

    What is Testng full form?

    The full form of TestNG is Test Next Generation....