How boykaframework/boyka-framework works
Main Components
• Actions & Drivers: Modules managing various actions. For example, sections for API, data manipulation, element operations, and device interactions.
• Interfaces and Listeners: Abstractions that allow extensibility and event handling.
• Config & Managers: These include configuration settings (for API, UI, mobile, etc.) and manager classes (like DriverManager, AndroidManager, WebDriverManager) that handle sessions and orchestrate the tests.
• Builders & Parsers: Components that build API requests/responses and parse test data (e.g., ExcelParser, DataFactory).
• Utilities & Exception Handling: Common utilities and error handlers that support the framework functionality.
• Test Suites & Resources: Highlight the test directories, test-suites (TestNG XML files) and the varied test cases spanning API, UI (for web, Android, iOS), and even integrations with external grids. This emphasizes how the automation engine is used by examples and test cases.
• Website/Documentation: Under the “website” directory, you have a Docusaurus-based site built using TypeScript. This part documents the API, guides, examples, and community sections.
• Build & CI/CD Pipeline: Integrate the GitHub Actions workflows (inside .github/workflows) which are used for testing, code quality (CheckStyles, CodeQL), releases, and deployment. Also note the Maven (pom.xml), Lerna, and other configuration files that indicate build automation.
• CLI Component: Although the CLI (Boyka CLI) is a separate project, the README explains how it is used to “init” projects; you might reference it as an external tool interacting with the framework.
Relationships and Data Flow
• How test scripts and suites (from the test directories) interact with the automation engine’s components.
• That the “Automation Engine” invokes Actions through the corresponding Drivers (Selenium, Appium, OkHttp3-based API calls) based on settings and configurations.
• That the Website component stands mostly separately – serving as a client-facing documentation layer – but still remains coupled to the core project for release, versioning, and other metadata.
• CI/CD components interacting with both the repository (commit hooks, GitHub workflows) and deployment outputs such as the website update and Maven Central releases.
Architectural Patterns
• Modular design: The framework is broken down into modules (actions, interfaces, configuration, etc.) to promote separation of concerns.
• Abstraction and extensibility: Emphasize how interfaces and listener classes provide well-defined hooks for extending functionality.
• Layered Architecture: Consider drawing distinct layers such as the core framework logic, configuration management, test orchestration, and then the presentation/documentation layer.
• Build & Deployment Automation: Showcase the use of GitHub Actions, Maven build files, and CLI assistant integration.
Final Touches
• Clearly label every component/module.
• Essential modules (core automation, test suites, CI/CD pipelines, website) are captured.