Answers for "how to set invocation count in testng"

0

how to set invocation count in testng

An invocationCount in TestNG is the number of times that 
we want to execute the same test.

@Test(invocationCount=5)  
 public void testcase1()  
 {  
     System.out.println("testcase1");  
     
OUTPUT:
PASSED: testcase1
PASSED: testcase1
PASSED: testcase1
PASSED: testcase1
PASSED: testcase1
Posted by: Guest on December-08-2020

Browse Popular Code Answers by Language