| what is the use of invocationCount keyword in TestNG?
An invocationCount is used in TestNG to execute some thing on number of times just we do with some different loops like do while and for loop. Below is the example of using invocationCount
package com.javatpoint;
import org.testng.annotations.Test;
public class Test_cases
{
@Test(invocationCount=3)
public void testcase1()
{
System.out.println("test1");
}
}
Output:-
test1
test1
test1
| | |