Developer Device Platform 概览

Developer Device Platform 是新一代商业级远程设备编排套件。Developer Device Platform 旨在提供企业级云原生产品。它充当托管式设备农场,供开发者使用远程基础架构构建和测试应用,并与 Google Cloud原生集成。

如果您要从 Firebase Test Lab 迁移到 Developer Device Platform,请参阅我们的迁移指南、命令和标志转换以及 AI 智能体的迁移技能。

Developer Device Platform 提供:

  • 设备目录 - 使用设备目录在 Developer Device Platform 中查找、排序和深入了解设备。
  • Device Run - 在 Developer Device Platform 实验室中的设备上运行测试和可执行文件,并在 Google Cloud中查看结果。
  • Device Streaming API - 连接到远程实体 Android 设备,并与您的应用进行交互,就像该应用已连接到您的本地机器一样。
  • 智能体技能 - 让编码智能体能够为您查找、预留和操作设备。

主要平台产品

在预览阶段,该平台仅限于部分核心服务,并面向 Android 应用开发者提供(即将支持 iOS):

  • Device Run API(AutomationJob 服务):专为自动化批量测试(例如插桩测试和 JUnit 测试)而设计。它使用会话、作业和执行的三层层次结构来编排设备分配、测试运行和结果报告。
  • Device Streaming API:建立交互式连接,让开发者能够远程实时控制实体设备和虚拟设备的屏幕,并通过 Android 调试桥 (ADB) 进行通信。
  • Agentic Workflows(设备操作服务):Developer Device Platform 的一大差异化优势。它在 GitHub 上引入了开源 Developer Device Platform Agent Skill,使 AI 编码智能体(例如 Clockwork Code 和 Anti-gravity)能够以编程方式管理远程设备会话、运行测试、截取屏幕截图和执行 shell 命令。

Developer Device Platform 的优势

借助 Developer Device Platform,开发者可以在Google Cloud中运行和监控测试:

  • 平台集成:Developer Device Platform 已集成到 Google Cloud 生态系统中,其文档按照Google Cloud 标准进行整理,并托管在 cloud.google.com 下。
  • 工具和 API:您可以通过 Google Cloud CLI 中新引入的 device-run 命令或直接调用 Device Run API 和 Device Streaming API 来访问 Developer Device Platform。
  • 发布时支持的平台:在初始发布阶段,Developer Device Platform 仅支持 Android 应用开发者,后续计划支持 iOS。
  • 结算:Developer Device Platform 与 Google Cloud 结算相关联,这意味着开发者需要一个付费 Google Cloud 账号,费用由用户/开发者直接支付。

主要编排优势

通过将设备分配和测试作业封装在单个服务中,用户可以利用 Developer Device Platform 的高级编排功能:

  • 硬件不稳定性缓解:如果分配的设备遇到连接中断或硬件故障,后端会自动获取其他设备,重新启动测试,并无缝返回成功的重试结果。
  • 大规模并行执行:内置对智能分片(使用历史执行数据根据目标运行时长对测试套件进行分区)和统一分片的支持,可缩短大规模测试套件的端到端执行时间。

后续步骤

请参阅快速入门,为 Developer Device Platform 设置环境。然后,按照每个工作流的说明操作: