How pramoddutta/advanceplaywrightframework2x works
Advance Playwright Framework 2x is a TypeScript automation framework for UI and API checks, with reusable fixtures, page objects, data utilities, and AI-assisted analysis. The primary workflow is a test run: specs use prepared fixtures and UI/API clients to exercise an application, then Playwright results are reported and may be enriched with failure or flaky-test analysis. The map includes documented framework capabilities; some subsystem links are based on the README and tree because their source was not sampled.
Main entry points: tests Test specifications · agentFactory.ts Agent framework · BookingApi.ts Booking client · LLMClient.ts LLM transport
Components 25
Test entry
- Test specifications
src/tests - Runner configuration
playwright.config.ts
UI automation
- Composable fixtures
src/fixtures/test-base.ts - Page objects
src/pages
API automation
- Booking client
src/api/BookingApi.ts - API helper
src/utils/ApiHelper.ts
Shared services
- Element wrapper
src/utils/UtilElementLocator.ts - Credentials and env
src/config - Test data
src/testdata - Data generation
src/utils/DataGenerator.ts - Schema validation
src/utils/SchemaValidator.ts - Scoped logging
src/utils/logger.ts
Reporting and AI
- Custom reporter
src/utils/CustomReporter.ts - Failure analysis
src/ai/agents/rcaAgent.ts - Flaky analysis
src/ai/agents/flakyAnalyzer.ts - AI data generation
src/ai/agents/dataGenAgent.ts - Self-healing
src/ai/agents/selfHealAgent.ts - Agent framework
src/ai/agentFactory.ts - LLM transport
src/ai/LLMClient.ts - Provider selection
src/ai/config/providers.ts
Other components
- Test author
- Playwright runner
- TTACart application
- Restful Booker API
- LLM provider
Connections 31
- Test author → Test specifications: authors checks
- Test author → Playwright runner: starts run
- Runner configuration → Playwright runner: configures
- Playwright runner → Test specifications: executes
- Test specifications → Composable fixtures: requests fixtures
- Composable fixtures → Page objects: constructs
- Test specifications → Page objects: uses
- Page objects → Element wrapper: performs actions
- Element wrapper → TTACart application: drives UI
- Test specifications → Booking client: calls
- Booking client → API helper: sends requests
- API helper → Restful Booker API: calls API
- Booking client → Credentials and env: reads credentials
- Composable fixtures → Credentials and env: reads credentials
- Test specifications → Test data: reads data
- Test specifications → Data generation: generates data
- Booking client → Schema validation: validates responses
- Playwright runner → Custom reporter: reports results
- Custom reporter → Failure analysis: analyzes failures
- Custom reporter → Flaky analysis: compares builds
- Failure analysis → Agent framework: creates agent
- Flaky analysis → Agent framework: creates agent
- AI data generation → Agent framework: creates agent
- Self-healing → Agent framework: creates agent
- Agent framework → LLM transport: requests completion
- Agent framework → Schema validation: validates output
- LLM transport → Provider selection: resolves provider
- LLM transport → LLM provider: sends prompt
- Page objects → Scoped logging: creates scoped logs
- Element wrapper → Scoped logging: writes logs
- LLM transport → Scoped logging: writes metadata