SHAFT logo # Write the test. SHAFT does the rest. One Java engine for web, mobile, API, CLI, database, and desktop.
Drivers, waits, and evidence are handled. Every run ends in an Allure report. [![Read the User Guide](https://img.shields.io/badge/Read_the_User_Guide-%E2%86%92-0969da?style=for-the-badge&labelColor=0969da)](https://shafthq.github.io/)   [![Star SHAFT on GitHub](https://img.shields.io/badge/%E2%AD%90_Star_on_GitHub-9a6700?style=for-the-badge&logo=github&logoColor=white)](https://github.com/ShaftHQ/SHAFT_ENGINE) [![Maven Central](https://img.shields.io/maven-central/v/io.github.shafthq/shaft-engine?label=maven%20central&color=0969da)](https://central.sonatype.com/artifact/io.github.shafthq/shaft-engine) [![Build](https://img.shields.io/github/actions/workflow/status/ShaftHQ/SHAFT_ENGINE/pr-gate.yml?branch=main&label=build)](https://github.com/ShaftHQ/SHAFT_ENGINE/actions/workflows/pr-gate.yml) [![Codecov](https://img.shields.io/codecov/c/github/ShaftHQ/SHAFT_ENGINE?label=coverage&logo=codecov)](https://app.codecov.io/gh/ShaftHQ/SHAFT_ENGINE) [![GitHub stars](https://img.shields.io/github/stars/ShaftHQ/SHAFT_ENGINE?style=flat&label=stars)](https://github.com/ShaftHQ/SHAFT_ENGINE) **Usage (GA4 Engine property + GitHub API, as of 2026-10-29):** 4,885,097 tests run and 53,062 active users in 30 days (2026-09-29 to 2026-10-28); 154,202 active users in 12 months (2025-10-29 to 2026-10-28); 36 countries (12-month window). The stars badge above is live. SHAFT in action: a 3-line test, mvn test passing, and the green Allure report it produces. **Upgrade to SHAFT_ENGINE** · ▶ [Watch the 26-second clip with sound and captions](https://github.com/ShaftHQ/SHAFT_ENGINE/releases/download/shaft-hero-video-20261017/shaft-hero-16x9.mp4) · [100-second overview](https://github.com/ShaftHQ/SHAFT_ENGINE/releases/download/shaft-feature-video-v2-20261009/SHAFT-business-16x9-v2-1080p.mp4)
## Why SHAFT - **No plumbing.** Managed Selenium and Appium drivers, synchronized actions, and smart waits. - **One fluent API.** Web, mobile, REST/GraphQL, database, CLI, and desktop in the same test. - **Evidence by default.** Steps, screenshots, and logs land in an Allure report on every run. - **Scale by configuration.** Local, Grid, BrowserStack, or LambdaTest; TestNG, JUnit, or Cucumber. - **Open and trusted.** MIT licensed, on Maven Central, with public coverage. ## How it works Test intent and configuration enter SHAFT's orchestration layer, fan out across the execution surfaces you need, and come back as unified evidence. ```mermaid flowchart LR accTitle: SHAFT execution and evidence workflow accDescr: Test intent and configuration enter SHAFT orchestration, run across Web, Mobile, API, and Native execution surfaces, and produce unified evidence. I[Test intent] --> S[SHAFT orchestration] C[Configuration] --> S S --> W[Web] S --> M[Mobile] S --> A[API] S --> N[Native, CLI, and Database] W --> E[Unified evidence] M --> E A --> E N --> E ``` ## Quickstart **[Generate your first project](https://shafthq.github.io/)** and run `mvn test`. Already on Maven? Add `io.github.shafthq:shaft-engine` (version from the Maven Central badge): ```xml io.github.shafthq shaft-engine ${shaft.version} ``` Then write the test: ```java SHAFT.GUI.WebDriver driver = new SHAFT.GUI.WebDriver(); driver.browser().navigateToURL("https://shafthq.github.io/") .and().element().assertThat(By.cssSelector("h1")).isVisible(); driver.quit(); ``` Run `mvn test`. The Allure report opens with every step, screenshot, and log. ## Where to next - **Writing tests:** the **[User Guide](https://shafthq.github.io/)** has setup, the full API, and examples. - **Using IntelliJ:** [shaft-intellij](shaft-intellij/README.md). - **Contributing or maintaining:** [CONTRIBUTING.md](CONTRIBUTING.md) is the entry point to the maintainers guide. - **AI agents:** [AGENTS.md](AGENTS.md). Start with `$shaft-developer`, then the [MCP tools](shaft-skills/shaft-developer/references/shaft-mcp-tools.md) or [CLI commands](shaft-skills/shaft-developer/references/shaft-cli-commands.md). - **Training:** hands-on courses at [automatest.org](https://www.automatest.org).
**If SHAFT saves your team time, star the repo.** It helps other testers find it. [![Star SHAFT on GitHub](https://img.shields.io/badge/%E2%AD%90_Star_on_GitHub-9a6700?style=for-the-badge&logo=github&logoColor=white)](https://github.com/ShaftHQ/SHAFT_ENGINE)
--- [Open an issue](https://github.com/ShaftHQ/SHAFT_ENGINE/issues) · [Code of Conduct](CODE_OF_CONDUCT.md) · [Security](SECURITY.md) · [Sponsor](https://github.com/sponsors/MohabMohie) BrowserStack, LambdaTest, Applitools, and JetBrains have provided tooling or open-source program support. This is support for the project, not a claim of financial sponsorship, customer status, or endorsement.