Hire QA – Specialized in QA Recruitment, Technical Interviews and Testing Solutions

What is the use of @Test(threadPoolSize=x)?

Category: TestNG

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.
@Test(threadPoolSize = 3, invocationCount = 10) public void testCase1(){
In this example, the method testCase1 will be invoked from three different threads

Leave a Reply

Your email address will not be published. Required fields are marked *