How naveenanimation20/june2025pwframework works
This repository is a Playwright automation framework for OpenCart, with browser page objects and a separate collection of API checks. The principal browser workflow is search from the home page, inspect results, select a product, and collect its details; registration and login are additional user journeys. API coverage includes authentication, CRUD, OAuth, network monitoring, JSONPath, and schema validation. README documents HTML and Allure reports generated from test runs. Test and fixture internals were not sampled, so links from those areas are marked unverified rather than inferred as direct calls.
Main entry points: apis API scenarios · tests Browser scenarios · ElementUtil.ts Element actions · HomePage.ts Search results
Components 23
Browser journeys
- Browser scenarios
tests
Page objects
- Search results
pages/HomePage.ts - Result selection
pages/ResultsPage.ts - Product details
pages/ProductInfoPage.ts - Login journey
pages/LoginPage.ts - Registration
pages/RegisterPage.ts
API checks
- API scenarios
tests/apis - Auth and OAuth
tests/apis/basicauth.spec.ts - GoREST checks
tests/apis/gorest.spec.ts - GoREST CRUD
tests/apis/gorest_crud.spec.ts - GoREST E2E
tests/apis/gorest_e2e.spec.ts - Network monitoring
tests/apis/network_monitoring.spec.ts - JSONPath checks
tests/apis/product_jsonpath.spec.ts - Schema validation
tests/apis/schema_validation.spec.ts
Test support
- Element actions
utils/ElementUtil.ts - Shared fixtures
fixtures - Playwright config
playwright.config.ts - User schema
schemas/getusersschema.json - Registration data
data/register.csv
Other components
- Test author
- OpenCart site
- External API services
- Test reports
Connections 28
- Test author → Browser scenarios: authors
- Test author → API scenarios: authors
- Browser scenarios → Playwright config: runs with
- Browser scenarios → Shared fixtures: uses
- Browser scenarios → Search results: drives
- Search results → Result selection: returns
pages/HomePage.ts - Result selection → Product details: returns
pages/ResultsPage.ts - Browser scenarios → Login journey: drives
- Login journey → Registration: returns
pages/LoginPage.ts - Search results → Element actions: delegates to
pages/HomePage.ts - Result selection → Element actions: delegates to
pages/ResultsPage.ts - Product details → Element actions: delegates to
pages/ProductInfoPage.ts - Login journey → Element actions: delegates to
pages/LoginPage.ts - Registration → Element actions: delegates to
pages/RegisterPage.ts - Search results → OpenCart site: interacts with
- Login journey → OpenCart site: interacts with
- API scenarios → Auth and OAuth: includes
- API scenarios → GoREST checks: includes
- API scenarios → GoREST CRUD: includes
- API scenarios → GoREST E2E: includes
- API scenarios → Network monitoring: includes
- API scenarios → JSONPath checks: includes
- API scenarios → Schema validation: includes
- API scenarios → External API services: checks
- Schema validation → User schema: validates against
- Browser scenarios → Registration data: may read
- Browser scenarios → Test reports: produces
README.md - API scenarios → Test reports: produces
README.md