How vinaykumarbm/playwright-sample-project works
This repository is a data-driven Playwright/TypeScript automation framework. Its documented workflow uses Excel execution data to create a suite, then runs UI, REST/SOAP, or database automation and produces reports and logs. The sampled suite manager confirms Excel-driven suite generation; source excerpts also show UI action composition, REST response handling, browser selection, and logging. Other capabilities are retained where documented, but their internal call paths are not inferred from unsampled code.
Main entry points: playwright.config.ts Playwright configuration · SuiteManager.ts Suite manager · UIActions.ts UI action facade · TestListener.ts Test listener
Components 31
Suite and data
- Suite manager
src/framework/manager/SuiteManager.ts - Excel data
src/framework/utils/ExcelUtil.ts - Suite template
src/framework/template/SuiteTemplate.ts
Web UI automation
- Shopping UI steps
src/advantage/steps - Shopping page objects
src/advantage/pages - UI action facade
src/framework/playwright/actions/UIActions.ts - Element actions
src/framework/playwright/actions/UIElementActions.ts - Specialized UI actions
src/framework/playwright/actions
API automation
- REST user steps
src/API/REST/steps/UserSteps.ts - REST requests
src/framework/playwright/API/RESTRequest.ts - REST responses
src/framework/playwright/API/RESTResponse.ts - SOAP account steps
src/API/SOAP/steps/AccountServiceSteps.ts - SOAP requests
src/framework/playwright/API/SOAPRequest.ts - SOAP responses
src/framework/playwright/API/SOAPResponse.ts - XML parser
src/framework/utils/XMLParserUtil.ts
Database and utilities
- Database steps
src/database/steps/DatabaseStep.ts - Database utilities
src/framework/utils/DBUtil.ts - PDF validation
src/framework/utils/PDFUtil.ts - Image comparison
src/framework/utils/ImageComparator.ts
Runtime and results
- Playwright configuration
playwright.config.ts - Browser selection
src/framework/manager/Browser.ts - Test listener
src/framework/logger/TestListener.ts - Execution logger
src/framework/logger/Logger.ts - Allure reporting
src/framework/reporter/Allure.ts - HTML reporting
src/framework/reporter/HTMLReporter.ts - Playwright runner
Other components
- Test engineer
- Shopping website
- REST service
- SOAP service
- Database systems
Connections 19
- Test engineer → Suite manager: selects sheet
README.md - Suite manager → Excel data: reads test list
src/framework/manager/SuiteManager.ts - Suite manager → Suite template: uses template
src/framework/manager/SuiteManager.ts - Test engineer → Playwright runner: runs suite
README.md - Playwright configuration → Browser selection: selects browser
playwright.config.ts - Playwright configuration → Test listener: registers reporter
playwright.config.ts - Playwright configuration → Allure reporting: configures reporting
playwright.config.ts - Playwright configuration → HTML reporting: configures reporting
playwright.config.ts - Test listener → Execution logger: writes logs
src/framework/logger/TestListener.ts - UI action facade → Element actions: delegates actions
src/framework/playwright/actions/UIActions.ts - UI action facade → Specialized UI actions: configures helpers
src/framework/playwright/actions/UIActions.ts - Shopping UI steps → Shopping website: automates UI
README.md - REST requests → REST responses: builds response
src/framework/playwright/API/RESTRequest.ts - REST user steps → REST service: tests REST API
README.md - SOAP account steps → SOAP service: tests SOAP API
README.md - SOAP responses → XML parser: uses parser
src/framework/playwright/API/SOAPResponse.ts - Database steps → Database systems: supports database tests
README.md - Test engineer → PDF validation: validates PDFs
README.md - Test engineer → Image comparison: compares images