1.

What Is The Use Of @test(invocationcount=x)?

Answer»

The invocationcount attribute tells how many TIMES TESTNG should run a test method

  1. @Test(invocationCount = 10)
  2. public void testCase1(){

In this EXAMPLE, the method testCase1 will be INVOKED ten times.

The invocationcount attribute tells how many times TestNG should run a test method

In this example, the method testCase1 will be invoked ten times.



Discussion

No Comment Found