TestNG Tutorial With Selenium | How To Do Parallel Testing In TestNG 📃| Part-IX | LambdaTest
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.
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
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 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.
TestNG Tutorial With Selenium | How To Perform Geolocation Testing 📍| Part-XI
TestNG Testing TutorialTestNG Tutorial With Selenium | How To Perform Cross Browser Testing 👨💻| Part-X
TestNG Testing TutorialTestNG Tutorial With Selenium | How To Do Parallel Testing In TestNG 📃| Part-IX
TestNG Testing TutorialTestNG Tutorial With Selenium | How To Handle Dynamic Waits In Selenium ⏳| Part-VII
TestNG Testing TutorialTestNG Tutorial With Selenium | Capturing Screenshot Of Failed Tests | Part-VI
TestNG Testing Tutorial