---
title: Maestro 云测试
description: 使用 TestingBot 在 iOS 模拟器、Android 仿真器和真实设备上运行 Maestro 自动化移动测试。
source_url:
  html: https://zh.testingbot.com/features/automation/maestro
  md: https://zh.testingbot.com/features/automation/maestro.md
---

Maestro Cloud——即插即用替代方案 
# Maestro 云测试

在真实的 iOS 和 Android 设备、模拟器和仿真器上运行您的 Maestro 流程。速度比 Maestro Cloud 快 2 倍，成本仅为三分之一，只需一次 CLI 切换。

[免费开始](https://zh.testingbot.com/users/sign_up?utm_medium=feature_page&utm_source=maestro) [申请演示](https://testingbot.com/demo)

Maestro 用户可免费试用 30 天

- **真实设备和SIM卡:** 200+
- **比 Maestro Cloud 更快:** 2倍
- **成本对比 Maestro Cloud:** 1/3

https://www.youtube.com/embed/MMWCkBgXFOU

被世界上一些最具创新性的公司所信任

 即插即用的 CLI 交换 
## Maestro Cloud 的即插即用替代方案

几秒钟内从 Maestro Cloud CLI 切换到 TestingBot。只需将 `maestro cloud` 替换为 `testingbot maestro`

Maestro Cloud

`maestro cloud upload android.apk flows/`

TestingBot

`testingbot maestro android.apk flows/`

### 快速入门

```bash
$ npm install -g testingbot-cli

$ testingbot maestro app.apk ./flows \
    --device "Pixel 8" \
    --deviceVersion "14"
```

### 高级选项

```bash
$ testingbot maestro app.apk ./flows \
    -e API_URL=https://staging.example.com \
    --include-tags "smoke,critical" \
    --real-device
```

### CLI 选项

| 选项 | 描述 |
| --- | --- |
| --device | 设备名称（例如："Pixel 8"、"iPhone 15"） |
| --real-device | 使用物理设备（iOS 或 Android） |
| --deviceVersion | 操作系统版本（例如：Android 用 "14"，iOS 用 "17.0"） |
| --maestro-version | 指定 Maestro 版本（例如："2.0.10"） |
| -e, --env | 将环境变量传递给您的测试 |
| --include-tags | 仅运行带有指定标签的流程 |
| --exclude-tags | 跳过带有指定标签的流程 |
| --name | 测试运行的自定义名称 |
| --locale | 设置设备区域设置（例如："de\_DE"、"fr\_FR"） |

[查看所有 CLI 选项](https://testingbot.com/support/app-automate/maestro/options)

[免费开始](https://zh.testingbot.com/users/sign_up?utm_medium=feature_page&utm_source=maestro)

 工作原理 
## 如何执行 Maestro 云测试？

1

### 上传您的移动应用

通过 TestingBot REST API 或仪表板上传您的移动应用程序（.apk、.aab 或 .zip）。

2

### 上传 Maestro 流程

通过我们的 API 上传您的 Maestro 测试流程。

3

### 运行 Maestro 测试

通过 API 调用执行 Maestro 测试。测试可在多台设备上并行运行，并会随视频录制一起显示在 TestingBot 仪表板上。

 并排 
## TestingBot 与其他 Maestro Cloud 提供商对比

了解为什么 TestingBot 是您 Maestro 测试的最佳选择

| 功能 | TestingBot ✨ 优胜者 | Maestro Cloud | DeviceCloud |
| --- | --- | --- | --- |
| 💰 定价 | 1/3 的成本 | 贵 3 倍 | 按测试运行付费 |
| 📱 真实物理设备（iOS 和 Android） | | | |
| 📲 iPhone/iPad 模拟器 | | | 特定 iOS 版本和设备需额外付费 |
| 🤖 带 Google Play API 的 Android 仿真器 | 完全支持 | 有限 | 额外付费 |
| 💳 应用内购买测试 | Android 可用 | | |
| 🔄 纵向/横向模式 | 完全控制 | 基础 | |
| 🌍 地理位置测试 | 任意位置 | | |
| 🌐 设备区域设置测试 | 20+ 种语言 | 有限 | 9 种语言 |
| 📹 实时视频流 | 实时流媒体 | 仅测试后 | 实时流媒体 |
| 📊 实时日志 | 实时流媒体 | 基础 | 实时流媒体 |
| ⚡ 性能 | 2 倍速度（Mac Silicon + ARM 性能） | 标准速度 | 标准速度 |

[开始使用 TestingBot 测试](https://zh.testingbot.com/users/sign_up?utm_medium=feature_page&utm_source=maestro)

[申请演示](https://testingbot.com/demo) or [查看定价](https://zh.testingbot.com/pricing)

Deep dive: [Maestro Cloud alternative](https://zh.testingbot.com/maestro-cloud-alternative) · [devicecloud.dev alternative](https://zh.testingbot.com/devicecloud-alternative)

 大规模并行 
## 并行测试

在不同设备上同时运行多个 Maestro 测试。通过并行执行扩展测试规模，更快获得反馈。

- 最多可同时进行 100 个 Maestro 会话
- 会话秒速启动，无需设备排队
- 自动重试和智能流分片

[免费开始](https://zh.testingbot.com/users/sign_up?utm_medium=feature_page&utm_source=maestro)

 ![并行测试](https://zh.testingbot.com/assets/features/selenium/parallel-0229d698e59a8a6b92fe50344a08634624f018331ecf8a849ef83cfb35e635a5.png)

 实时洞察 
## 实时控制台

通过详细的日志和洞察实时查看您的 Maestro 测试结果。或使用 API 获取测试结果。

[免费开始](https://zh.testingbot.com/users/sign_up?utm_medium=feature_page&utm_source=maestro)

 ![实时控制台](https://zh.testingbot.com/assets/support/maestro/results-78a1591a85866ec01fa9a661652d9fd4cf0b24989743d73756e8a991157dd7be.png)

Spoof device GPS
20+ regions

美国

英国

德国

法国

西班牙

比利时

澳大利亚

中国

日本

 地理位置测试 
## 地理位置测试

将设备的 GPS 定位伪造到世界任何地方，并从客户居住的任何国家/地区验证 **定位** 、 **地理定位** 和 **店铺规则** 。

 设备云 
## Maestro 设备云

在 iOS 模拟器、Android 仿真器和 Android 真机上进行测试。iOS 16 至 26 版本均可运行测试。Android 10 至 16 版本均可运行测试。

[查看设备](https://testingbot.com/support/app-automate/devices)

 ![Test online on iPhone 17 Pro](https://zh.testingbot.com/assets/devices/160h/44-6b4402c6996d9b1620879bb1123c40a6b36abb064e65dca0a1b3f05286779e9c.webp)

iPhone 17 Pro

 ![Test online on iPhone 17 Pro Max](https://zh.testingbot.com/assets/devices/160h/43-59d7e30684332ed4bf25567cbc09ca942eac46d925ccde8352d3e85812480f7d.webp)

iPhone 17 Pro Max

 ![Test online on iPhone 16 Pro](https://zh.testingbot.com/assets/devices/160h/42-de3704079345026847b739a5b1cf5332595904e54ede66abd988a76fb1e6593c.webp)

iPhone 16 Pro

 ![Test online on iPad (9th generation)](https://zh.testingbot.com/assets/devices/160h/41-70f7d18afde7620063a49a76cbfd088f8b59c742f3a5f4dd4a513dd6ec5c676c.webp)

iPad (9th generation)

 ![Test online on Galaxy S26](https://zh.testingbot.com/assets/devices/160h/40-e917ed08e15b5941fed75855ac457dd1df46b471a2020f081c4d70cefb68f4e8.webp)

Galaxy S26

 ![Test online on Huawei P40](https://zh.testingbot.com/assets/devices/160h/39-32a788c7e66a3da1c88eaaefefd37381f729e510f096b43906968b6907c44c57.webp)

Huawei P40

 持续集成 
## CI/CD 集成

将 TestingBot Maestro Testing 与您的 CI/CD 集成

 ![Jenkins](https://zh.testingbot.com/assets/integrations/jenkins-e586a1c4af833e4c8d38d7b392a4e84bd193f30cae9cf8c9f198a58ec943a1ff.webp)

### [Jenkins](https://testingbot.com/support/integrations/ci-cd/jenkins)

 ![Bamboo](https://zh.testingbot.com/assets/integrations/bamboo-c8fe09a3cb0b74d6055e3aa6607d77720bfe29ff487b8e3cf825138adf634346.svg)

### [Bamboo](https://testingbot.com/support/integrations/ci-cd/bamboo)

 ![TeamCity](https://zh.testingbot.com/assets/integrations/teamcity-7e75cdb835903a4983ad276c41d95e569ceac5be486e96ec1f955029ce5bb319.svg)

### [TeamCity](https://testingbot.com/support/integrations/ci-cd/teamcity)

 ![CircleCI](https://zh.testingbot.com/assets/integrations/circleci-ede029654ff39b60342e4a5bba8fc9a3a49305cc38bda215b7cf8d07e85e0543.webp)

### [CircleCI](https://testingbot.com/support/integrations/ci-cd/circleci)

 ![GitLab CI](https://zh.testingbot.com/assets/integrations/gitlab-e4c0b6db07d07bc0a400f5606e258f4dc8a51b778e97bbfa51d1d531f3cb049a.webp)

### [GitLab CI](https://testingbot.com/support/integrations/ci-cd/gitlab)

 ![GitHub](https://zh.testingbot.com/assets/integrations/github-actions-8436242ad9e15381f84f1a98a10dddce15611087f121d6305782e211942b7842.webp)

### [GitHub](https://testingbot.com/support/integrations/ci-cd/github-actions)

 Secure Tunnel 
## 测试与内部后端通信的应用程序

使用我们的[安全隧道](https://testingbot.com/support/tunnel)，Maestro 流可以访问私有 API、暂存环境以及在本地主机上运行的服务。

端到端加密，无需入站防火墙规则，开箱即用，适用于主流 CI 提供商。

 ![TestingBot secure tunnel for Maestro](https://zh.testingbot.com/assets/features/tunnel-diagram-poster-8c25e19e6fe4f7276a46a96b31a0ad0e07bb4f5bf98dc192d2b70897cfbb1a26.png)

[阅读更多](https://zh.testingbot.com/support/tunnel)

常问问题
## TestBot 上的 Maestro — 常见问题解答

Maestro是什么？为什么要在TestingBot上运行它？

Maestro 是 mobile.dev 开发的开源移动 UI 测试框架。TestingBot 可以在云端运行与本地真实 iPhone、iPad 和 Android 设备相同的 Maestro 流程。只需将`maestro cloud`替换为`testingbot maestro` ，您现有的流程即可直接使用。

TestingBot 真的可以完全替代 Maestro Cloud 吗？

是的。CLI 签名完全相同（应用程序 + 流程 + 标志），因此任何调用 Maestro Cloud 的脚本或 CI 作业都可以改用 TestingBot。YAML 流程、参数和退出代码都相同。

支持哪些 Maestro 版本？

TestingBot 支持所有最新的 Maestro 版本，您可以使用 `--maestro-version` 标志为每个测试指定特定的 Maestro 服务器版本。新版本通常会在发布后的几天内提供。

我可以并行运行 Maestro 流程吗？

是的。TestingBot 的计划包括在真机、模拟器和仿真器上同时运行多达 100 个 Maestro 会话。使用 `--include-tags` 和 `--exclude-tags` 可以智能地进行分片，仪表板会将结果重新汇总。

真机、模拟器还是两者都用？

全部三者都支持。TestingBot 可在真实的 iPhone、iPad、Galaxy 和 Pixel 设备以及搭载 Apple Silicon 芯片的 iOS 模拟器和使用 Google Play API 的 Android 模拟器上运行 Maestro 流程。使用 `--real-device` 标志为每个流程选择合适的设备。

如何查看结果？

在 TestingBot 控制面板中实时查看视频流、分步屏幕截图和 Maestro 日志。可通过我们的[REST API](https://testingbot.com/support/api)以编程方式执行。或者将其导入 Jenkins、GitHub Actions、GitLab CI 以及任何支持 JSON 的 CI 系统。

Maestro 流程能否访问我的测试后端？

安装我们的[安全隧道](https://testingbot.com/support/tunnel)后，您的 Maestro 流即可访问暂存 API、内部服务和本地主机，而无需任何入站防火墙规则。

该设备云是否符合 GDPR / SOC 2 标准？

TestingBot 符合 GDPR 法规，拥有欧盟数据驻留权，并通过了 ISO 27001 认证和 STAR 1 级认证。设备在每次会话之间都会恢复出厂设置，应用上传经过加密，企业版套餐还提供 SAML 单点登录和审计日志功能。

Maestro是什么？

Maestro 是由 mobile.dev 开发的开源移动 UI 测试框架。它允许您编写声明式 YAML 流程，用于驱动原生 iOS 和 Android 应用，以及 Flutter 和 React Native 应用，并内置重试、自动等待和屏幕截图功能。团队使用 Maestro 进行端到端测试、冒烟测试和回归测试。TestingBot 在云端的真实 iPhone、iPad、Galaxy 和 Pixel 设备、模拟器和仿真器上运行相同的 Maestro 流程，并支持并行执行和 CI/CD 集成。

Maestro是免费的吗？

是的，Maestro CLI 和框架都是免费的。Mobile.dev 以 Apache 2.0 许可证发布 Maestro，因此您可以免费安装、编写流程并在本地运行。团队通常面临的成本问题是如何将 Maestro 大规模地部署到真实设备和并行工作进程中，而 TestingBot 提供的固定套餐价格仅为 Maestro Cloud 的三分之一，正好满足这一需求。

Maestro是开源软件吗？

Maestro 是开源的。该框架由 mobile.dev 在 GitHub 上维护，采用 Apache 2.0 许可证，并拥有公开的路线图和活跃的社区。TestingBot 为该开源框架提供补充，它提供了一个托管设备云，支持真实的 iPhone、iPad 和 Android 设备，可进行并行运行并提供详细的报告。

Maestro 支持哪些平台和框架？

Maestro 支持原生 iOS 应用、原生 Android 应用、Flutter 和 React Native，并可在真机、iOS 模拟器和 Android 模拟器上运行。相同的 YAML 流程可在多个平台上运行，仅选择器略有不同。TestingBot 通过标准的 Maestro CLI 公开了所有这些目标，因此您可以为每个流程选择真实的 iPhone、基于 Apple Silicon 的 iOS 模拟器、带有 Google Play API 的 Android 模拟器或真实的 Galaxy 或 Pixel 设备。

Maestro Cloud 的最佳替代方案是什么？

Maestro Cloud（由 Mobile Dev Inc. 运营，网址为 maestro.dev）是 Maestro 流的官方托管云平台。TestingBot 是领先的独立 Maestro Cloud 替代方案，它拥有相同的命令行界面 (CLI)、真实的 iPhone、iPad、Galaxy 和 Pixel 设备，以及 iOS 模拟器和 Apple Silicon Android 模拟器。TestingBot 的固定费用套餐每次运行成本约为 Maestro Cloud 的三分之一，且无任何额外收费。此外，TestingBot 还提供并行执行、覆盖 20 多个国家/地区的地理位置测试、用于预发布环境的安全隧道访问、实时视频流以及开箱即用的 CI/CD 集成。

TestingBot 与 DeviceCloud 相比如何？

DeviceCloud 是一个专注于 Maestro 的云平台，它仅在并行运行的 iOS 模拟器和 Android 模拟器上运行测试流程，不支持真机测试，采用订阅模式，额外运行次数按测试次数计费。TestingBot 则提供真正的真机云平台，除了 iOS 模拟器和 Android 模拟器外，还提供真实的 iPhone、iPad、Galaxy 和 Pixel 设备，采用固定价格套餐，价格透明可预测，并提供实时视频和日志、覆盖 20 多个国家/地区的地理位置测试、覆盖 20 多个地区的设备语言环境测试，以及针对 iOS 模拟器的 Apple Silicon 性能测试。两者都提供与 Maestro 兼容的命令行界面 (CLI)，因此在两者之间迁移只需更改一行代码。

## 更多喜爱 TestingBot 的理由

### 24/7 支持

有疑问？欢迎通过 24/7 应用内客服[聊天](https://zh.testingbot.com#)或[发送电子邮件联系我们](https://zh.testingbot.com/contact/new)。我们随时为您服务！

TestingBot 支持

嘿👋我们能帮上什么忙吗？

I need support

### 超过 14,000 个团队信赖

6M+

测试

120k+

用户

400+

企业

106

国家

[申请演示](https://testingbot.com/demo)

### 开发人员文档

将 TestingBot 集成到您的工作流程所需的一切。浏览适用于 Web 和移动测试的指南、API 参考和 SDK。

- [Maestro Cloud Testing 快速入门教程](https://testingbot.com/support/app-automate/maestro)
- [指定 Maestro 选项](https://testingbot.com/support/app-automate/maestro/options)
- [CI/CD 集成设置指南](https://testingbot.com/support/integrations/ci-cd)

[探索文档](https://testingbot.com/support)

### 企业级安全

STAR Level 1

Certified

GDPR

Compliant

SAML SSO

Single Sign-On

99.9%

Uptime SLA

[访问 TestingBot 信任中心](https://trust.testingbot.com/)

## 准备好开始 Maestro 测试了吗？

请参阅我们的[Maestro 测试文档](https://testingbot.com/support/app-automate/maestro)以了解如何开始。

[开始免费试用](https://zh.testingbot.com/users/sign_up?utm_medium=feature_page&utm_source=maestro)
