Explore topic-wise InterviewSolutions in .

This section includes InterviewSolutions, each offering curated multiple-choice questions to sharpen your knowledge and support exam preparation. Choose a topic below to get started.

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

2.

Brief something about TestNG?

Answer» BRIEF something about TestNG?
TestNG full form is TESTING Next Generation. As the name it is testing of next generation it is an automation testing framework which is used for Java programming language. And this is being devloped by Credric beust. And this will COMES after the INSPIRATION from JUnit framework. And TestNG consists of all features of JUint framework with additional features that makes it more powerful.