Udemy
    •  
    •  
    •  
    •  
    •  
    •  
    •  
    •  
Turn what you know into an opportunity and reach millions around the world.
Learn More
Your cart is empty.
Keep shopping
Java TestNG Mastery Course
Rating: 4.2 out of 5(8 ratings)
3,017 students

Java TestNG Mastery Course

Master Java testing with TestNG and Selenium, and elevate your automation skills to the next level!
Last updated 8/2024
English

What you'll learn

  • Understand the fundamentals and features of TestNG.
  • Create and run TestNG test classes and use annotations effectively.
  • Execute complex test scenarios, including dependency and exception tests.
  • Develop real-world applications with comprehensive TestNG testing.
  • Integrate TestNG with Selenium for web application testing.
  • Manage projects using Apache Ant and Maven for efficient build and deployment.

Course content

6 sections138 lectures17h 40m total length
  • What is TestNG6:04

    In this introductory lecture, we will explore TestNG, a powerful testing framework for Java. We’ll discuss its purpose, advantages, and how it fits into the broader ecosystem of testing tools. Attendees will gain a clear understanding of TestNG’s role in automated testing and its basic concepts.

  • Features of TestNG7:29

    This lecture dives into the core features of TestNG. We’ll cover its key functionalities, including test configuration, parallel test execution, and flexible test management. By understanding these features, you'll see how TestNG enhances test efficiency and effectiveness.

  • Example- Creating TestNG Class8:17

    Here, we will walk through a hands-on example of creating a basic TestNG class. You’ll learn how to set up a TestNG project, create a test class, and write simple test methods. This practical demonstration will lay the foundation for more advanced TestNG features.

  • Example- Cresting TestNG Class- Employee Details9:10

    Expanding on the previous lecture, we’ll create a TestNG class focused on managing and testing employee details. This example will demonstrate how to structure your test cases and use TestNG annotations to manage your tests effectively.

  • Example- Running & Analyzing the details3:46

    In this session, we’ll run the TestNG tests created in earlier lectures and analyze the test results. We’ll discuss how to interpret the output, troubleshoot common issues, and ensure that your tests are executing as expected.

  • TestNG Annotations example11:00

    TestNG annotations are crucial for configuring and controlling test execution. This lecture provides an in-depth look at various annotations such as @Test, @BeforeMethod, and @AfterMethod. We’ll use practical examples to demonstrate how these annotations impact test behavior.

  • TestNg Dependency Test10:56

    We will explore how to manage test dependencies with TestNG. This lecture will cover how to specify dependencies between tests and handle scenarios where certain tests must be executed before others, ensuring that your test suite is both organized and reliable.

  • TestNG Exception test9:33

    Learn how to test for exceptions using TestNG in this lecture. We’ll discuss how to verify that your code correctly handles exceptional conditions and how to use TestNG’s facilities to assert that exceptions are thrown as expected.

  • TestNG test suites part 110:51

    This lecture introduces TestNG test suites and how to configure them. We will cover the basics of creating and organizing test suites, and how to define groups of tests that can be executed together to validate different aspects of your application.

  • TestNG test suites part 22:50

    Building on the previous lecture, we will delve deeper into advanced configurations for TestNG test suites. Topics include suite-level configurations, parallel execution, and optimizing your test suite for large-scale testing scenarios.

  • TestNG executing groups - part 18:26

    In this lecture, we’ll focus on TestNG’s grouping feature. Learn how to categorize tests into groups and how to execute specific groups. This is useful for running subsets of tests based on different criteria or phases of development.

  • TestNG executing groups - part 26:08

    Continuing from the previous lecture, we will explore advanced techniques for managing and executing test groups. We’ll cover how to configure and fine-tune group execution to align with various testing strategies.

  • TestNG Ignore test example7:47

    Learn how to use TestNG to ignore specific tests under certain conditions. This lecture will demonstrate how to use the @Ignore annotation and related features to selectively bypass tests that are not currently applicable or that are known to be failing.

  • Parameter test using data providers10:48

    Discover how to use TestNG’s Data Providers to supply different sets of parameters to your tests. We’ll show you how to create data-driven tests that can run multiple scenarios using varying input data, improving test coverage and robustness.

  • Parameter test using testing6:49

    In this final lecture, we will explore additional techniques for parameterizing tests. We’ll discuss how to use parameters effectively within TestNG to handle different test cases and configurations, enhancing your test flexibility and efficiency.

Requirements

  • Basic knowledge of Java programming. Familiarity with Eclipse IDE. Basic understanding of web applications and testing concepts. No prior knowledge of TestNG, Selenium, Ant, or Maven is required.

Description

Course Introduction

Welcome to the Java TestNG Mastery Course, your comprehensive guide to mastering TestNG, a powerful testing framework for Java applications. This course is designed to take you from a beginner to an advanced user, equipping you with the knowledge and skills needed to efficiently test and validate your Java applications using TestNG. Whether you're just starting out or looking to enhance your testing capabilities, this course provides a structured approach to learning TestNG.

Section 1: Java TestNG Fundamentals

In this section, you will be introduced to the basics of TestNG, including its features and how it enhances Java testing. You'll learn how to create and run TestNG classes, understand TestNG annotations, and explore dependency and exception tests. This section lays the groundwork for effectively using TestNG in your projects by covering essential topics such as test suites, groups, and data providers.

Section 2: Java TestNG Case Study - Doctor Management System

This section dives into a practical case study involving a Doctor Management System. You'll apply what you've learned to create schema classes, perform CRUD operations, and build a user interface. You'll also implement validations, handle exceptions, and conduct unit testing using TestNG. This hands-on project helps solidify your understanding of TestNG by applying it to a real-world scenario.

Section 3: Java TestNG Case Study

Building on the previous case study, this section presents another comprehensive project that involves creating a customer management application. You'll develop POJO classes, build a user interface, and implement methods for adding and displaying customers. The focus is on validating customer data and ensuring the application flows correctly, culminating in thorough testing using TestNG.

Section 4: Selenium - Selenium IDE

Here, you'll be introduced to Selenium IDE, a powerful tool for automating web application testing. You'll learn how to install and use Eclipse, record and debug scripts, and perform various commands like wait, verify, and assert. The section also covers JavaScript basics, user extensions, and regular expressions, providing a strong foundation for automating web tests with Selenium IDE.

Section 5: Selenium - TestNG Integration

This section focuses on integrating TestNG with Selenium for enhanced testing capabilities. You'll explore different types of annotations, test methods, grouping, and parameterizing test cases. The section also covers executing tests in parallel, retrying failed tests, and running TestNG suites, providing you with advanced techniques to streamline your testing process.

Section 6: Selenium - TestNG with Apache Ant and Maven

In the final section, you'll learn how to use Apache Ant and Maven with TestNG to manage and build your projects. You'll configure Ant, create and execute build files, and generate XSLT reports. The section also covers Maven project creation, importing, and modifying test cases, as well as converting existing projects to Maven, ensuring you can efficiently manage and automate your testing workflow.

Course Conclusion

By the end of this course, you will have a deep understanding of TestNG and its integration with Selenium, Ant, and Maven. You’ll be able to create, manage, and execute comprehensive test suites, automate testing processes, and apply best practices in your Java applications. This course empowers you with the skills to ensure your software is reliable, efficient, and ready for production.

Who this course is for:

  • Java developers looking to enhance their testing skills. QA engineers and testers seeking to automate their testing processes. Software engineers interested in learning TestNG and Selenium. Anyone looking to improve the reliability and efficiency of their Java applications through automated testing.