QA Interview Hub · Knowledge base · Quizzes · Українська

QA Fundamentals

Mobile testing

Manual mobile app testing for a QA Engineer

Mobile testing is the business checks plus a layer of device and OS behaviour. A QA checks interruptions, the background and process death, the network, permissions, an update over the old version with data, and deep links. Before release the app is also run on a real device, not only on an emulator.

Manual mobile app testing is the same business checks as on the web plus a layer created by the device and the operating system: interruptions, the background, permissions, the network, different builds and devices. Below is what to check and what to use. Mobile test automation (Appium) has its own topic on the site and is not covered here.

What the mobile environment adds.

  • Interruptions. A call, SMS, push, screen lock or switching to another app in the middle of an operation. The question is always the same: is the state kept or must the user start over;
  • Network. Wi-Fi, mobile data, offline, switching between them, a slow connection. The Android emulator can simulate network speed, but a real switch is better checked on a device;
  • Screen and input. Rotation (by default Android destroys and recreates the activity), different sizes, gestures, the on-screen keyboard, dark theme, a larger font;
  • OS permissions. Camera, location, notifications and others: the states "granted", "denied" and "revoked" change the app’s behaviour;
  • Devices. OS versions, vendors and skins, memory size. The same defect may reproduce only on some devices.

Builds and distribution. An Android app is published to Google Play as an Android App Bundle (AAB): that is a publishing format, and Google Play itself generates and signs the APKs for specific devices. New apps on Google Play have had to be published as AAB since August 2021. A partial install of "split" APKs outside Google Play (sideloading) fails on Google-certified devices and on Android 10 and newer, so a tester should take the build through the channel the team provides. An iOS app is built as an IPA. Pre-release builds are given to testers without publishing: Firebase App Distribution accepts APK, AAB and IPA and invites testers by e-mail, and on iOS there is TestFlight: the tester installs the TestFlight app and accepts an invitation or a public link. A build in TestFlight can be tested for up to 90 days, and for external testers the first build may go through an Apple review, so this goes into the plan.

Emulator or real device. An emulator quickly covers Android versions and screen sizes and can simulate calls, SMS, location, network speed, rotation and sensors. Still, the Android documentation advises always testing on a real device before release: real sensors, performance, the vendor skin and a real network are not fully reproduced. In practice: daily checks on an emulator, and the critical scenarios and the release run on several real devices from different vendors.

Permissions. Android asks for dangerous permissions at runtime, when the user starts a feature. What to check:

  • the explanation before the system dialog, if there is one, and that it can be cancelled;
  • denial: the feature that needs the permission is disabled with a specific explanation, the rest of the app works, and the user is not pushed to change their mind;
  • repeated denial: if the user taps "Deny" more than once, the system dialog no longer appears ("don’t ask again"). After that the permission can be changed only in settings, and the denial test has to be repeated from a clean state;
  • revocation in settings: the app checks the permission every time, not once; revoking turns access off and the app process is terminated;
  • a one-time permission ("Only this time" for the camera, microphone and location from Android 11): access lasts while the app is on screen and for a short time after it goes to the background, and the request is repeated the next time the app is opened;
  • auto-reset: for apps with targetSdk 30 and higher the system resets sensitive permissions if the app has not been used for a few months.

The permission state is visible with adb shell dumpsys package PACKAGE_NAME: the USER_SET flag marks one denial and USER_FIXED a permanent one. The dialog can be brought back for a repeat test with adb shell pm clear-permission-flags PACKAGE_NAME PERMISSION user-set user-fixed. Be careful with adb shell pm install -g: it grants all permissions at install time, so you will not see the dialogs or the denial scenarios.

The background and process death. While an app is in the background, the system tries to keep its process, but it may destroy it at any time to free memory, and then any state held only in memory disappears. The user expects to see the screen as they left it: state that survives process death is kept in saved state or locally. How to reproduce it without looking for a device low on memory: in developer options turn on "Don’t keep activities" (it destroys every activity as soon as the user leaves the screen) or limit the "Background process limit". Scenario: fill in a form, go Home, open another app, come back.

Updates and local data. Users update over the old version, so this is a separate test: install the previous build, accumulate data (notes, settings, drafts, a login), update without uninstalling and check the data is intact and the new fields work. A clean install of the new version does not run the migration, and uninstalling wipes the data. If a migration path for the local database is missing, Room throws an IllegalStateException, and fallbackToDestructiveMigration permanently deletes all data. Updates from several earlier versions are checked separately, as well as from a state where the user was logged out or had an expired token.

Deep links. Android has three kinds: custom schemes (example://…), web links (http/https) and App Links, i.e. verified web links that the system opens in the app without a choice. From Android 12 an unverified web link opens in the browser by default. Check: the app installed / not installed, the user logged in / not, a link to content that does not exist, returning with the Back button. A quick launch from the console: adb shell am start -W -a android.intent.action.VIEW -d "example://gizmos" PACKAGE_NAME. The documentation recommends that a link leads straight to the content, without intermediate prompts.

App traffic through a proxy. To see HTTPS requests, the proxy’s root certificate is installed on the device. But apps with targetSdk 24 and higher trust only system CAs by default, so they ignore the user certificate (the browser has its own rules, so its traffic is visible). For debugging you ask developers for a debuggable build whose network security config adds user trust under debug-overrides: those settings apply only when android:debuggable is true. If the app uses certificate pinning (pin-set), the test trust from debug-overrides bypasses pinning, and in a release build you will not be able to intercept the traffic. That is good, not a defect: do not ask to turn pinning off in production.

A bug report gets, besides the usual fields, the device model, the OS and app build versions, the network, the permission state and logs (see the card about a mobile bug report in the bugs chapter).

Common mistakes. Testing only a clean install of the latest build; checking only on an emulator; granting all permissions once and never returning to denial; not checking a return from the background; treating browser traffic as the app’s traffic.

How to answer in an interview. Short version: "Besides the business logic I check interruptions, the background and process death, the network, permissions, an update over the old version with data and deep links, and a real device before release". At middle level add specifics: how you reproduce process death, what you do with "don’t ask again", and why a fresh install does not test the migration.