Mobile Quality at Device Scale
Eight guides to mobile test-layer strategy, Appium architecture, selectors, device matrices, deep links, permissions, performance, and AI-assisted triage.
Series Chapters (8)
Build a Mobile Test Strategy by Fidelity and Cost
A mobile suite that runs every check on a cloud phone pays the most for the least evidence. This guide splits one sign-in journey across host tests, Compose and SwiftUI screen tests with fakes, Espresso and XCUITest on managed emulators and simulators, and a few release-build journeys on physical devices. It covers what Robolectric and simulators cannot observe as documented, why out-of-process drivers like UI Automator and Appium matter for minified builds, a placement table with triggers and flake notes, and how to give every nightly device run an owner and a gate.
Understand Appium 3 Drivers, Plugins, and Boundaries
A global Appium install is not an environment: drivers, plugins, the device-side servers they ship and the platform toolchain all version separately. This guide covers what Appium 3 changed for setups (Node 20.19, mandatory insecure-feature prefixes, session discovery), why a project package.json with a lockfile beats APPIUM_HOME alone, why installed plugins stay inactive until named, a loopback-bound .appiumrc.json with scoped allow and deny lists, per-platform capability files, and a CI gate that parses appium driver list --installed --json and runs driver doctor.
Debug Appium Selector Failures That Differ on Android and iOS
A selector that taps the wrong row on Android can throw NoSuchElement on iOS for the same product list. This guide dumps the page source from the failing step on both platforms and separates four causes: rows a LazyColumn or lazy SwiftUI stack never created, duplicate matches, identifiers that never reach the accessibility tree (including the UiAutomator2 id prefix and the iOS label fallback), and stale handles after scrolling. Each gets a discriminating check and a WebdriverIO fix built on Compose testTag and SwiftUI accessibilityIdentifier.
Choose a Device Matrix That Matches Real Risk
A bigger device list often pays several times for the same screen, OS and memory risk. This guide builds a matrix whose rows are named failures rather than handset models: a low-memory Android row backed by the user-perceived LMK rate, a foldable row for configuration-change sequences, a tablet row that Android 16's ignored orientation locks made mandatory, and newest- and oldest-OS iOS rows constrained by what Xcode 27 can still simulate. It covers what usage data Play Console and App Store Connect actually expose, a Crashlytics BigQuery query for crash concentration, the matrix as Gradle Managed Devices groups and xcodebuild destinations, why recreate() does not test process death, and when to retire a device versus a row.
Test Mobile Deep Links and Universal Links End to End
A deep link test that names the target app never exercises the operating system's handoff, so a broken assetlinks.json or apple-app-site-association file passes. This guide checks both association files with a script that refuses redirects, routes links through the OS with adb, Appium and XCUISystem.open, runs every case cold and warm because Android's onNewIntent and iOS's scene(_:continue:) are separate paths, and tests a Swift parser against lookalike hosts, encoded slashes and duplicate query values. It ends with an order link checked signed out, in the wrong workspace, for a missing order and after an upgrade.
Automate Mobile Permissions Without Brittle System UI
Tapping the camera prompt in every test couples a suite to OS copy and to whatever earlier runs left behind. This guide maps the states each platform actually exposes, including Android's USER_SET, USER_FIXED and policy-locked denials and iOS's restricted status, and moves the state-to-screen decision into host tests. It seeds Android with pm grant, revoke and set-permission-flags (with a read-back, because pm can exit 0 without changing anything), resets the iOS camera with resetAuthorizationStatus, injects the remaining iOS states through a debug-only seam, and keeps exactly one real-prompt receipt per platform.
Measure Mobile Performance as a User Journey
A fast API does not make a fast first screen, and a warm-start average from a development phone hides the slow runs users complain about. This guide measures one journey, cold start to a usable home feed, with Macrobenchmark on a physical low-memory Android device and XCTest launch, hitch and memory metrics on iOS. It covers why Android vitals cannot see time to full display, why an XCTest launch loop is warm by Apple's own definition, counting real network requests with an OkHttp network interceptor, shaping the network and waiting out thermal throttling, and a script that gates on p50 and p95 per device class.
Use Appium MCP Without Confusing Exploration and Tests
An agent that walks a mobile flow through Appium MCP has proved that one path existed once, which is not a regression test. This guide lists what appium-mcp 1.97.1 exposes (32 tools, with annotations that are per tool and only hints), builds a least-privilege exploration server with createAppiumMcpServer, a tool allowlist and a beforeCall guard that blocks uninstalls, data clears and model-supplied capabilities, and records every call to a JSONL transcript. It then turns an onboarding exploration into a review record and a WebdriverIO spec with explicit state setup, including why iOS needs launchApp rather than activateApp after clearApp.