Skip to content

Make Selenium Easy

And Keep It That Way

  • Home
  • Share
  • Toggle search form

Make Selenium Easy – Page 27

Posted on 02/18/2020 By admin

Hello Folks, In this post, we will learn Inheritance in TestNG classes. In very basic words, Inheritance is an OOPS concept which allows a class to inherit property of another class for the sake of re-usability. Like any other class we can also apply concept of inheritance in TestNG class. We will do an example … Continue reading TestNG Tutorials 15: Inheritance In TestNG Classes

Hello Folks, Method overloading is an important concept in Java. Can we create overloaded method in TestNG class. Let’s give it a try. Overloaded TestNG class: Create a testng.xml and run it: Output: You will get above exception in console because TestNG does not allow you to put any type of parameters to a TestNG … Continue reading TestNG Tutorials 14: Can We Overload Methods In TestNG Class?

Hello Folks, We talked about TestNG class in previous post. Can we declare and define TestNG annotated methods in an Interface? We will learn now. As per Java 8, An interface can have abstract methods, default methods and static methods. Let’s create an Interface with TestNG annotated abstract methods and observe what happens: An interface … Continue reading TestNG Tutorials 13: Can An Interface have TestNG Methods? If Yes, How To Execute Them?

Hello Testers, Defect Life Cycle or Bug Life Cycle is an important concept in Software testing and both manual and automation tester must be aware about it. It is also frequently asked interview question. So let’s learn about this. A life cycle is a series of stages through which something passes during its lifetime i.e. … Continue reading Understand Defect Life Cycle In Testing

Hello Folks, We will see an interesting topic in this post. We can create an inner TestNG class as well like any normal inner class in Java. An example is as below: Let’s try to generate a testng.xml for this: TestNG includes outer and inner class names default. That’s good. Happy. Now run above testng.xml: … Continue reading TestNG Tutorials 12: How To Run Inner TestNG Class From TestNG.xml ?

Hello Folks, Java allows you to group similar types of classes, interfaces and sub packages. You can create nested packages means package inside package which is termed as sub-packages. Let’s create a below hierarchy of package: Create a Package “MainPackage”. Create a class “MainPackageClass”  in “MainPackage” Create a sub package “SubPackage” inside “MainPackage”. Create a class … Continue reading TestNG Tutorials 11: How To Run TestNG class From Sub-package Using TestNG.xml?

Hello Folks, When we generate a testng.xml for TestNG classes of a package, we see all class names (with at least one @Test annotated method) of that package under “class” tag wrapped by tag. We can see an example below: When we have multiple packages in a project , testng.xml includes all TestNG classes from … Continue reading TestNG Tutorials 10: What Is Package Tag And How To Use In TestNG.XML?

Hello Folks, In this post, we will learn logic behind generation of testng.xml. When we select a class or package or project and chose to generate a testng.xml, it includes only those class names which has at least one @Test annotated method. It will not consider a class which has no @Test annotated method. Suppose … Continue reading TestNG Tutorials 9: Internal Logic Of Generation Of TestNG.xml

Hello Folks, In this post, we will see a very important and basic concept of TestNG : Understanding of TestNG.xml You must aware about the hierarchy of testng.xml to implement many concept of testng. Let’s learn it: I will generate a testng.xml for below hierarchy of project: The generated testng.xml will be as below. I … Continue reading TestNG Tutorials 8: Understanding Testng.xml : Understanding Hierarchy Of Testng.xml

Hello Folks, In this post, we will learn why we should do API testing. At a very high level, an application has three components: Back end (Data Layer) : Where data is stored and retrieved. Front end (Presentation Layer) :  User interface. Middle ware (Logic Layer) : It connects front end and back end of application. … Continue reading API Testing Tutorial Part 2 – Why is API Testing Important?

Uncategorized

Post navigation

Previous Post: Make Selenium Easy – Page 15
Next Post: Make Selenium Easy – Page 13

Related Posts

image – Make Selenium Easy Uncategorized
Resolutions 2020 for Testers Uncategorized
API Testing Tutorial Part 3 – Understand Terms URN , URL ,URI & API | Make Selenium Easy Uncategorized
August 2018 – Make Selenium Easy Uncategorized
April 1, 2018 – Make Selenium Easy Uncategorized
Make Selenium Easy – Page 13 Uncategorized

Recent Posts

  • Getting Started with Selenium 4: What Is New and How to Upgrade from Selenium 3
  • Manual Testing
  • Baby Steps To Become Efficient Selenium-Java Automation Tester
  • Features of Selenium 4.0.0 Release – Java Binding
  • Part 1: Handling Drop-down Created Using SELECT Tag In Selenium

Recent Comments

No comments to show.

Archives

  • April 2026
  • April 2025
  • March 2025
  • February 2025
  • January 2025
  • December 2024
  • November 2024
  • October 2024
  • September 2024
  • August 2024
  • April 2024
  • March 2024
  • February 2024
  • December 2023
  • October 2023
  • August 2023
  • November 2022
  • September 2022
  • August 2022
  • July 2022
  • May 2022
  • March 2022
  • October 2021
  • April 2021
  • March 2021
  • January 2021
  • December 2020
  • October 2020
  • September 2020
  • August 2020
  • June 2020
  • May 2020
  • April 2020
  • March 2020
  • February 2020
  • January 2020
  • December 2019
  • November 2019
  • October 2019
  • September 2019
  • August 2019
  • May 2019
  • December 2018
  • November 2018
  • October 2018
  • September 2018
  • August 2018
  • July 2018
  • January 2018

Categories

  • Getting Started
  • Uncategorized

Copyright © 2026 Make Selenium Easy.

Powered by PressBook Masonry Dark