How eanugan/keyword-driven-framework-in-selenium-webdriver works
This is a small keyword-driven Selenium test runner. TestNG invokes TestConfig, which reads rows from an Excel workbook and dispatches browser, navigation, typing, and click actions; it also logs test outcomes to an ExtentReports HTML report. Browser interactions target the configured application. The tree and sampled Java show the main execution path; the workbook contents and report-generation internals are not inspected, so their detailed behavior is not inferred.
Main entry points: TestConfig.java Test configuration · BrowserAction.java Browser navigation · TypeEvents.java Text entry · ClickEvents.java Click handling
Components 11
Test orchestration
- Test configuration
src/Config/TestConfig.java
Browser actions
- Browser navigation
src/lib/BrowserAction.java - Text entry
src/lib/TypeEvents.java - Click handling
src/lib/ClickEvents.java
Test inputs and reporting
- Excel data provider
src/dataProvider/ExcelDataProvider.java - Test workbook
TestCases/InputSheet.xlsx - HTML test report
HTMLReport/login.html
Other components
- TestNG runner
- Chrome browser
- Firefox browser
- Target web app
Connections 12
- TestNG runner → Test configuration: invokes
- Test configuration → Excel data provider: creates and reads
- Excel data provider → Test workbook: loads
- Test configuration → Chrome browser: starts or quits
- Test configuration → Firefox browser: starts or quits
- Test configuration → Browser navigation: dispatches navigation
- Test configuration → Text entry: dispatches typing
- Test configuration → Click handling: dispatches clicks
- Browser navigation → Target web app: navigates
- Text entry → Target web app: enters text
- Click handling → Target web app: clicks elements
- Test configuration → HTML test report: logs and flushes