Skip to content

Chore/modernize framework 2025 - #2

Merged
md-sikder merged 17 commits into
mainfrom
chore/modernize-framework-2025
Nov 5, 2025
Merged

Chore/modernize framework 2025#2
md-sikder merged 17 commits into
mainfrom
chore/modernize-framework-2025

Conversation

@md-sikder

Copy link
Copy Markdown
Owner

update framework

md-sikder and others added 17 commits November 3, 2025 16:53
… setup, and screenshot-on-failure feature

- Rewrote README for 2025-ready framework
- Added detailed project structure and key features
- Documented Selenium Manager (removed webdriver-manager dependency)
- Explained pytest configuration and environment usage
- Included CI/CD example (GitHub Actions)
- Added section for automatic screenshots on failure in HTML reports
- Enhanced clarity for recruiters and open-source visibility
…fault

- Introduced new pytest CLI flag '--headless' for manual runtime selection
- Default behavior: runs tests in GUI (headed) mode
- Added fallback resolution order: CLI > environment variable > default GUI
- Printed active mode (HEADLESS/GUI) to console for clarity
- Ensured maximize_window() only in GUI mode
- Retained existing screenshot-on-failure hook and directory creation
git commit -m "feat(logging): add step-level logging for login flow

- Integrated get_logger() in LoginPage
- Added INFO logs for major actions and DEBUG logs for field-level details
- Added ERROR logging in wait_for_success for better debugging
"
…estCases/test_login.py

git commit -m "feat(logging+screenshot): add automatic screenshot capture on failure

- Integrated capture_screenshot() into LoginPage and test layer
- Added try/except around key actions (open, login, verify)
- Logs error details and saves screenshot with timestamp
- Improved debug visibility for failed test cases
"
git commit -m "ci: enhance GitHub Actions workflow for Selenium UI tests

- Added pip caching for faster installs
- Ensured pre-run creation of reports, logs, and screenshots directories
- Run tests in headless mode by default (HEADLESS=true for CI)
- Generate pytest-html report with embedded screenshots on failure
- Upload HTML report, screenshots, and logs as CI artifacts
- Added concurrency and timeout controls for stable parallel runs
"
git commit -m "fix(ci): add missing PyYAML and update dependencies for Selenium CI pipeline

- Added pyyaml>=6.0.2 required by config_reader
- Ensured pytest-xdist and pytest-html are pinned for stable parallel + report generation
- Verified compatibility with Selenium 4.21 and latest GitHub Actions runner
"
git push
git commit -m "feat(logging): add colorized UTF-8 logger for console and file outputs

- Introduced ANSI color formatter for better console readability
- Fixed UnicodeEncodeError on Windows by enforcing UTF-8 encoding
- Added rotating file handler with persistent logs in logs/test.log
"
@md-sikder
md-sikder merged commit 025ac5a into main Nov 5, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant