Home icon

Run Maestro tests on real Android devices using AWS Device Farm

DevOps & Developer Productivity Blog



This article explains how to run Maestro mobile UI tests on real Android devices using AWS Device Farm's custom test environment feature.

  • Maestro is a YAML-based mobile testing framework that works with AWS Device Farm's custom test environments
  • Device Farm provisions real Android devices with Amazon Linux 2023 hosts and ADB connectivity
  • Test spec installs Amazon Corretto 21 (Java) and Maestro CLI during the install phase
  • Maestro flows run against connected devices and output screenshots, videos, and logs to Device Farm
  • Pre-install Maestro driver APKs as Extra Apps to handle restrictive Android skins like MIUI
  • Grant background permissions via ADB appops commands to avoid installation prompts
  • Integrate with CI/CD pipelines using AWS CLI, SDKs, or the official GitHub Action
  • Pay per device minute or use unlimited testing flat-rate model for cost optimization

This approach enables teams to run automated end-to-end tests across diverse real devices, catching device-specific issues that emulators miss while integrating seamlessly into CI/CD workflows.



Go to article

The AWS News Feed is currently looking for gold sponsors. If you want to support the AWS community and reach a large audience of AWS professionals, consider sponsoring the AWS News Feed.

Related articles

Nov 11
2026
Test your applications against AWS locally with AWS Emulator
Nov 10
2026
How TCS built an agentic test orchestrator with Amazon Bedrock AgentCore
Nov 11
2026
AWS Emulator is now available for building and testing AWS applications locally
Nov 10
2026
Automating compliance testing with Fisent, Launchpad.io, and Amazon Bedrock

The AWS News Feed is currently looking for silver sponsors. If you want to support the AWS community and reach a large audience of AWS professionals, consider sponsoring the AWS News Feed.