Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

Coursera

Advanced Automation Frameworks and Testing with TestNG

Packt via Coursera

Overview

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.

Syllabus

  • Automation Framework
    • 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.
  • Logging Infrastructure - Using Log4j2
    • 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.
  • TestNG Setup
    • 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.
  • TestNG - Annotations and Assertions
    • 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.
  • TestNG - Advanced Features
    • 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.
  • TestNG - Parameters and Parallel
    • 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.
  • TestNG - Parameters and Parallel - Practice Exercise
    • 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.
  • TestNG - DataProviders
    • 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.
  • TestNG - ITestResult
    • 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.
  • TestNG - Listeners
    • 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.
  • TestNG - Reporter Logs and Hypertext Markup Language (HTML) Reports
    • 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.
  • Extent Reports - Advanced Reporting
    • 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.
  • Selenium WebDriver – Data-Driven Testing
    • 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.
  • Selenium WebDriver - File Upload and Windows Authentication
    • 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.

Taught by

Packt - Course Instructors

Reviews

Start your review of Advanced Automation Frameworks and Testing with TestNG

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.