TestNG Testing Tutorial Home / Video /

TestNG Tutorial With Selenium | How To Do Parallel Testing In TestNG 📃| Part-IX | LambdaTest

TestNG Tutorial With Selenium | How To Do Parallel Testing In TestNG 📃| Part-IX | 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 ninth video of the TestNG tutorial for beginners series, Rex Jones (@RexJonesII), a seasoned QA Engineer, Trainer, YouTuber, and Blogger, deep dives into the integral aspects of parallel testing in the TestNG framework. He also explains how the testng.xml file has a parallel attribute for parallel testing that we can set to classes, methods, and tests. He then shows how to use threadpoolsize and invocationcount test attributes. In the end, he talks about what is required to do data-driven testing in TestNG.

Video Chapters

0:00 Introduction To Parallel Testing & Data Providers

1:47 Set Up & Create Test

6:24 Methods - Parallel Testing

9:31 Classes Parallel Testing

13:57 Tests Parallel Testing

15:57 Using threadPoolSize & invocationCount

18:38 Data-driven testing with DataProviders Annotation

23:44 DataProviders Attribute

30:18 DataProvidersClass Attribute

41:12 Conclusion

Key Topics Covered

Parallel Testing: It explains the concept of executing multiple test scripts simultaneously to save time and increase efficiency. The video details how to set up automation code for running tests across different browsers, operating systems, and devices. It introduces the parallel attribute in the TestNG XML file, which can be set to classes, methods, or tests to determine how tests execute in parallel. Additionally, it discusses the use of thread pool size and invocation counter attributes for effective parallel testing.

Data Providers for Data Driven Testing: The video describes how to use data providers in TestNG to perform data-driven testing, allowing the input of various data sets into test scripts. It demonstrates how to create a data provider annotation, how to send data from the same or a different class using the data provider class attribute, and how to apply these concepts in a practical example involving a web application.

Practical Demonstration: Throughout the video, there are practical demonstrations of setting up tests in IntelliJ IDEA, including writing WebDriver code for Selenium tests, configuring TestNG XML for parallel execution, and applying data-driven testing techniques. The examples include working with web elements, setting up before and after methods, and executing tests on a Selenium playground website.

Resources and Further Learning: At the end of the video, viewers are directed to additional resources for learning, including blogs, community discussions, and certification opportunities at LambdaTest.

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