Test automation · Mobile · QA · Appium
Mobile Test Automation Strategy: What to Test, Where and How Often
The test pyramid for mobile apps, splitting work between emulators and real devices, choosing a device matrix, test tiers in CI, and what not to automate.

A mobile team's goal of "run every test automatically on every device" sounds great, but in practice becomes a slow, expensive and brittle suite. A good strategy runs each test in the cheapest, fastest place that still gives a correct answer. This is the framework I used when setting up that strategy with customers of a real-device testing platform.
The mobile test pyramid
- Unit tests (the base, the most): business logic, formatters, validators. Seconds, on every commit.
- Component / integration tests: screen logic, API client, data layer. Espresso, XCTest or the framework's own tools.
- End-to-end tests (the top, the fewest): real user journeys with Appium. Slow and expensive; critical flows only.
An inverted pyramid, with most tests written through the UI, is the most common cause of a flaky, slow suite.
Which flows deserve E2E?
The journeys that matter most to the business and are used most:
- Sign-up, sign-in, password reset
- The main conversion flow (purchase, booking, application)
- Payments and subscriptions
- Notification permissions and deep links
- Data migration after an app update
Usually 20–50 well-chosen E2E scenarios catch more bugs than hundreds of careless ones.
Choosing a device matrix
Testing every device is impossible. Build your matrix from data:
- Analytics: the models and OS versions that cover 80% of your users.
- Edge cases: the oldest supported OS, the smallest screen, the device with the least RAM.
- Vendor variety: different Android skins such as Samsung, Xiaomi and Google; at least two major iOS versions.
- Tablets: at least one, if you support them.
A well-chosen matrix of 8–12 devices is enough for most apps.
Emulators versus real devices
| Test tier | Where | When |
|---|---|---|
| Unit and component | CI machine | Every commit |
| E2E smoke (5–10 scenarios) | Emulator / simulator | Every pull request |
| Full E2E regression | Real device matrix | Nightly and pre-release |
| Performance, battery, network | Real devices | Pre-release |
I explain why real devices are irreplaceable in the Appium real-device testing guide.
What not to automate
- Visual design judgement: "does it look right?" is a human question; screenshot-diff tools only help.
- One-off, frequently changing screens: automating a short-lived campaign page rarely pays back.
- Exploratory testing: an experienced tester exploring freely finds bugs automation never will.
Quality metrics
- Stability rate: what share of tests pass on the first try? Track flaky tests separately; I collected their causes in flaky Appium tests: 8 root causes.
- Feedback time: how many minutes until a pull request gets its result? Beyond about 15, developers stop waiting.
- Escaped bugs: how many production bugs could a test have caught? Each one is an idea for a new test.
Conclusion
A mobile test strategy isn't a tool choice; it's a distribution problem: which test runs in which tier, on which device, how often. Protect the pyramid, choose the device matrix from data, and use real devices where they add the most value.


