Maestro
16,375
Stars
1,018
Forks
63
Watchers
460
Open Issues
Apache-2.0
许可证
Kotlin
语言
2022-03-31
创建时间
2026-11-06
最近更新
项目能做什么
面向移动端和 Web 的无痛 E2E 自动化工具。
来源:AI 基于仓库事实生成
· 内容以仓库实际 README 为准
使用说明 查看原始 README 原仓库文档
中文使用说明暂未生成。下面保留原仓库 README 摘录,命令与配置均以原文为准。
原始 README 摘录(英文原文,节选前 3000 字符)
> [!TIP]
> Great things happen when testers connect — [Join the Maestro Community](https://maestrodev.typeform.com/to/FelIEe8A)
<p align="center">
<a href="https://www.maestro.dev">
<img width="1200" alt="Maestro logo" src="https://github.com/mobile-dev-inc/Maestro/blob/main/assets/banne_logo.png" />
</a>
</p>
**Maestro** is an open-source framework that makes UI and end-to-end testing for Android, iOS, and web apps simple and fast.
Hand-write your first YAML flow with the CLI in under 5 minutes, build flows visually in Maestro Studio, or add **Maestro MCP** to your coding agent for agentic UI testing.
Flows run on any emulator, simulator, browser, or physical Android device. Physical iOS devices are not yet supported.
<p align="center">
<img src="assets/twitch2-small.gif" alt="A Maestro flow in plain YAML running on the Twitch Android app in an emulator" width="760" />
</p>
## Table of Contents
- [Why Maestro?](#why-maestro)
- [Getting Started](#getting-started)
- [Maestro MCP – Agentic UI Testing](#maestro-mcp--agentic-ui-testing)
- [Maestro Studio – Test IDE](#maestro-studio--test-ide)
- [Maestro Cloud – Parallel Execution & Scalability](#maestro-cloud--parallel-execution--scalability)
- [Resources & Community](#resources--community)
- [Contributing](#contributing)
## Why Maestro?
Maestro is built on learnings from its predecessors (Appium, Espresso, UIAutomator, XCTest, Selenium, Playwright), plus 3 decisions made early: drive the app through the platform's accessibility layer, install as a single binary with no drivers or SDK, and keep every test a flat list of YAML commands.
- **Human-readable YAML flows** – express interactions as commands like `launchApp`, `tapOn`, and `assertVisible`.
- **Built for coding agents** – the Maestro MCP server ships inside the Maestro CLI (`maestro mcp`, nothing else to install). Claude Code, Cursor, Codex, Grok Build, or any MCP client can control your app on a live device: inspect the screen, tap, scroll, assert, and check its own work while it builds. Ask for a flow when you want a repeatable test — that's agentic UI testing.
- **Framework agnostic** – React Native, Flutter, native iOS and Android, Ionic, and hybrid apps all use the same commands. Meta uses Maestro to test React Native itself, and Expo supports Maestro as its preferred E2E testing platform.
- **Cross-platform coverage** – one flow syntax for Android, iOS, and web, on emulators, simulators, browsers, and physical Android devices.
- **Resilience & smart waiting** – built-in flakiness tolerance and automatic waiting handle dynamic UIs without manual `sleep()` calls.
- **Fast iteration & simple install** – one install line, no drivers, no SDK, no dependencies; flows are interpreted, so there's no compilation step. First test in 5 minutes.
**Simple Example:**
```
# flow_contacts_android.yaml
appId: com.android.contacts
---
- launchApp
- tapOn: "Create new contact"
- tapOn: "First Name"
- inputText: "John"
阅读完整原文
商业机会分析 AI 生成
测试结果可视化与 Flaky Test(不稳定用例)分析 SaaS
| 产品构想 | 依托仓库 db=0、apikey=0 的特征(推测其原生缺乏持久化数据看板),开发轻量级 SaaS 平台,接收并存储 Maestro 测试运行后的结果、日志与截图,提供历史趋势分析、失败归因与告警通知。 |
| 核心功能 | CLI/CI 插件上报测试数据、测试通过率与耗时趋势看板、用例波动率(Flakiness)统计、Slack/飞书/邮件失败告警、测试产物云端归档。 |
| 目标用户 | 已将 Maestro 接入日常开发或 CI 流程,但缺乏统一测试报告与质量度量工具的中小研发团队及 QA(推测)。 |
| 难度/周期 | 中低(无需自建高成本真机云,聚焦数据接收、存储与前端可视化,属于推测) · 1-2个月完成 MVP · 成本:低(主要为云服务器、对象存储与数据库基础费用,不含真机设备采购) |
| 收费模式 | SaaS 订阅制(按团队席位、项目数量或日志/产物存储容量分级收费) |
| 竞争风险 | 1)因 README 缺失,尚不确定上游或第三方是否已提供成熟报告功能;2)若用户习惯直接使用现有 CI 平台(如 GitHub Actions)自带报告,独立看板付费意愿可能不足(推测)。 |
| 依据 | AI推测 |
跨平台桌面端可视化测试编排与调试辅助工具
| 产品构想 | 基于 Apache-2.0 协议与 Kotlin 技术栈特征,开发面向非纯代码背景 QA 的桌面端 GUI 工具,提供可视化的测试步骤编排、元素查看辅助及本地一键批量回放管理(推测原工具主要依赖命令行或文本脚本编写)。 |
| 核心功能 | 可视化测试流程编辑器、本地 Android/iOS 模拟器与 Web 浏览器联动调试面板、测试套件分组管理与一键执行、常见异常排查向导。 |
| 目标用户 | 熟悉业务测试但对命令行或脚本编写效率有提升诉求的 QA 测试人员、移动端产品/测试团队(推测)。 |
| 难度/周期 | 中等(需处理与底层 Kotlin 核心及本地设备/浏览器的通信适配,属于推测) · 2-3个月完成基础版 · 成本:低(主要为个人开发时间及基础测试设备成本) |
| 收费模式 | 桌面软件买断或按年授权(License)、团队协作版订阅 |
| 竞争风险 | 1)需紧跟上游版本迭代以防脚本语法或接口变更导致兼容问题;2)需要验证目标用户是否真的认为现有编写方式存在门槛(推测)。 |
| 依据 | 尚需验证的假设 |
开箱即用的 Docker 化 CI 执行镜像与私有化调度方案
| 产品构想 | 针对仓库 docker=0 的特征(推测官方仓库本身未提供完整容器化编排方案),构建预配置好运行环境、支持 Web 与 Android 模拟器的标准 Docker 镜像及轻量并发调度网关,打包为企业私有化集成方案。 |
| 核心功能 | 标准化容器运行镜像、多任务并行队列调度、与主流 CI/CD(GitLab CI、Jenkins 等)无缝对接模板、环境隔离与资源回收管理。 |
| 目标用户 | 希望在内部服务器或私有云快速落地自动化回归测试、对数据安全有要求的中型研发团队(推测)。 |
| 难度/周期 | 中高(涉及容器内嵌套模拟器或无头浏览器性能优化,及 iOS 环境在非 macOS 下的限制,属于推测) · 2-4个月 · 成本:中低(主要为测试服务器与带宽成本,私有化部署由客户承担算力) |
| 收费模式 | 企业私有化部署授权费、年度维护与技术支持费 |
| 竞争风险 | iOS 自动化测试强依赖 macOS/Xcode 环境(基于行业常识的推测),纯 Docker 方案可能仅能覆盖 Android 与 Web,导致产品覆盖范围受限。 |
| 依据 | AI推测 |
Maestro 自动化测试体系搭建咨询与脚本代维服务
| 产品构想 | 利用项目 16369 Star 带来的广泛受众及 458 个 Issue 反映出的落地复杂度(数据支持的判断),为缺乏专职自动化测试工程师的中小企业提供“工具导入 + 核心业务流编写 + 持续维护”的订阅式技术服务。 |
| 核心功能 | 核心业务路径 E2E 用例设计与交付、CI 流水线集成配置、随版本迭代的用例修复维护、团队内部培训。 |
| 目标用户 | 有移动端/Web 质量保障需求、但缺乏专职自动化测试人力的外包团队、初创公司或传统企业研发部门(推测)。 |
| 难度/周期 | 低(技术壁垒主要在于工程实践经验积累,无需重资产研发平台) · 1个月内可启动接单 · 成本:极低(主要为人力时间成本) |
| 收费模式 | 项目制交付收费 + 按月/按季度的用例维护订阅服务 |
| 竞争风险 | 纯服务模式人力复用率较低,规模化扩张受个人时间限制;且客户端 UI 频繁改版可能导致用例维护工作量超出预期(推测)。 |
| 依据 | 数据支持的判断 |
AI 基于仓库公开数据分析生成,含推测成分,不构成收益承诺。
报告会保存到 个人中心
竞品与相似项目 GitHub Search 真实检索
| 项目 | 中文简介 | Stars | 语言 |
|---|---|---|---|
| morluto/rea | 中文介绍暂未生成 Reverse engineer anything with agents, from app behavior dow |
449,648 | TypeScript |
| flutter/flutter | 中文介绍暂未生成 Flutter makes it easy and fast to build beautiful apps for m |
181,110 | Dart |
| Genymobile/scrcpy | 中文介绍暂未生成 Display and control your Android device |
154,508 | C |
| rustdesk/rustdesk | 中文介绍暂未生成 An open-source remote desktop application designed for self- |
128,916 | Rust |
| react/react-native | 中文介绍暂未生成 A framework for building native applications using React |
126,896 | C++ |
| Hack-with-Github/Awesome-Hacking | 中文介绍暂未生成 A collection of various awesome lists for hackers, pentester |
125,184 | - |
以上为通过 GitHub 官方 Search API 检索的相似项目,功能差异与优劣势需进一步人工确认,配置 AI 后可生成对比分析。
项目优势与风险
| 技术成熟度 | 创建于 2022-03-31,近 30 天仍在推送,发布过 100 个 Release |
| 社区活跃 | Star 16,375 / Fork 1,018 / Issue 460(数据支持,可自行核实) |
| 许可证 | Apache-2.0 |
| 主要风险 | 上游项目方向可能变化;同赛道竞争者较多(见竞品表);热度与需求不完全等价 |
安装与使用
快速开始(以仓库 README 为准)
git clone https://github.com/mobile-dev-inc/Maestro.git cd Maestro # 请阅读仓库 README 获取确切安装步骤(依赖、配置、启动命令)
术语说明:Docker=应用容器(把程序和依赖打包运行);API Key=调用外部服务的密钥;Git Clone=把仓库代码下载到本地。常见错误:API Key 未配置 / 端口占用 / 数据库连接失败,多数项目在 README 的 Troubleshooting 章节有说明。