How rana9019/playwright-behave-py works
This repository is a Playwright/Behave UI test-automation framework for a web application, with test-result reporting and analysis utilities. Its main workflow is Gherkin scenarios → Behave step definitions → page objects that drive and verify the application in Chromium. The documented test domains remain separate page-object components; reporting includes an interactive dashboard, failure analysis, and Excel updates. Source evidence is sampled, so some domain-level links reflect the README’s documented architecture rather than inspected step implementations.
Main entry points: environment.py Behave lifecycle · steps Step definitions · features Domain scenarios · login_page.py Login
Components 21
BDD scenarios
- Domain scenarios
features
Browser automation
- Step definitions
steps - Login
pages/login_page.py - Patients
pages/patients_page.py - Alerts
pages/alerts_page.py - Dose tracking
pages/dositrace_page.py - Examinations
pages/exams_page.py - Protocols
pages/protocoles_dositrace_page.py - Risk assessment
pages/risk_patient_page.py - Worklist
pages/worklist_page.py - NRD/NRI
pages/nrd_nri_page.py - Reports
pages/rapport_page.py - Statistics
pages/statistique_page.py
Test runtime
- Chromium browser
- Behave lifecycle
environment.py
Results and analysis
- Scenario results
environment.py - Interactive dashboard
utils/playwright_dashboard.py - Failure analysis
utils/analyze_failures.py - Excel reporting
utils/excel_updater.py
Other components
- Test author
- Tested web application
Connections 30
- Test author → Domain scenarios: authors scenarios
readme.md - Domain scenarios → Step definitions: binds steps
readme.md - Step definitions → Login: drives login
- Step definitions → Patients: calls page methods
steps/patients_steps.py - Step definitions → Alerts: drives alerts
- Step definitions → Dose tracking: drives dose tests
- Step definitions → Examinations: drives exam tests
- Step definitions → Protocols: drives protocol tests
- Step definitions → Risk assessment: drives risk tests
- Step definitions → Worklist: drives worklist tests
- Step definitions → NRD/NRI: drives NRD/NRI tests
- Step definitions → Reports: drives report tests
- Step definitions → Statistics: drives statistics tests
- Behave lifecycle → Chromium browser: launches
environment.py - Behave lifecycle → Login: creates page object
environment.py - Behave lifecycle → Patients: creates page object
environment.py - Behave lifecycle → Alerts: creates page object
environment.py - Behave lifecycle → Dose tracking: creates page object
environment.py - Behave lifecycle → Examinations: creates page object
environment.py - Behave lifecycle → Protocols: creates page object
environment.py - Behave lifecycle → Risk assessment: creates page object
environment.py - Behave lifecycle → Worklist: creates page object
environment.py - Behave lifecycle → NRD/NRI: creates page object
environment.py - Behave lifecycle → Reports: creates page object
environment.py - Behave lifecycle → Statistics: creates page object
environment.py - Chromium browser → Tested web application: automates UI
readme.md - Behave lifecycle → Scenario results: records scenarios
environment.py - Scenario results → Excel reporting: updates workbook
environment.py - Scenario results → Interactive dashboard: visualizes results
readme.md - Scenario results → Failure analysis: analyzes failures
readme.md