Android testing is the process of checking that an Android app works correctly, performs well and stays secure across the devices, OS versions, screen sizes and network conditions your users actually have. It combines automated and manual tests at several layers, from single functions up to full user journeys, and it is only complete once the app has run on real devices, not just emulators.
Android is the most fragmented mainstream mobile platform. It held about 67.6% of worldwide mobile OS usage in August 2026, spread over thousands of device models and many OEM-customized builds of the OS. That is why a test run on one phone is not evidence the app works on the next.
Why Android testing matters
- Fragmentation. Screen sizes, chipsets, memory, OEM skins and OS versions all change how an app behaves.
- Store visibility. Google tracks quality in Android vitals. The bad-behavior thresholds are a 1.09% user-perceived crash rate and a 0.47% user-perceived ANR rate overall, and 8% per phone model. Exceeding them can reduce your app’s visibility on Google Play.
- Platform rules change yearly. Google Play requires new apps and updates to target Android 16 (API level 36) or higher, which brings behavior changes that need testing.
- Reviews and retention. Crashes and slow screens turn into one-star reviews and uninstalls.
Related: Consumer experience and its importance in app testing.
Types of Android testing
| Type | What it checks | Typical tools | Run on |
|---|---|---|---|
| Unit | One class or function in isolation | JUnit, Robolectric | Local JVM |
| UI / functional | Screens and user journeys behave as specified | Espresso, Compose testing, UI Automator | EmulatorDevice |
| Integration | Components and services work together | Instrumented tests | Device |
| Regression | New changes did not break old features | Automated suites in CI | EmulatorReal devices |
| Compatibility | Behavior across OS versions, OEMs, screens | Real device cloud | Real devices |
| Performance | Speed, memory, battery, startup, jank | Macrobenchmark, Perfetto, device cloud metrics | Real devices |
| Security | Data storage, permissions, network, tampering | MASTG-based tests, SAST/DAST tools | DeviceBuild |
| Usability | How intuitive the app feels | Moderated sessions, beta tracks | Real users |
| Accessibility | Works with TalkBack, scaling, contrast | Accessibility Scanner, manual TalkBack | Real devices |
No testing types match this filter.
Rule of thumb: use local tests and emulators for fast feedback while you build, then confirm anything that depends on hardware, OS version, or manufacturer behavior on real devices before release.
Google’s own testing guidance splits tests into local tests that run on your workstation or CI machine and instrumented tests that run on a device or emulator. Run both.
Performance testing, in short
Performance testing measures startup time, frame rendering, memory, battery and behavior on weak networks. Jetpack Macrobenchmark covers end-to-end flows such as cold startup and scrolling, and Microbenchmark covers small code paths. Real devices matter most here, because emulators do not reproduce real thermal and memory behavior. The full method, metrics and tools are in our guide to Android app performance testing.
Security testing, in short
Security testing checks permission handling, local data storage, network traffic and resistance to tampering. The OWASP Mobile Application Security project provides the MASVS standard and the MASTG testing guide for this. Details are in our guide to Android app security testing.
Android testing tools
Pick tools by layer rather than by popularity:
| Layer | Tools |
|---|---|
| Local unit tests | JUnitRobolectric |
| In-app UI tests | Espresso (Views)Compose testing (Jetpack Compose) |
| Cross-app UI flows | UI AutomatorAppium |
| End-to-end, cross-platform | Appium 3Maestro |
| Devices to run on | Emulators locally, then a real device cloud such asPcloudyorFirebase Test Lab |
See the full comparison in Best Android Testing Tools in 2026.
Emulators vs real devices
Emulators are free and fast, so they suit early development and quick CI checks. They do not reproduce real devices’ behavior. Real devices do, which is why release testing belongs on them. A real device cloud gives you that hardware without buying and maintaining a lab. For the trade-offs, read real devices vs emulators.
Where an emulator genuinely wins: speed to start, zero cost and easy parallelism for logic-level checks. Use it there and move to real devices for anything that depends on hardware or network.
How to test an Android app on a real device with Pcloudy
- Open MyData and upload your APK
- Choose the device (or several) you want from the real device list and start a session.
- Run through the user journey: tap, swipe, rotate, switch networks.
- For performance runs, select App Performance Testing, start recording, and mimic the journey.
- Open the Reports section to review the performance dashboard, logs, screenshots and recordings.
- Fix, re-upload and repeat. For repeatable runs, automate with Appium or Espresso.
Want to try it? Start free on real Android devices.
How to get started: a practical path
- List your critical journeys (sign-up, login, checkout, the feature that earns revenue).
- Write unit tests for logic first. They are cheapest to run.
- Add UI tests for the critical journeys with Espresso or Compose testing.
- Pick a device matrix from analytics: top devices and OS versions in your user base first.
- Run on real devices before every release, and nightly if you can.
- Track Android vitals after release and feed regressions back into your tests.
Android testing best practices
- Automate the repeatable, keep humans for the exploratory. Automate regression, smoke and data-driven checks. Leave usability and edge-case exploration to people.
- Keep scripts modular. Page Object Model, separated test data and reusable helpers cut maintenance when the UI changes.
- Integrate with CI/CD. Trigger tests on each commit or pull request in GitHub Actions, Jenkins or GitLab.
- Test the hostile conditions. Weak networks, low memory, interrupted sessions, permission denials, rotation and dark mode.
- Capture evidence. Logs, video and screenshots turn “cannot reproduce” into a fix.
- Treat flaky tests as bugs. Quarantine and fix them rather than retrying until green.
FAQs
What is Android testing? Android testing is the process of verifying an Android app’s functionality, performance, security and compatibility across devices, OS versions and network conditions before and after release.
What are the main types of Android testing? Unit, UI or functional, integration, regression, compatibility, performance, security, usability and accessibility testing. Most teams combine several.
What is the difference between local tests and instrumented tests? Local tests run on your computer’s JVM and are fast. Instrumented tests run on an emulator or a real device and can exercise the real Android framework.
Which tools are used for Android testing? JUnit and Robolectric for unit tests, Espresso and Compose testing for UI tests, UI Automator and Appium for cross-app flows, Maestro for quick flows, and a real device cloud for device coverage.
Do I need real devices for Android testing? Yes, at least before release. Emulators cannot reproduce OEM changes, real sensors, carrier networks or thermal behavior.
How many devices should I test on? Start with the top devices and OS versions in your analytics, then widen. There is no universal number.
How is Android testing different from iOS testing? Android has far more device and OS fragmentation, so compatibility testing weighs heavier. See Android vs iOS testing differences.
What are Android vitals? Android vitals are quality metrics Google collects for apps on Google Play, including crash rate and ANR rate. Exceeding the bad-behavior thresholds can reduce your visibility on the store.
Can Android testing be fully automated? No. Automation covers repeatable checks well, but usability, exploratory and some accessibility testing still need people.
Conclusion
Android testing is a layered discipline: unit tests for logic, UI tests for screens, end-to-end tests for journeys, and real-device runs for everything hardware or network dependent. Start from your critical journeys, pick tools by layer, and validate on real devices before each release. Try Pcloudy free to run your first session in minutes.
Related reading
- Best Android Testing Tools: the next step after this guide, covering tool selection.
- Real Device Cloud vs Emulator for Mobile App Testing: the choice every Android team has to make.
- Android Emulators: Features, Benefits, Limitations: covers the emulator side in depth.
- Android App Security Testing: the same kind of drill-down, with the same live check needed.
- Android vs iOS Testing Differences: covers fragmentation. Same live check needed.
- Mobile App Performance Metrics for QA Teams: the metrics side. The slug is inferred from the filename, so verify it.
- Appium 2 Migration Guide: for readers moving into automation.