I have a method that needs to be tested using TestNG, and I marked it with annotations below:
@Test(invocationCount=10, threadPoolSize=5)
Now, in my testing method, I would like to get the current invocationCount that is executing. Is it possible? If so, then I would be glad to know how.
More correct example:
@Test(invocationCount=10, threadPoolSize=5) public void testMe() { System.out.println("Executing count: "+INVOCATIONCOUNT);
For reference, I am using the TestNG plugin in Eclipse.
source share