How 0mprakashop/playwright_pytest works
This repository is a Python Playwright/PyTest web-automation framework. Its visible UI flow navigates through login, dashboard, and order verification page objects; a separate API helper authenticates and creates an order. The README also describes BDD, UI/API and network testing, fixtures, parameterization, and cross-browser runs. Those test modules were not sampled, so their internal calls and relationships are not inferred here.
Main entry points: login.py User login · API_testing.py API order creation · Dashboard.py User dashboard · conftest.py Browser fixture
Components 17
Browser Setup
- Browser fixture
playwright_base/conftest.py
UI Page Objects
- User login
playwright_base/pageObjects/login.py - User dashboard
playwright_base/pageObjects/Dashboard.py - Order verification
playwright_base/pageObjects/UserOrders.py
API Operations
- API authentication
playwright_base/utils/API_testing.py - API order creation
playwright_base/utils/API_testing.py
Automation Scenarios
- BDD scenario
playwright_base/features/orderTransaction.feature - UI/API tests
playwright_base/test_UI_API.py - Network tests
playwright_base/test_network.py - Playwright tests
playwright_base/test_playwright.py - BDD tests
playwright_base/test_bdd.py - PyTest cases
pytest/test_01.py - PyTest cases
pytest/test_02.py
Other components
- PyTest runner
- Browser engine
- Web client
- External API
Connections 7
- Browser fixture → Browser engine: launches
playwright_base/conftest.py - User login → Web client: navigates
playwright_base/pageObjects/login.py - User login → User dashboard: creates
playwright_base/pageObjects/login.py - User dashboard → Order verification: creates
playwright_base/pageObjects/Dashboard.py - API order creation → API authentication: gets token
playwright_base/utils/API_testing.py - API authentication → External API: posts login
playwright_base/utils/API_testing.py - API order creation → External API: posts order
playwright_base/utils/API_testing.py