1.

What Is The Use Of @test(threadpoolsize=x)?

Answer»

The threadPoolSize attribute TELLS to form a thread pool to run the test method through multiple threads.

Note: This attribute is IGNORED if invocationCount is not specified

  1. @Test(threadPoolSize = 3, &LT;code CLASS="plain">invocationCount = </code><code class="value">10</code>)
  2. public void testCase1(){

In this example, the method testCase1 will be invoked from three different threads.

The threadPoolSize attribute tells to form a thread pool to run the test method through multiple threads.

Note: This attribute is ignored if invocationCount is not specified

In this example, the method testCase1 will be invoked from three different threads.



Discussion

No Comment Found