End to end testing checks a complete user journey in a mobile app, from launch to the result the user wants, on a real device, emulator or simulator, the way a person holding the phone would experience it. E2E testing frameworks are the tools teams write those journeys in, and for native and cross-platform mobile apps the main choices are Appium, Maestro, Detox, Patrol, Espresso and XCUITest. Which one fits depends mostly on what your app is built with and on who will write and maintain the tests, so this guide compares all six on the same criteria and then explains where Cypress and Playwright belong.
To keep the comparison concrete, we will follow one fictional app the whole way through: a travel booking app whose key journey is search for a flight, pick a seat, pay inside a 3-D Secure WebView, and receive a booking confirmation as a push notification. Each framework below reaches some of those steps easily and needs help with others.
What is end to end testing for mobile apps?
For a mobile team, an end to end test installs a build of the app on a device and walks a real journey through it, checking the outcome a user would care about, such as a confirmed booking or a paid order. Android's own fundamentals of testing page calls these "big" tests that verify larger parts of the app at once, such as a whole screen or user flow. The React Native testing overview describes E2E tests as checking the app on a device or simulator from the user's point of view, ideally against a release build, and suggests saving them for vital journeys like sign in, core features and payments.
That scope is what separates it from integration testing for mobile apps, which confirms that two parts (say, the seat map screen and the seat availability API) work together, while an end to end run follows the traveller from the search box all the way to the confirmation alert.
One more distinction saves confusion later. A framework is the thing you write journeys in, as code or YAML. End to end testing tools is a wider phrase that also covers device clouds, which supply the phones, and AI platforms, which help create and maintain tests. Most mobile teams end up using one of each.
What makes mobile e2e testing different from web e2e testing?
A browser test lives inside one tab. A mobile journey keeps stepping outside the app. In our travel example, the first launch triggers a location permission dialog owned by the operating system, the payment step loads a bank's 3-D Secure page inside a WebView, and the confirmation arrives as a notification in the system shade while the app may be in the background.
Mobile suites also have to cope with things web suites rarely meet: a build that must be installed before anything runs, many device models and OS versions, and apps that get paused and resumed by the system. Those realities split mobile e2e frameworks into two families. Espresso and XCUITest run inside the platform's own test runner, close to the code. Appium and Maestro drive the app from outside, through automation and accessibility layers, without changes to the app itself. Detox and Patrol sit in between, built for one cross-platform stack each.
Which e2e testing frameworks do mobile teams use?
Six frameworks cover most mobile end to end suites today. Each summary below uses the framework's own documentation, then says who usually writes the tests and where teams tend to add something else.
Appium
Appium's documentation describes it as an open-source project and ecosystem for UI automation across many platforms, including Android and iOS, browsers, desktop and TV. It works through drivers, such as UiAutomator2 for Android and XCUITest for iOS, over the WebDriver protocol, and has client libraries in several languages, so a QA engineer can write tests in Java, Python, JavaScript or another supported language. The app does not need code changes. Appium suits a QA team that owns Android and iOS journeys in one codebase and can reach system dialogs through the platform drivers. The trade-off teams mention most is setup: drivers, servers and device configuration take time to get right.
Maestro
Maestro's docs call it an open-source UI automation framework for mobile and web, with flows written in declarative YAML and built-in tolerance for flakiness and waiting. It treats the app as a black box, and its supported platforms page lists Android emulators and physical devices, iOS simulators, React Native, Flutter, other hybrid frameworks and web. Maestro is not limited to tapping through screens: flows can run JavaScript, call backend APIs with a built-in HTTP client to seed data or check state, and open URLs and deep links with openLink. Both developers and QA engineers pick it up quickly because the flows read like plain steps. Our Maestro testing guide covers flows in depth.
Detox
Wix maintains Detox, which its getting started page presents as an open-source end to end framework for React Native. Detox takes a gray box approach: it knows what the app is doing internally, waiting for network calls and animations to settle before the next action, which is how it aims to cut flaky failures. Tests are JavaScript, the docs list iOS and Android support, and runs happen on a real device or simulator. It fits best when the React Native engineers who build the screens also own the suite. For setup, matchers and CI, see Detox for React Native e2e testing.
Patrol (and Flutter integration_test)
Flutter ships its own integration_test package, which runs widget-style tests on a physical device or emulator through flutter drive and can also run on Firebase Test Lab. Patrol, from LeanCode, builds on that idea and describes itself as a multiplatform E2E UI testing framework for Flutter that handles native interactions integration_test cannot reach. Its native automation covers permission prompts, notifications, toggling Wi-Fi, mobile data and location, dark mode, and WebViews. Tests stay in Dart, so the Flutter team writes them alongside the app code. For a longer walk through both options, read Flutter integration testing with Patrol and Maestro.
Espresso (with UI Automator)
Espresso is Google's framework for Android UI tests, written in Kotlin or Java and run as instrumentation alongside the app. Its synchronisation with the main thread, plus idling resources for background work, means tests wait for the app rather than for fixed sleeps. Espresso stays inside your app's process, so for steps that leave it, such as a system dialog or another app, Android points developers to UI Automator, which can interact with both user apps and system apps. It is Android only and fits teams where developers own the tests. Our Espresso testing guide shows the two working together.
XCUITest
On iOS, Apple's XCTest framework handles unit, performance and UI tests inside Xcode, and Apple's current documentation presents the UI automation APIs as XCUIAutomation, which lets a test control the app's interface and inspect its state. Teams usually still call this XCUITest. Tests are Swift or Objective-C, run on simulators and devices from Xcode or the command line, and can respond to system alerts. It is iOS only and usually the shortest path for a Swift team. Start with the XCUITest guide, and see the XCTest guide for the layer underneath.
How do mobile e2e testing frameworks compare?
The table below lines the six up on the same columns, using each project's own documentation as checked on November 20, 2026. Where a doc does not say, the cell says so.
| Framework |
Platforms (per docs) |
Test language or format |
How it drives the app |
Reach outside the app |
Usual owner |
| Appium |
Android, iOS, plus browser, desktop and TV |
Java, Python, JavaScript and other client languages |
Black box, via platform drivers over WebDriver |
System UI through UiAutomator2 and XCUITest drivers |
QA team covering both platforms in code |
| Maestro |
Android, iOS (simulators), React Native, Flutter, web |
YAML flows, with JavaScript |
Black box, through UI and accessibility layer |
System interactions, deep links via openLink, HTTP calls from scripts |
QA and developers wanting readable shared flows |
| Detox |
iOS and Android, React Native apps |
JavaScript |
Gray box, synced with app activity |
Not stated on the getting started page; check its docs |
React Native engineers |
| Patrol |
Flutter apps on Android and iOS |
Dart |
Flutter test runner plus native automation |
Permissions, notifications, WebViews, Wi-Fi, data, location, dark mode |
Flutter engineers |
| Espresso |
Android |
Kotlin or Java |
Inside the app's instrumentation |
Pairs with UI Automator for system dialogs and other apps |
Android developers |
| XCUITest |
iOS |
Swift or Objective-C |
XCUIAutomation with XCTest in Xcode |
System alerts through Apple's UI automation APIs |
iOS developers |
Can Cypress or Playwright test mobile apps?
They can test mobile web, but not the native UI of an Android or iOS app. Cypress says it can test anything that runs in a browser. Playwright calls itself an end to end test framework for modern web apps across Chromium, WebKit and Firefox, and it can emulate mobile devices by setting viewport, user agent and touch. Playwright also has experimental Android support limited to Chrome for Android and Android WebView.
That makes both a good fit for a mobile website, a progressive web app, or the browser parts of a journey. In the travel example, Playwright could check the booking site and the link inside a confirmation email, while the native seat picker and push notification still need one of the six mobile frameworks. Plenty of teams run a web suite and a mobile suite side by side for exactly this reason.
How do you choose the best end to end testing framework for your mobile app?
The best end to end testing framework is the one your stack and your test owners can live with every sprint. Five questions usually settle it:
- What is the app built with: native Kotlin, native Swift, React Native, Flutter, or a hybrid shell around web content?
- Who writes and maintains the tests: app developers in the app's own language, or a QA team working in YAML, Java or Python?
- Do you need Android and iOS covered by one suite, or is a suite per platform acceptable?
- How far outside the app must tests reach: permission prompts, notifications, WebViews, other apps?
- Where will runs happen: local devices, emulators and simulators, a device cloud, or a CI pipeline on every pull request?
| If your app and team look like this |
Start with |
Add when you need |
| Native Android, developers own tests |
Espresso |
UI Automator for system dialogs and other apps |
| Native iOS, Swift developers own tests |
XCUITest |
A cross-platform suite if Android shares the same journeys |
| React Native, JavaScript engineers own tests |
Detox |
Appium or Maestro for OS-level steps the suite cannot reach |
| Flutter, Dart engineers own tests |
Patrol, or integration_test for simple flows |
Maestro if QA wants YAML flows outside the codebase |
| QA team covering Android and iOS in one suite |
Appium (code) or Maestro (YAML) |
A device cloud for wider device and OS range |
| Mobile web or PWA |
Playwright or Cypress |
A mobile framework once a native app ships |
Back to the travel app. If it were built in React Native, the team might keep Detox for fast checks on every pull request and add a cross-platform suite for the notification and WebView payment steps that matter on release day. A Flutter version of the same app might lean on Patrol for the permission prompt and the confirmation alert.
Whatever the choice, every framework shares two limits. A suite only covers the journeys someone thought to write, and its locators need upkeep each time a designer moves a button or renames a screen. Teams that re-run the same journeys on every build, as most regression testing tools encourage, feel that upkeep first.
Where does QApilot fit alongside your e2e framework?
QApilot is an AI-native mobile testing platform that runs next to the framework a team already uses and next to its device cloud; it does not replace either. Its Test Case Recorder captures taps, swipes and text input on Android and iOS as editable steps with a screenshot each, and can switch between Native and WebView context for hybrid screens like a 3-D Secure page. Shared test cases can run on both platforms with platform-specific steps where the screens differ.
When a locator breaks after a small UI change, AI auto-healing tries the element ID, then XPath, then a visual match, then recorded coordinates. Healed steps are tagged "AI Assisted" in the report, and a person clicks Update XPath before the new locator is saved.
On Android, a crawler explores the app, records what it finds as test steps and builds a knowledge graph of app flows and screens, which crawl reports let teams review and promote into regression suites. In the travel app, it might surface an Android route to seat selection nobody scripted, which the team reviews before keeping. The docs are clear that explicit cases are still needed for business outcomes such as a confirmed payment, and the approach fits the wider idea of autonomous testing rather than replacing test design.
Test plans can be exported as Appium code, run on local devices, BrowserStack, Sauce Labs or a private device farm, scheduled once or daily, and triggered from CI through a downloaded .sh or .bat script.
E2E testing frameworks FAQ
What is the best e2e testing framework for mobile apps?
No single framework wins for every team. Pick by stack and owner: Espresso for native Android developers, XCUITest for Swift teams, Detox for React Native engineers, Patrol or integration_test for Flutter, and Appium or Maestro when one QA group needs a single suite across Android and iOS.
Is Maestro only for UI testing?
No. Maestro works through the screen and accessibility layer with YAML flows, but those flows can also execute JavaScript, send HTTP requests to prepare data or confirm what the backend recorded, and open deep links. Its documentation lists Android, iOS, React Native, Flutter and web apps.
Can Cypress or Playwright test native mobile apps?
Not the native interface. Both target code running in a browser. Playwright adds mobile browser emulation and experimental coverage of Chrome for Android and Android WebView, yet a native Android or iOS screen still needs Appium, Maestro, Espresso, XCUITest or a similar mobile framework.
What is the difference between end to end testing and integration testing?
Integration testing confirms that a few connected pieces cooperate, for example a checkout screen and the pricing service behind it. End to end testing follows a whole user journey through the installed app, from opening it to the final outcome, on a phone, emulator or simulator.
Pick by stack and owner, then cover what the suite misses
Choose the e2e framework that matches your app's stack and the people who will maintain it, keep the journeys few and vital, and run them on real devices before release. Then add a layer for the routes nobody scripted and the locator changes that would otherwise break the suite between releases.