Skip to content

Make Selenium Easy

And Keep It That Way

  • Home
  • Share
  • Toggle search form

TestNG Tutorials 4: Why TestNG Is Called A Testing Framework?

Posted on 03/21/2025 By admin

Hello Folks,

You might be asked in selenium interviews, “Why TestNG is called a testing framework?”.

Why TestNg is called “Testing Framework“?

TestNG, where NG stands for “Next Generation”. TestNG is a testing framework to perform unit, functional, end-to-end, integration, etc testing. This library helps you in writing automated tests.

Suppose, you are launching a URL and you need to verify the title of page. If you are a manual tester, you will load the URL and will verify the page title. As part of smoke and sanity, you keep loading URL and verifying title of the page. When new modules are integrated and installed, you again verify title. When all modules are integrated, you need to verify again and as per daily smoke, you need to do the same task again and again.

Now as an automation tester, you create some logic to verify title of the page using Selenium. And you run you script file whenever you need to verity the page title. You can create so many script files which verify something and run. Sometimes you may need to run all scripts or scripts related to specific group. All these might be difficult for an automation tester to manage.

Here, TestNG comes in to picture, saying you just organize your test methods or add some specific information using our annotations to your test methods and handle all types of customization execution from a single file called “testng.xml”. TestNG allows you to control when to run which tests.

Writing a test is typically a three-step process:

  • Write the business logic of your test and insert TestNG annotations in your code.
  • Add the information about your test (e.g. the class name, the groups you wish to run, etc…) in a testng.xml file or in build.xml.
  • Run TestNG.

TestNG is used by developers and testers both. Developers use it for unit testing and we testers can use it for whatever testing we want to do. Since, TestNG are designed to automate control of testing activities, it is called a Testing Framework.

More about TestNG in upcoming posts. Stay tuned.

If you have any doubt, feel free to comment below. If you like my posts, please like, comment, share and subscribe. #ThanksForReading

#HappySelenium

Uncategorized

Post navigation

Previous Post: ElementClickInterceptedException – Element click intercepted – not clickable at point – Other element would receive the click
Next Post: DataProvider Concept in TestNG

Related Posts

TestNG Tutorials 50: DataProvider in TestNG – Understand Basics of DataProvider & How It Works | Make Selenium Easy Uncategorized
cropped-cssInConsole.png Uncategorized
Stream api in java Uncategorized
SelectTestngXMl – Make Selenium Easy Uncategorized
About Me Uncategorized
Log4j2 Tutorial 4 – Print Logs In External File Using XML Configuration File of Log4J2 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