How sribalajikrish/sribalaji-enterprise-playwright-framework works
This is a JavaScript/Playwright UI test automation framework. Its main workflow runs a test scenario through Playwright fixtures and page objects, which perform browser interactions and validations against an application; configuration selects environment/browser projects and test data can come from JSON or Excel. The README also describes authentication, isolation, resource managers, logging, and failure artifacts. Several of those modules were not sampled, so their documented capabilities are included without inferring unshown implementation links.
Main entry points: ui UI scenarios · suiteHooks.js Suite hooks · LoginPage.js Login page object · playwright.config.js Project configuration
Components 21
Test execution
- Playwright runner
- UI scenarios
tests/ui - Auth setup
tests/auth.setup.js - Test fixtures
fixtures/test.fixture.js - Project configuration
playwright.config.js
UI automation
- Login page object
pages/LoginPage.js - Base page
base/BasePage.js - Element helpers
helpers/elementHelper.js - Dropdown helper
helpers/dropdownHelper.js
Configuration and data
- Environment settings
config/environment.js - Test data access
utils/testDataUtil.js - JSON reader
utils/jsonUtil.js - Excel reader
utils/excelUtil.js - Login data files
test-data
Lifecycle and resources
- Suite hooks
hooks/suiteHooks.js - Database manager
resources/database/DatabaseManager.js - API manager
resources/api/ApiManager.js - Mock manager
resources/mock/MockManager.js
Diagnostics
- Logger
logger/logger.js - Reports and artifacts
playwright.config.js
Other components
- Web application
Connections 22
- Playwright runner → UI scenarios: runs
README.md - Playwright runner → Auth setup: runs setup
- Project configuration → Environment settings: loads settings
playwright.config.js - Project configuration → Auth setup: selects setup
playwright.config.js - UI scenarios → Test fixtures: uses fixtures
README.md - UI scenarios → Login page object: uses page object
README.md - Login page object → Base page: extends
pages/LoginPage.js - Login page object → Element helpers: calls
pages/LoginPage.js - Login page object → Web application: interacts with
README.md - Auth setup → Web application: authenticates
README.md - Auth setup → Project configuration: provides storage state
README.md - UI scenarios → Test data access: loads data
README.md - Test data access → JSON reader: dispatches JSON reads
utils/testDataUtil.js - Test data access → Excel reader: dispatches Excel reads
utils/testDataUtil.js - Login data files → Test data access: supplies inputs
README.md - UI scenarios → Suite hooks: uses lifecycle
README.md - Suite hooks → Logger: logs lifecycle
hooks/suiteHooks.js - Suite hooks → Database manager: manages resources
README.md - Suite hooks → API manager: manages resources
README.md - Suite hooks → Mock manager: manages resources
README.md - Project configuration → Reports and artifacts: configures artifacts
playwright.config.js - Playwright runner → Reports and artifacts: produces reports
README.md