Chore/modernize framework 2025 - #2
Merged
Merged
Conversation
… 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 "
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
update framework