How igauravbhatt/selenium-testng-framework works
Project type and purpose
• This is a Java-based Selenium TestNG automation framework, organized using the Page Object Model (POM).
• It is designed to automate end-to-end UI tests against a web application, grouping tests into suites (smoke, regression) via TestNG XML files.
File structure
• Top-level files:
• pom.xml — Maven build and dependency management
• smoke.xml, Regression.xml — TestNG suite definitions
• src/main/java/com/selenium_testng:
• base/ — core framework classes:
– base.java: initializes WebDriver, loads properties, sets up TestNG before/after methods
– PageObjectManager.java: lazy-loads and provides page object instances
• pages/ — one class per web page (Login, Dashboard, PIM, Leave, etc.) implementing element locators and actions
• utils/ — support utilities:
– PropertyReader.java: reads objectRepo.properties and config files
– commonMethods.java: reusable UI interaction helpers
– ReportListener.java, screenshotListener.java: event handlers for logging and capturing screenshots
– objectRepo.properties: element locators and test data mappings
• src/test/java/com/selenium_testng:
• Listeners.java — registers TestNG listeners for reporting and screenshots
• Practice_Testcases/ — exploratory or sample tests
• TestCases/ — structured test classes (TC01_login, TC02_Dashboard, …) extending baseTest.java
README
• README is minimal; rely on the code organization and naming conventions to infer the architecture.