Test Automation with Selenium and TestNg
Add to LinkedIn
Certificate ID:
815503
Authentication Code:
8a4f8
Certified Person Name:
Georgian Glavan
Trainer Name:
Fulvio Caruna
Duration Days:
5
Duration Hours:
35
Course Name:
Test Automation with Selenium and TestNg
Course Date:
8 July 2025 10:00 to 11 July 2025 17:00
Course Outline:
Foundations of Automation and Java Essentials
- Introduction to automated testing
- Manual vs. automated testing
- Testing concepts and terminology
- Overview of Selenium and TestNG
- How Selenium works behind the scenes
- Java basics for testers (variables, loops, functions)
- Setting up Java IDE (e.g., IntelliJ, Eclipse)
- Creating and managing a Maven project
- Introduction to WebDriver API
Locators and Core Selenium Automation
- Understanding locators
- Locator types: ID, CSS, XPath, Name
- Advanced locators:
- Creating dynamic locators
- Path-building strategies
- Element relationships
- Using text to locate elements
- Best practices in element location
- Automating interactions with Selenium WebDriver
- Handling dynamic content and delays
- Taking screenshots
- Debugging and troubleshooting Selenium tests
TestNG Fundamentals and Integration with Selenium
- Introduction to TestNG framework
- TestNG annotations (BeforeMethod, AfterClass, etc.)
- Writing and organizing TestNG test cases
- Creating and configuring testng.xml
- Assertions and validation techniques
- Parameters and DataProviders
- Running Selenium tests using TestNG
- Cross-browser testing setup and execution
- Introduction to automation design patterns (e.g., Page Object Model)
Advanced TestNG Features
- Grouping test methods and classes
- Groups of tests
- Excluding and combining groups
- Test dependencies
- Factory methods
- Timeouts and parallel test execution
- Retrying failed tests
- Listeners in TestNG:
- Method interceptors
- Annotation transformers
- Suite modification
- Invocation listeners
- Dependency injection concepts
- Running TestNG tests programmatically
Reporting, Optimization & Best Practices
- Success, failure, and assertion handling
- Logging test activity and results
- Reporting in TestNG
- Analyzing test execution outcomes
- YAML and output formats (optional)
- Best practices in test automation
- Code organization
- Reusability and scalability
- Common pitfalls and how to avoid them
- Comparing TestNG with JUnit
- Final project: build and run a mini test framework using Selenium + TestNG