0% found this document useful (0 votes)
1 views

TestNG_with_Selenium_Roadmap

The document outlines a comprehensive training module on TestNG with Selenium, covering various topics such as TestNG installation, annotations, XML configuration, and advanced features. It includes practical use cases for parameterization, test grouping, data-driven testing, and integration with Maven. Additionally, it discusses reporting, parallel test execution, and framework design using TestNG.

Uploaded by

abhisharma4it
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
1 views

TestNG_with_Selenium_Roadmap

The document outlines a comprehensive training module on TestNG with Selenium, covering various topics such as TestNG installation, annotations, XML configuration, and advanced features. It includes practical use cases for parameterization, test grouping, data-driven testing, and integration with Maven. Additionally, it discusses reporting, parallel test execution, and framework design using TestNG.

Uploaded by

abhisharma4it
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

TestNG with Selenium

Module 1: Introduction to TestNG


1) What is TestNG? Module 8: Parameterization using testng.xml
2) Why use TestNG over JUnit? 1) @Parameters annotation
3) TestNG installation (Eclipse/IntelliJ) 2) Reading parameters from XML file
4) Structure of a TestNG test class 3) Use Case: Run tests on different browsers (Cross-
5) First TestNG example with Selenium browser testing)

Module 2: TestNG Annotations (Core) Module 9: TestNG Listeners


1) @Test 1) What are Listeners in TestNG?
2) @BeforeMethod / @AfterMethod 2) ITestListener, ISuiteListener
3) @BeforeClass / @AfterClass 3) Use Case: Custom logging, screenshot on failure
4) @BeforeTest / @AfterTest 4) Implementing Retry Logic with IRetryAnalyzer
5) @BeforeSuite / @AfterSuite
6) Use Case: Browser setup & teardown in Selenium
Module 10: Parallel Test Execution
1) Running tests in parallel using testng.xml
Module 3: TestNG XML Configuration 2) Parallel execution at:
1) Creating testng.xml file 3) Test level
2) Running tests via testng.xml 4) Class level
3) Grouping tests using XML 5) Method level
4) Including & excluding tests 6) Thread safety with WebDriver
5) Setting priority of test execution
Module 11: Reporting in TestNG
Module 4: Advanced @Test Features 1) Default TestNG reports
1) enabled = false 2) Customizing reports
2) priority, dependsOnMethods, invocationCount, 3) Integrating ExtentReports with TestNG
timeOut 4) Screenshot on test failure
3) Parallel execution of test methods
Module 12: TestNG + Maven Integration
4) ThreadPoolSize and invocationCount use case
1) Maven project setup with Selenium + TestNG
Module 5: Assertions in TestNG 2) Using pom.xml for dependency management
1) Hard Assertions (Assert.assertEquals, assertTrue, 3) Running TestNG tests using Maven goals
etc.)
Module 13: Framework Design using TestNG
2) Soft Assertions (SoftAssert)
1) Creating BaseTest Class
3) Use Case: Validating login & title checks in Selenium
2) Creating Utility and Page Classes
Module 6: TestNG Groups 3) Reusability using Annotations
1) Grouping tests using groups attribute 4) Modularizing test cases
2) Running specific groups in testng.xml
3) Use Case: Smoke, Regression, Sanity suite creation

Module 7: Data-Driven Testing with


DataProvider
1) @DataProvider annotation
2) Passing multiple sets of data to a test
3) Parameterization from Excel (Apache POI)
4) Use Case: Login form with multiple usernames

You might also like