Advanced Automation Frameworks and Testing with TestNG
Keep adding new skills with 10,000+ programs for $239 (usually $399). Save now.
Advanced Automation Frameworks and Testing with TestNG
This course is part of Selenium WebDriver 4 with Java - Zero To Hero Specialization
Included with
Learn more
Ask Coursera
Recommended experience
Recommended experience
What you'll learn
Grasp the purpose and structure of the Page Object Model and Page Factory, and comprehend the use cases of Log4j2 for effective logging.
Set up TestNG for structured test cases and utilize its annotations and advanced features to enhance test execution efficiency.
Create and manage advanced reports with Extent Reports to assess and document test outcomes.
Execute data-driven tests and handle file uploads using Selenium WebDriver to build robust automation frameworks.
Skills you'll gain
Tools you'll learn
Details to know
7 assignments
See how employees at top companies are mastering in-demand skills
Build your subject-matter expertise
- Learn new concepts from industry experts
- Gain a foundational understanding of a subject or tool
- Develop job-relevant skills with hands-on projects
- Earn a shareable career certificate
There are 14 modules in this course
This course begins with an introduction to automation frameworks, focusing on the Page Object Model (POM) to enhance code reusability and maintainability. You will learn to create object repositories, page classes, and use Page Factory for efficient web element initialization. The course covers practical tips for finding all links on a webpage, providing a solid foundation in automation frameworks.
Next, delve into Log4j2, from default configurations to advanced custom loggers, writing configuration files for console and file logging, and integrating Log4j2 into test cases to improve logging infrastructure. Transitioning to TestNG, the course covers setup, annotations, method prioritization, grouping, parameterization, parallel test execution, DataProviders, ITestResult, and listeners for customized test behavior. Practical exercises reinforce these concepts, preparing you for real-world application. Designed for software testers, automation engineers, and QA professionals with basic Selenium WebDriver and Java knowledge, this course deepens your understanding of advanced automation frameworks and TestNG. Implement POM and Page Factory, configure and use Log4j2, set up and leverage TestNG, utilize its advanced features, create and manage advanced reports, and execute data-driven tests and handle file uploads using Selenium WebDriver.
In this module, we will introduce you to the automation framework, focusing on the Page Object Model (POM). You will learn how to create object repositories and page classes, understand the Page Factory concept, and discover techniques to find all links on a webpage, setting a strong foundation for robust automation.
What's included
5 videos2 readings
5 videosβ’Total 71 minutes
- Automation Framework Introductionβ’15 minutes
- Page Object Model (POM)β’15 minutes
- Creating Object Repository and Page Classβ’10 minutes
- Page Factoryβ’16 minutes
- Finding All Links on a Webpage β BONUSβ’15 minutes
2 readingsβ’Total 20 minutes
- Introduction to the Course 'Advanced Automation Frameworks and Testing with TestNG'β’10 minutes
- Full Specialization Resourcesβ’10 minutes
In this module, we will delve into Log4j2 for logging infrastructure, covering its introduction, default configurations, and custom logger setup. You will learn how to log messages to both the console and files, and integrate Log4j2 into test cases, enhancing the logging capabilities of your automation framework.
What's included
6 videos
6 videosβ’Total 55 minutes
- Log4j2 Introductionβ’11 minutes
- Using the Default Configurationβ’10 minutes
- Using Configuration File - Console Loggingβ’10 minutes
- Using Configuration File - File Loggingβ’11 minutes
- Working with Custom Loggersβ’7 minutes
- Test Case Example using Log4j2β’6 minutes
In this module, we will introduce you to the TestNG framework, guiding you through its setup and integration with Eclipse. You will learn how to add TestNG Javadoc to your development environment, setting the stage for effective test management and execution.
What's included
3 videos1 assignment
3 videosβ’Total 23 minutes
- TestNG Introductionβ’6 minutes
- TestNG Setupβ’12 minutes
- Adding TestNG Javadoc to Eclipseβ’6 minutes
1 assignmentβ’Total 15 minutes
- TestNG Setup - Assessmentβ’15 minutes
In this module, we will cover the essential annotations and assertions in TestNG. You will learn how to write test classes, use assert methods, and apply annotations like @BeforeMethod, @AfterMethod, @BeforeClass, and @AfterClass to manage your test setup and teardown processes efficiently.
What's included
7 videos
7 videosβ’Total 70 minutes
- First TestNG Class - Test Annotationβ’10 minutes
- TestNG Assertsβ’14 minutes
- TestNG Soft Assertsβ’8 minutes
- Method and Class Annotationsβ’9 minutes
- Running a Test Suiteβ’12 minutes
- @BeforeSuite and @AfterSuite Annotationsβ’8 minutes
- @BeforeTest and @AfterTest Annotationsβ’9 minutes
In this module, we will explore advanced features of TestNG, including prioritizing test methods, grouping related tests, and creating dependencies. You will also learn how to disable specific tests and add timeouts, ensuring precise control over your test execution flow.
What's included
6 videos
6 videosβ’Total 43 minutes
- Prioritizing Test Methods in a Desired Sequenceβ’5 minutes
- Grouping Test Methods - Part 1β’9 minutes
- Grouping Test Methods - Part 2β’5 minutes
- Understanding Dependent Test Methodsβ’11 minutes
- Disabling and Adding Timeout to Test Methodsβ’6 minutes
- Preserving Order of Executionβ’7 minutes
In this module, we will explore how to parameterize test methods in TestNG using the XML file, enabling dynamic data input. Additionally, you will learn how to run tests, classes, and methods in parallel, optimizing your test execution for enhanced efficiency and speed in your automation framework.
What's included
2 videos1 assignment
2 videosβ’Total 22 minutes
- Providing Parameters to the Test Methodsβ’12 minutes
- Running Tests, Classes, and Methods in Parallelβ’9 minutes
1 assignmentβ’Total 15 minutes
- TestNG - Parameters and Parallel - Assessmentβ’15 minutes
In this module, we will present a practice exercise on executing Selenium WebDriver test methods across multiple browsers using the parallel attribute of the TestNG framework. You will also receive a detailed solution to the exercise, helping you apply parallel execution techniques and overcome challenges in real-world testing scenarios.
What's included
2 videos
2 videosβ’Total 14 minutes
- TestNG Practice Exercise Questionβ’3 minutes
- Practice Exercise Solution - Selenium WebDriver Practical Exampleβ’11 minutes
In this module, we will delve into the use of DataProviders in the TestNG framework. Through a two-part video series, you will learn how to run test methods with multiple sets of data, implementing parameterized tests that enhance your test coverage and flexibility, ensuring robust and comprehensive test automation.
What's included
2 videos
2 videosβ’Total 13 minutes
- DataProviders - Part 1β’9 minutes
- DataProviders - Part 2β’5 minutes
In this module, we will explore the ITestResult interface in the TestNG framework, showing how to access the status and results of test methods. You will learn to implement functionality to take screenshots upon test failure using TestNG, Selenium WebDriver, and Java, enhancing your debugging and error-reporting capabilities.
What's included
2 videos1 assignment
2 videosβ’Total 18 minutes
- ITestResult Interfaceβ’9 minutes
- Taking a Screenshot on Failureβ’9 minutes
1 assignmentβ’Total 15 minutes
- TestNG - ITestResult - Assessmentβ’15 minutes
In this module, we will cover TestNG listeners, including IInvokedMethodListener, ITestListener, and ISuiteListener. You will learn how to implement these listeners to monitor test execution and refactor your code for seamless integration, enhancing the robustness of your test automation framework.
What's included
4 videos
4 videosβ’Total 44 minutes
- IInvokedMethodListenerβ’14 minutes
- ITestListenerβ’16 minutes
- ISuiteListenerβ’7 minutes
- TestNG Listeners - Code Refactoringβ’7 minutes
In this module, we will demonstrate how to generate HTML reports and write log statements in the TestNG framework. You will learn to create comprehensive and structured reports, providing detailed insights into your test execution for better analysis and tracking.
What's included
1 video
1 videoβ’Total 13 minutes
- TestNG Reporters and Logsβ’13 minutes
In this module, we will introduce you to advanced reporting with Extent Reports. You will learn to implement advanced reporting features, attach screenshots, and manage multiple test cases in a single report, elevating your reporting capabilities to a professional level.
What's included
6 videos1 assignment
6 videosβ’Total 60 minutes
- Advanced Reporting Introduction and Featuresβ’10 minutes
- Advanced Reporting - Practical Exampleβ’12 minutes
- Attaching Screenshots to Advanced Reportsβ’9 minutes
- Multiple Test Casesβ’10 minutes
- Reporting with Page Object Model (POM)β’11 minutes
- Exercise with Solutionβ’8 minutes
1 assignmentβ’Total 15 minutes
- Extent Reports - Advanced Reporting - Assessmentβ’15 minutes
In this module, we will focus on data-driven testing with Selenium WebDriver, showing how to set up data-driven tests, read and write data from Excel files, and implement practical examples with multiple datasets, enhancing the flexibility and scope of your test automation.
What's included
5 videos
5 videosβ’Total 50 minutes
- Data-Driven Testing Setupβ’7 minutes
- Reading Data from an Excel Fileβ’11 minutes
- Reading Multiple Datasets from an Excel Fileβ’9 minutes
- Multiple Datasets Test Case - Practical Exampleβ’15 minutes
- Writing Data to an Excel Fileβ’9 minutes
In this module, we will cover file upload techniques and handling Windows authentication using Selenium WebDriver. You will learn how to upload files on Windows and Mac using the Robot class, install and use AutoIT for file uploads, and manage Windows HTTP authentication, enhancing your automation capabilities for various file handling and authentication scenarios.
What's included
5 videos1 reading3 assignments
5 videosβ’Total 49 minutes
- Uploading Files on Windows β Robotβ’11 minutes
- Uploading Files on Mac β Robotβ’11 minutes
- AutoIT Installation and Finder Toolβ’7 minutes
- Uploading Files on Windows β AutoITβ’12 minutes
- Handling Windows Authentication Using AutoITβ’10 minutes
1 readingβ’Total 10 minutes
- Conclusion to the Course 'Advanced Automation Frameworks and Testing with TestNG'β’10 minutes
3 assignmentsβ’Total 90 minutes
- Full Course Practice Assessmentβ’15 minutes
- Selenium WebDriver - File Upload and Windows Authentication - Assessmentβ’15 minutes
- Full Course Assessmentβ’60 minutes
Earn a career certificate
Add this credential to your LinkedIn profile, resume, or CV. Share it on social media and in your performance review.
Instructor
Offered by
Explore more from Software Development
Guided Project
- Status: Free Trial
- Status: Free Trial
Why people choose Coursera for their career
Frequently asked questions
Yes, you can preview the first video and view the syllabus before you enroll. You must purchase the course to access content not included in the preview.
If you decide to enroll in the course before the session start date, you will have access to all of the lecture videos and readings for the course. Youβll be able to submit assignments once the session starts.
Once you enroll and your session begins, you will have access to all videos and other resources, including reading items and the course discussion forum. Youβll be able to view and submit practice assessments, and complete required graded assignments to earn a grade and a Course Certificate.
More questions
Financial aid available,
