How antonyjohnsundar/e2e-test-automation-framework-ai works
Main Components
• Test Runner & Execution:
• Test execution entry point (e.g., run_test.py, run_selectedsuite.py, or run_tests.py as indicated in the README).
• Integration with Pytest, since pytest.ini is present and it drives the test execution.
• Configuration:
• A “Configuration” component referencing config/config.py where global settings (base URL, browser type, AWS S3 settings, mobile device capabilities) are defined.
• Drivers:
• Utilities:
• Various utility modules such as:
▪ Logging (utils/logger.py)
▪ Video Recording (utils/video_recorder.py)
▪ Screenshot Capture (utils/screenshot.py)
▪ AWS S3 Upload (utils/aws_s3_upload.py & utils/s3upload.py)
▪ Real-time Streaming (utils/streaming.py)
▪ Self-Healing (utils/healing.py)
• Utilities under a “Support Services” node that assists the core execution by logging, capturing test evidence, and managing cloud storage.
• External Tools & Services:
• Incorporate external components:
▪ Cloud Storage (AWS S3).
▪ Mobile Appium Server.
▪ CI/CD integrations like Jenkins and GitHub Actions, plus Docker/Kubernetes for scalability.
▪ Tools for browser automation (Selenium, Playwright) and reporting (Allure/ExtentReports).
Relationships and Interactions
• Flow of Execution:
• The “Test Runner” initiates test cases which depend on configuration parameters (from the Config component).
• It calls the relevant driver setup (web or mobile) based on the testing requirements.
• During test execution, utilities are invoked to record videos, capture screenshots, log events, and upload artifacts to AWS S3.
• Reporting modules process the captured data to generate detailed reports.
• Also, represent interactions with external services (like AWS S3, CI/CD tools, Appium server).
Architectural Patterns & Design Principles
• Layered Separation:
• Clearly differentiate between the configuration/settings layer, the driver or service layer (communicating with external tools), and the utility/logic layer that supports test execution.
• Modularity:
• That drivers and utilities are designed as modular components—each responsible for a distinct aspect of the testing infrastructure.
• Extensibility:
• That the framework is built for scalability (Docker/Kubernetes ready and CI/CD integrations) which should be highlighted to show how different modules may be extended or modified without affecting others.