This Selenium automation project is built using a Hybrid Framework, integrating multiple best practices and design patterns to ensure flexibility, maintainability, and efficiency in test automation.
- Implemented a Hybrid Framework combining:
- Page Object Model (POM)
- Data-Driven Testing
- Used
testng.xmlfor:- Suite and test configuration
- Grouping tests
- Managing cross-browser execution
- Enabled parallel execution for faster test runs.
- Page Object Model (POM): For separating test logic and UI interaction.
- Factory Design Pattern: Used
PageFactoryfor initializing web elements and enhancing abstraction.
- Supported browsers:
- Chrome
- Firefox
- Edge
- Browser selection handled through parameters in
testng.xml.
- Integrated ChainTest for generating detailed and interactive test reports.
- Reports include:
- Pass/fail status
- Execution time
- Screenshots on failure
- Integrated Log4j2 for:
- Real-time logging of execution flow
- Capturing errors and exceptions
- Categorized log files with timestamps