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

What is threadPoolSize? How can we use it?

Category: TestNG

The threadPoolSize attribute specifies the number of threads to be assigned to the test method. This is used in conjunction with invocationCount attribute. The number of threads will get divided with the number of iterations of the test method specified in the invocationCount attribute.


@Test(threadPoolSize = 5, invocationCount = 10)
public void threadPoolTest(){
//Test logic
}

Leave a Reply

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