TestNG made easy for beginners (Detailed course)
Master TestNG! Learn step-by-step with detailed explanations. Comprehensive coverage for effective test automation.
Course Content
TestNG made easy for beginners (Detailed course) is an intermediate-level Udemy course taught by Arun Motoori. It runs 18h 17m, is taught in English, and includes a certificate of completion. Learners rate it 5.0 out of 5 from 1 review, with 19 students enrolled. It is a paid course, first published January 2023.
Master TestNG: The Ultimate Guide to Test Automation
Dive deep into TestNG, a powerful testing framework essential for robust Selenium Test Automation Frameworks. This comprehensive course provides an in-depth understanding of TestNG concepts and practical application, taking you from the fundamentals to advanced techniques. Whether you're a beginner or an experienced tester, this course is your complete resource for mastering TestNG.
What You'll Learn:
- TestNG Fundamentals: A step-by-step explanation of TestNG, starting from the basics.
- Installation & Project Setup: Learn how to easily install TestNG and integrate it into your projects.
- Automated Test Case Generation: Discover how to auto-generate TestNG classes with test methods directly within the Eclipse IDE.
- Selenium Automation with TestNG: Effectively utilize the TestNG framework for Selenium automation to build reliable and maintainable tests.
- API Testing with Rest Assured & TestNG: Combine the power of TestNG with Rest Assured for comprehensive API test automation.
- Test Prioritization: Implement priority attributes to control the order in which tests are executed.
- Test Execution Control with XML: Master the use of TestNG XML files for batch test execution and advanced configuration.
- Assertions: Understand and implement various assertions in TestNG, including the difference between hard and soft assertions.
- TestNG Annotations: Leverage TestNG annotations for enhanced test control and functionality.
- Parameters & Data-Driven Testing:
- Parameters in TestNG: Learn how to use parameters to make your tests more flexible.
- Optional Parameters in TestNG: Utilize optional parameters for dynamic test execution.
- Data-Driven Testing: Implement data-driven testing using the
DataProviderannotation and attribute. - Reading Data from Excel: Extract data from Excel files using POI API and integrate it into your tests.
- Data Provider Method Naming: Learn to name your
DataProvidermethods effectively. - Array Parameters: Parameterize test methods with array parameters.
- Data Provider Class: Separate
DataProvidermethods into a dedicated class. - Multiple Data Providers: Work with multiple
DataProvidermethods in a single test. - Object Arrays: Understand why and how to use object arrays to return data from
DataProvider. - Different Return Types: Explore various return types for
DataProvidermethods. - Jagged Arrays: Handle jagged arrays effectively within
DataProvider. - Partial Data Passing: Pass only a portion of data from the
DataProvidermethod using indices. - Parallel Execution with DataProvider: Execute tests in parallel using the
parallelattribute inDataProvider.
- Test Execution Control:
- Enable/Disable Test Cases: Control test execution using the
enabledattribute in the TestNG XML file. - Enable/Disable Test Methods: Use the
enabledattribute and@Ignoreannotation to control individual method execution. - Enable/Disable Test Methods at Class Level: Control class-level method execution using
@Ignore. - Enable/Disable Test Methods at Package Level: Control package-level method execution using
@Ignore.
- Enable/Disable Test Cases: Control test execution using the
- Test Grouping:
- Grouping Tests: Organize tests into logical groups using multiple TestNG XML files.
- Groups Attribute: Utilize the
groupsattribute for test grouping. - Meta Groups: Understand and use meta groups for advanced grouping scenarios.
- Partial Groups: Apply groups to specific test cases within a group.
- Sub Category Groups: Create hierarchical groups for better test organization.
- Regular Expressions: Use regular expressions for flexible group matching.
- Test Dependencies: Manage test dependencies using the
dependsOnMethodsattribute. - Test Execution Options:
alwaysRunattributeignoreMissingDependenciesattributedependsOnGroupsattribute- Using the
dependenciestag anddepends-onattribute for group dependencies.
- Executing Tests at Different Levels: Execute tests at the package, class, and method levels.
- Listeners:
- Understanding Listeners: Learn about the role of listeners in TestNG.
- Available Listeners: Explore the various listeners available in the TestNG
Need a web app built? Hire the team behind TutorialSearch.io
We ship fast, production-grade full-stack apps (Next.js, React, edge infra) — the same stack that powers this site.