
Learn the Java programming language, its object-oriented features, and follow a practical step-by-step guide to install Java on Windows, configure Java home and path, and verify the installation.
Learn to download, install, and launch Eclipse on Windows for Java development, then create a Java project with packages and classes under src.
Learn how to install the TestNG plugin in Eclipse using the Eclipse Marketplace or as new software, including searching for TestNG, confirming installation, and restarting Eclipse.
Create a new Java project in Eclipse named Selenium training, download and unzip Selenium jar files, and add them to the project build path.
Download prewritten scripts from the resources tab to follow along with the existing Selenium project and add them to your own project to practice the concepts in the TestNG framework.
Learn how to set up the TestNG library in Eclipse and write the first automation test case using TestNG annotations, Selenium code, and run as a TestNG test.
Understand how TestNG assertions validate web app behavior by comparing actual and expected results, with examples of assert equals, not equals, true, and false to determine pass or fail.
Update your selenium scripts for the orange hrm demo by applying the latest login URL and the new username, password, and xpath-based login button locators.
Learn to validate navigation with assert equals by comparing actual and expected URLs after login to the orange app, demonstrating pass and fail outcomes in a TestNG Selenium test.
Learn how to use assert not equals to verify that actual and expected values differ, using url checks to confirm the home page url differs from the login page.
Explore how the assert true assertion validates a boolean result in TestNG, confirming element visibility (such as the marketplace button) after login to pass when true.
Master the assert false assertion in a Selenium test to verify that all checkboxes are not selected after login in the orange hrm app, using isSelected and TestNG.
Discover how to write multiple assertions in one test case using selenium and TestNG, validating pending approval and other default checkboxes and the search button on the leave list page.
Explore assertion types with a focus on hard assertions in TestNG: when a hard assertion fails, the test stops immediately and subsequent steps don’t execute, as illustrated with Selenium examples.
Contrast hard and soft assertions in selenium TestNG, and learn how soft assertions continue execution until assert all determines the final test result.
Learn how to control test execution order in testng using the priority attribute, moving from default alphabetical ordering to a user defined sequence with four dummy tests.
Learn how to implement TestNG priority with a real-time example by ordering four test cases—login, search leave, logout, and close browser—using an explicit priority sequence.
Explain how the TestNG priority attribute controls test execution and what happens when multiple tests share the same priority. See how alphabetical order resolves order when priorities collide.
Negative priorities are allowed; the test engine runs negative-priority cases before positive ones, with -5 before -3, followed by 2 before 4.
Explore how TestNG assigns execution order with partial priorities: unassigned tests default to zero and execute alphabetically, then higher-priority tests run (A with 2, C with 4).
Learn how to exclude test cases from execution in TestNG using the enabled attribute, @Ignore, and the exclude tag in testng.xml, for cases like open bugs or changed requirements.
Learn how to exclude test cases in TestNG using enabled=false and the @Ignore annotation, demonstrated on test cases A, B, C, and D and verified by running the test suite.
Exclude test cases in TestNG using enabled=false or @Ignore to prevent execution of specific tests in the orange HRM application, such as login, leave, logout, or close browser.
Learn to execute a test case multiple times in TestNG using the invocation count attribute, set counts such as two or ten, and observe repeated login tests in selenium.
Master how to use the TestNG XML file to configure and run test suites, tests, and classes, control execution with include/exclude and groups, and pass test data to tests.
Learn how to configure a TestNG xml file to execute test cases using the methods include tag, and create test engine xml files to run login and search tests.
Learn to exclude a specific test case in TestNG by using the exclude tag in testng.xml, switching from include to exclude, and observing that only the login to application runs.
Learn to run multiple test classes with a single testng.xml by configuring the run multiple classes file, including orange hmm and timesheet tests, while excluding specific test methods.
Execute multiple test classes with a testng.xml file, excluding logout and close browser, and verify three test cases across two classes (login and timesheet) using selenium on chrome.
Learn how parameters annotation in TestNG passes test data from testng.xml to test methods, avoiding hard-coded credentials and enabling multiple tests with any number of parameters.
Demonstrates using parameter annotation to pass username and password from the test engine XML to an Orange HRM login test, including creating and wiring parameters and running the suite.
Define and use parameters in TestNG with the @Optional annotation, provide default values when missing in testng.xml, and run tests such as login automation.
Learn how to implement data driven testing in TestNG with the data provider annotation, supplying multiple data sets via a two dimensional object array or iterator.
Learn to implement the data provider annotation in TestNG to run the orangehrm login test for multiple user roles with different credentials, using a two-dimensional object array.
Explore how TestNG groups organize test cases across classes, assign tests to multiple groups, and run them with testng.xml for focused login or reset password testing, plus a practical demonstration.
Create test classes and annotate with @Test to build login and reset password tests. Group tests, assign them to login or reset, and run selected groups via testng.xml.
Learn how to assign multiple groups to a single test case and run a group that contains tests across multiple classes using a test.xml file, including sanity and login groups.
use depends on methods attribute to specify dependency between test cases, enforce execution order, skip dependent tests if prerequisites fail, with an example of apply leave and approve leave.
Demonstrate how depends on methods governs execution between apply leave and approve leave test cases, including configuring the dependency and observing skip behavior in the emailable report.
Explore how the depends on methods attribute in TestNG governs OrangeHRM test cases, showing that login must succeed before logout, and that a failed login skips dependent tests.
Unlock the full potential of test automation with our comprehensive course, "Learn TestNG Framework with Selenium Java: From Basics to Expert." Whether you're a manual tester transitioning to automation or a beginner eager to dive into TestNG and Selenium, this course is designed for you!
Starting from the ground up, we’ll guide you through the fundamentals of the TestNG framework, show you how to integrate it with Selenium and teach you how to build powerful, scalable test automation frameworks. You'll learn everything from setting up your Java project, configuring Selenium WebDriver, and writing data-driven tests.
With real-world examples and hands-on projects, you’ll develop the skills needed to become a proficient test automation engineer. Plus, you’ll have access to all the code, which you can download and use in your projects, making it easy to follow along and practice as you learn.
What you'll learn:
Master the fundamentals of TestNG and its integration with Selenium.
Create and manage data-driven tests using TestNG's powerful features.
Understand and apply TestNG annotations, listeners, and groups to manage test execution.
Troubleshoot and handle common automation challenges with ease.
By the end of this course, you’ll be confident in creating and maintaining automated test suites with TestNG and Selenium, helping you take your automation skills to the next level!