invocationCount
@Test(invocationCount = 10) public void repeatThis() { //... }
2. @Test(invocationCount = ?, threadPoolSize = ?) The threadPoolSize attribute tells TestNG to create a thread pool to run the test method via multiple threads. With thread pool, it will greatly decrease the running time of the test method. @Test(invocationCount = 3, threadPoolSize = 3) public void testThreadPools() { }
threadPoolSize
@Test(invocationCount = 3, threadPoolSize = 3) public void testThreadPools() {
}
No comments:
Post a Comment