1.

what is the use of invocationCount keyword in TestNG?

Answer»

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



Discussion

No Comment Found