TestNG Groups

TestNG Groups is one of the most popular features supported by TestNG which is not available in the JUnit framework. TestNG framework allows us to perform groupings of test methods. Using TestNG, we can declare a set of test methods…

TestNG Groups is one of the most popular features supported by TestNG which is not available in the JUnit framework. TestNG framework allows us to perform groupings of test methods. Using TestNG, we can declare a set of test methods…

In this tutorial, we will learn how to write test cases in TestNG with the help of examples. Before continue, hope that you have successfully installed TestNG plugin into your Eclipse. TestNG plugin helps to execute TestNG tests or suites…

Super keyword in Java is a reference variable that refers to an immediate superclass object of the current object. The keyword ‘super’ comes into the picture with the concept of inheritance in Java. The super keyword always represents a superclass…

In this tutorial, we will learn about the types of inheritance in Java with the help of simple and clear example programs. Before moving on to the types of inheritance, let us first take a brief look at inheritance. What…

What is Annotation? Annotation is a feature in Java that is used to add metadata to Java source. It was introduced in Java 1.5 version. It can be applied to classes, methods, variables, and parameters. Examples of certain predefined annotations…

In this tutorial, we will be familiar with basic concepts of classes and objects in Java with the help of real-time examples. We know that Java is a true object-oriented programming language. In the object-oriented programming language, we design and…

In this tutorial, we will learn how to perform upcasting and downcasting in Java programming through various example programs. When the reference variable of superclass refers to the object of subclass, it is known as upcasting in Java. In other…

Method overriding in Java means redefining a method in a subclass to replace or customize the functionality of a method inherited from the superclass. When the method of superclass is overridden in the subclass to provide more specific implementation, it…

In this tutorial, we are going to learn different types of alert found in web applications and how to handle Alert in Selenium WebDriver with the help of examples. We will also see how do we accept and dismiss the…