TestNG Testing Tutorial Home / Video /

TestNG Tutorial With Selenium | Annotations In TestNG🔍| Part-II | LambdaTest

TestNG Tutorial With Selenium | Annotations In TestNG🔍| Part-II | LambdaTest

...Playlist

...
  • Learn TestNG in 5 Hours | Complete TestNG Tutorial With Selenium 🎯
  • TestNG Tutorial With Selenium | What Is TestNG🔍| Part-I
  • TestNG Tutorial With Selenium | Annotations In TestNG🔍| Part-II
  • TestNG Tutorial With Selenium | Writing First Test In Selenium With TestNG🔍| Part-III
  • TestNG Tutorial With Selenium | What Are Assertions in TestNG❓| Part-IV
  • TestNG Tutorial With Selenium | Parameterization in TestNG | Part-V
  • TestNG Tutorial With Selenium | Capturing Screenshot Of Failed Tests | Part-VI
  • TestNG Tutorial With Selenium | How To Handle Dynamic Waits In Selenium ⏳| Part-VII
  • TestNG Tutorial With Selenium | Page Object Model 📃| Part-VIII
  • TestNG Tutorial With Selenium | How To Do Parallel Testing In TestNG 📃| Part-IX
  • TestNG Tutorial With Selenium | How To Perform Cross Browser Testing 👨‍💻| Part-X
  • TestNG Tutorial With Selenium | How To Perform Geolocation Testing 📍| Part-XI
  • How To Perform End To End Testing With Selenium | Selenium Tutorial🔍

About The Video

In this second video of the TestNG tutorial for beginners series, Rex Jones (@RexJonesII), a seasoned QA Engineer, Trainer, YouTuber, and Blogger, explains all the TestNG annotations in detail with live demonstration. In this video, he covers annotations like before and after method, before and after class, before and after suite, and before and after group.

Video Chapters

0:00 Introduction

0:03 What are TestNG Annotations?

0:35 Test & Configuration Annotations

1:25 Configuration Annotation Demo

4:20 Before & After Method Annotations

7:28 Before & After Class Annotations

9:19 Test Annotation at class level

11:55 Executing two classes at the same time in TestNG?

20:31 Before & After Suite Annotations

22:14 Before & After Group Annotations

27:14 Conclusion

Key Topics Covered

Introduction to TestNG Annotations: The video starts with an introduction to what TestNG annotations are and their significance in structuring automated tests.

Test & Configuration Annotations: It provides a detailed explanation of Test and Configuration annotations, illustrating how they are used to define methods as test methods and configure them to run in certain conditions.

Before & After Annotations: The tutorial covers annotations like @BeforeMethod, @AfterMethod, @BeforeClass, @AfterClass, @BeforeSuite, @AfterSuite, explaining their roles in executing preconditions and postconditions for test methods and suites.

Annotations at Class Level: It discusses how annotations can be applied at the class level to affect all test methods within a class, showcasing the flexibility of TestNG in organizing tests.

Executing Multiple Classes: The video demonstrates how to execute multiple classes within a TestNG suite, highlighting TestNG's capability to manage and execute large test suites efficiently.

Before & After Group Annotations: It touches upon @BeforeGroup and @AfterGroup annotations, showing how to execute setup and teardown methods for specific groups of test methods.

Practical Demonstration: Throughout the video, practical demonstrations are provided to give viewers a hands-on understanding of how to implement and utilize these annotations in real testing scenarios.

This video is part of a tutorial series aimed at beginners but is also valuable for experienced testers looking to deepen their understanding of TestNG's annotation-driven approach to test automation.

Related Blogs & Hubs

TestNG Annotations Tutorial With Examples

How To Automate Using TestNG In Selenium?

Guide For Your First TestNG Automation Script

Selenium TestNG Tutorial

Rex Jones

Rex Jones

Rex is an Experienced Quality Assurance (QA) Engineer with a history of working in the IT and Services industry. Certified as a Certified Software Test Engineer (CSTE) and Test Management Approach (TMap). Also skilled in Automation, Agile Methodologies, Test Strategies, and Software Development Life Cycle (SDLC) with a passion for testing software manually or automation such as Selenium.

More Videos from TestNG Testing Tutorial