Answers for "timeout in testng"

0

timeout in testng

While running test cases, some test cases 
take much more time than expected. In such a case, we can mark the test 
case as a failed test case by using timeOut.

TimeOut allows us to configure the time period to wait for a 
test to get completely executed. We can do in two levels:

At the suit level: It will be available to all the test methods.
At each method level: It will be available to a part of the test method.

@Test( timeOut = 700)  
@Test annotation tells that the test method will 
be given 700 milliseconds to complete its execution otherwise it will be 
marked as a failed test case.
Posted by: Guest on December-08-2020

Browse Popular Code Answers by Language