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

Explain what does @Test(invocationCount=?) and @Test(threadPoolSize=?) indicate.

Category: Selenium WebDriver

@Test(invocationCount=?) is a parameter that indicates the number of times this method should be invoked.
@Test(threadPoolSize=?) is used for executing suites in parallel. Each suite can be run in a separate thread.

To specify how many times @Test method should be invoked from different threads, you can use the attribute threadPoolSize along with invocationCount.

@Test(threadPoolSize = 3, invocationCount = 10)
public void testServer() {

}

Leave a Reply

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