
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.
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.
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.
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.
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 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.
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.
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!