Hi Guest

MobileUser

1 HomePage 1 Jobs 1 WalkIn 1Articles  

Cat Exam

 :) Latest Topic
AJAX
VB.NET
SQL Query
UDDI
CLASS
JavaScript Questions
SharePoint Interview
SilverLight
WCF
general knowledge
 ASP.NET
 :) Hot Jobs
 
 :) Latest Articles


  

 


what is the use of invocationCount keyword in TestNG?
Question Posted on 23 May 2021

Home >> Testing >> TestNG >> what is the use of invocationCount keyword in TestNG?




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
0
0



 
 Input Your Comments Or suggestions(If Any)
 Name
 Email(optional)
 Comments


Other Important Questions
Brief something about TestNG?
what is the use of invocationCount keyword in TestNG?






 
Top Searches:asp net questions vb net questions sql query uddl questions class javascript Questions sharepoint interview questions and concept silverlight questions and concept wcf questions beans general knowledge ajax questions
PHP | Biztalk | Testing | SAP | HR |