1.

What Does The Test Timeout Mean In Testng?

Answer»

The maximum number of milliseconds a test case should take.

  1. @Test(threadPoolSize = 3, invocationCount = 10, timeOut = 10000)
  2. public void testCase1(){

In this example, the function testCase1 will be INVOKED ten times from three DIFFERENT threads. ADDITIONALLY, a time-out of ten SECONDS guarantees that none of the threads will block on this THREAD forever.

The maximum number of milliseconds a test case should take.

In this example, the function testCase1 will be invoked ten times from three different threads. Additionally, a time-out of ten seconds guarantees that none of the threads will block on this thread forever.



Discussion

No Comment Found