Mobile automation tools compared: Appium, Maestro, Espresso, XCUITest
Four well-known tools can check a phone app. Learn what each one is, how they differ, which questions pick one for your team, and how to run a fair one-afternoon trial.
L1–L4 are part of the Pro pass
L0 Explain simply
Analogy: guides for a trip. A local guide lives in one city. She knows every alley and every shortcut. She works only in that city. A travelling guide works in two cities. He needs a local helper in each, and the trip is a little slower. A printed trip card lists the steps in plain words: go to the market, buy a ticket. Anyone can read it.
Daily List is a to-do list app. It runs on Android phones and on iPhones. Mei, the test lead, asks Tom, the tester, to pick a tool to check the phone app. Tom finds that the tools match the guides.
Espresso and XCUITest are like local guides. Appium is like the travelling guide. Maestro is like the trip card, because its checks are short readable lists.
There is no best tool for every team. Tom learns to ask who will write the checks, who will read them, and on which phones they must run. Then he tries two tools on the same short job.
The picture has a limit. A guide thinks and adapts. A tool only follows its steps, and it breaks when the screen changes.
(SYNTHETIC / TRAINING ONLY: Daily List and every person named in this lesson are invented.)
PLAIN WORDS · 4 in this section
- espresso
- The name of an Android phone test tool.
- appium
- a free tool that drives apps on phones
- maestro
- A phone test tool that reads flow files.
- readable
- able to be read and understood, by people or software
PICTURE IT
The picture is the one the lesson above opens with. The table below shows how each part of it matches the software.
THE REAL JOB Choosing a phone check tool by asking who writes and reads the checks and where they run, then trying two tools on one short job.
- List the facts
- Pick one short journey
- Try two tools
- Score the trial
- Write down why
HOW THE PICTURE MAPS
| In the picture | In the software |
|---|---|
| The local guide who knows one city | A platform-native framework, Espresso or XCUITest |
| The travelling guide with a local helper in each city | A cross-platform tool, Appium, with a driver per system |
| The printed trip card with plain steps | A flow file, as Maestro uses |
| Trying two guides on one short walk | The one-afternoon trial |
| The city streets that change | Screens that change and break the checks |
WHERE THIS PICTURE STOPS
- A guide thinks and adapts. A tool only follows its steps.
- A trip card is short. A long flow with many branches becomes hard to manage.
- A city does not change each week. A phone app often does.
HOOK
Local, travelling or card: try two on one short walk.
REMEMBER IT THIS WAY
A sequence: the real steps, in order.
A native guide for one city, Appium for many, a for plain steps. Try two on one short walk.
| In the trick | What it stands for |
|---|---|
| Local guide who knows one city | A platform-native framework, Espresso or XCUITest |
| Travelling guide with a local helper in each city | A cross-platform tool, Appium, with a driver per system |
| Printed trip card with plain steps | A flow file, as Maestro uses |
TELL A FRIEND
Espresso and XCUITest are native tools for one phone system each, and Appium and Maestro work across both. Ask who writes and reads the checks, then try two tools on one journey.
OFTEN MIXED UP WITH Choosing an automation path: web, API, mobile, visual or codeless. That lesson compares tracks such as web, programs, phone and picture checks. This lesson goes deeper on the phone track and compares four named tools.
PRACTISE AND KEEP
Sources for this topic — 9 sources
- Market practice
Espresso basics (Android Developers) ↗ — Google (Android Developers) · A test finds a view with a matcher, acts on it, and then checks it with an assertion; a missing view or several matching views raises an error (search excerpt, page not opened)
Found through a web search; the page was not opened (search excerpt, page not opened). Version: Web page, no edition number; read as a search excerpt only. Licence terms were not read, so put it in your own words and do not quote it. Open the page and confirm what it says before relying on any detail.
- Market practice
User Interface Testing (Testing with Xcode, Apple Developer archive) ↗ — Apple · Describes three classes (the application, an element, and a query for elements) and says to launch the app in the set-up step so each test starts from a launched app; an old guide, so version details are out of date (search excerpt, page not opened)
Found through a web search; the page was not opened (search excerpt, page not opened). Version: Web page, no edition number; read as a search excerpt only. Licence terms were not read, so put it in your own words and do not quote it. Open the page and confirm what it says before relying on any detail.
- Market practice
Intro to Appium Drivers (Appium documentation) ↗ — Appium project · A driver turns WebDriver commands into the platform's own automation; the Android driver uses Google's UiAutomator2 and the iOS driver is built on XCUITest and a helper called WebDriverAgent (search excerpt, page not opened)
Found through a web search; the page was not opened (search excerpt, page not opened). Version: Web page, no edition number; read as a search excerpt only. Licence terms were not read, so put it in your own words and do not quote it. Open the page and confirm what it says before relying on any detail.
- Market practice
Intro to Appium (Appium documentation) ↗ — Appium project · Appium automates mobile apps, uses the World Wide Web Consortium WebDriver protocol as its interface, and has a client-server design with a driver for each platform (search excerpt, page not opened)
Found through a web search; the page was not opened (search excerpt, page not opened). Version: Web page, no edition number. Licence terms were not read, so put it in your own words and do not quote it. Open the page and confirm what it says before relying on any detail.
- Market practice
Writing Your First Flow (Maestro documentation) ↗ — Maestro · A Maestro flow is a YAML file that starts with the app identifier, then a separator line, then commands such as launching the app and tapping a labelled element; it is run from the command line (search excerpt, page not opened)
Found through a web search; the page was not opened (search excerpt, page not opened). Version: Web page, no edition number; read as a search excerpt only. Licence terms were not read, so put it in your own words and do not quote it. Open the page and confirm what it says before relying on any detail.
- Market practice
Mobile app test automation: choosing a framework and running it at scale (TestingBot) ↗ — TestingBot · Among vendor results that compare native and cross-platform mobile tools; vendor claims are treated as opinion and not as measurement (search excerpt, page not opened)
Found through a web search; the page was not opened (search excerpt, page not opened). Version: Web page, no edition number; read as a search excerpt only. Licence terms were not read, so put it in your own words and do not quote it. Open the page and confirm what it says before relying on any detail.
- Market practice
Testing Flutter apps (Flutter documentation) ↗ — Google (Flutter) · docs.flutter.dev testing overview (unit, widget, integration levels; integration_test cannot drive native UI such as permission dialogs; Patrol recommended). Search excerpt, page not opened. Not claimed: whether Appium or Maestro support Flutter widgets.
Found through a web search; the page was not opened (search excerpt, page not opened). Licence terms were not read, so put it in your own words and do not quote it. Open the page and confirm what it says before relying on any detail.
- Market practice
Install the UiAutomator2 Driver (Appium quickstart) ↗ — Appium project · r8a-appium-quickstart-uiautomator2 (drivers installed through the extension CLI; XCUITest needs macOS); appium-session-capabilities. Search excerpt, page not opened.
Found through a web search; the page was not opened (search excerpt, page not opened). Licence terms were not read, so put it in your own words and do not quote it. Open the page and confirm what it says before relying on any detail.
- Market practice
Session Capabilities (Appium Documentation) ↗ — Appium project · r8a-appium-quickstart-uiautomator2 (drivers installed through the extension CLI; XCUITest needs macOS); appium-session-capabilities. Search excerpt, page not opened.
Found through a web search; the page was not opened (search excerpt, page not opened). Version: Web page, no edition number. Licence terms were not read, so put it in your own words and do not quote it. Open the page and confirm what it says before relying on any detail.
Deepest material on this page: L4 — Standards & sources. Where a topic stops short of implementation depth, that is a deliberate coverage decision, not an oversight — see coverage.