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.

Sander Yazıcıoğlu Published: 3 min read Türkçe oku

Mobile Test Automation Strategy: What to Test, Where and How Often

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

  1. Unit tests (the base, the most): business logic, formatters, validators. Seconds, on every commit.
  2. Component / integration tests: screen logic, API client, data layer. Espresso, XCTest or the framework's own tools.
  3. 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 tierWhereWhen
Unit and componentCI machineEvery commit
E2E smoke (5–10 scenarios)Emulator / simulatorEvery pull request
Full E2E regressionReal device matrixNightly and pre-release
Performance, battery, networkReal devicesPre-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.

Flaky Appium Tests: 8 Root Causes and Lasting Fixes

December 2, 2026 · 3 min read

Flaky Appium Tests: 8 Root Causes and Lasting Fixes

The eight most common reasons Appium tests pass one run and fail the next, from timing and selectors to device state and test data, and how to fix them for good.

AppiumTest automationMobileQA

All articles →