Skip to content
AndroidTesters

Mobile QA training

The mobile part of QA: what web testing does not teach

Phones lose connection, kill apps in the background, rotate, enlarge fonts, deny permissions and switch languages. Most mobile-only bugs hide in these moments. The Academy has a short course for each of them.

Typical mobile bugs

Real phone or simulated?

Rotation, TalkBack, font size, permissions and reinstalling need your real phone; network failures and slow responses are simulated inside the Lab so you never have to break your connection.

TC-16 · Network — online, offline, slow, timeout and reconnection

TC-16-01 · simulated in the Lab

Online

With a normal connection, save a note to the demo server and check that it is saved once and quickly.

  1. 1. Open the network kit and set the mode to Online.Expected: The mode shows Online.
  2. 2. Type 'Online note' and tap Save to server.Expected: 'Saved' appears within about a second.
  3. 3. Look at the server list.Expected: 'Online note' is listed once with status Saved.

Expected result: Online, a save succeeds quickly and creates exactly one record.

TC-16-02 · simulated in the Lab

Offline

Save while the Lab is offline. The app must say the note is waiting, never that it reached the server.

  1. 1. Set the mode to Offline.Expected: An offline banner appears.
  2. 2. Type 'Offline note' and tap Save to server.Expected: A message says there is no connection and the note will be sent later.
  3. 3. Look at the server list.Expected: 'Offline note' shows Pending, not Saved.

Expected result: Offline saves are shown as pending; the app never claims they reached the server.

TC-16-03 · simulated in the Lab

Slow network

Save on a very slow connection. The user must see progress, and impatient taps must not cause trouble.

  1. 1. Set the mode to Slow.Expected: The mode shows Slow.
  2. 2. Type 'Slow note' and tap Save to server.Expected: A progress indicator appears and the Save button is disabled.
  3. 3. Wait up to 15 seconds.Expected: 'Saved' appears and the indicator stops.
  4. 4. Look at the server list.Expected: 'Slow note' is listed once.

Expected result: A slow save shows progress, ends with a result and creates one record.

TC-16-04 · simulated in the Lab

Timeout

Save while the demo server does not answer. The app must stop waiting and offer a retry.

  1. 1. Set the mode to Timeout.Expected: The mode shows Timeout.
  2. 2. Type 'Timeout note' and tap Save to server.Expected: A progress indicator appears.
  3. 3. Wait up to 20 seconds.Expected: The indicator stops and a message says the server did not answer, with Retry.
  4. 4. Set the mode to Online and tap Retry.Expected: 'Saved' appears and the note is listed once.

Expected result: A timeout ends with a clear message and a working retry.

TC-16-05 · simulated in the Lab

Reconnection

Queue notes while offline, go online and check that everything is sent by itself.

  1. 1. Set the mode to Offline and save 'Queued 1' and 'Queued 2'.Expected: Both show Pending.
  2. 2. Set the mode to Online and wait up to 10 seconds.Expected: Both notes change to Saved without any tap.
  3. 3. Look at the pending counter.Expected: It shows 0.

Expected result: After reconnecting, queued items are sent automatically and the queue is empty.

TC-16-06 · needs a real phone action

Real airplane mode

Use your phone's real airplane mode instead of the simulator and check that queued notes go out once you are back online.

  1. 1. Set the kit's mode to 'Real connection'.Expected: The kit follows the phone's real network state.
  2. 2. Turn airplane mode on from Quick Settings.Expected: The kit shows an offline banner.
  3. 3. Save 'Airplane note'.Expected: It shows Pending.
  4. 4. Turn airplane mode off and wait up to 30 seconds.Expected: 'Airplane note' changes to Saved and the pending counter shows 0.

Expected result: With the real connection back, queued notes are sent automatically.

TC-18 · Application Lifecycle — background, foreground, recreation, lock and stop

TC-18-01 · needs a real phone action

Background

Send the Lab to the background in the middle of a task and check that it keeps your state.

  1. 1. Open the lifecycle kit, tap + until the counter shows 5 and type 'keep me' in the note field.Expected: Counter 5, note 'keep me'.
  2. 2. Press Home.Expected: The Lab goes to the background.
  3. 3. Wait 10 seconds, then open the Lab from the recent-apps screen.Expected: The lifecycle kit is shown.
  4. 4. Check the counter and the note.Expected: Counter 5 and 'keep me' are still there.

Expected result: After a short trip to the background the screen is exactly as you left it.

TC-18-02 · needs a real phone action

Foreground after a longer pause

Leave the Lab in the background for a minute and come back. It must continue without asking you to start over.

  1. 1. In the lifecycle kit set the counter to 7.Expected: Counter 7.
  2. 2. Press Home and stay on the home screen for at least 60 seconds.Expected: The Lab is in the background.
  3. 3. Open the Lab from the recent-apps screen.Expected: The lifecycle kit is shown without a welcome or link screen.
  4. 4. Check the counter.Expected: It still shows 7.

Expected result: After a minute in the background the Lab continues where you were.

TC-18-03 · simulated in the Lab

Process recreation (simulated)

Android can end a background app to free memory and recreate it later. The Lab simulates this; check that your state survives.

  1. 1. In the lifecycle kit set the counter to 4 and type 'after recreation' in the note field.Expected: Counter 4, note 'after recreation'.
  2. 2. Tap 'Simulate process recreation'.Expected: The Lab tears its screen down and rebuilds it from saved state, the way Android rebuilds an app after memory pressure (a simulation: the process itself keeps running).
  3. 3. Check the counter and the note.Expected: Counter 4 and 'after recreation' are restored.

Expected result: After a (simulated) process recreation the screen state is restored.

TC-18-04 · needs a real phone action

Screen lock

Lock the phone during a task and unlock it again. The Lab must keep your state.

  1. 1. In the lifecycle kit set the counter to 3 and type 'locked' in the note field.Expected: Counter 3, note 'locked'.
  2. 2. Press the power button to lock the screen and wait 10 seconds.Expected: The screen is off.
  3. 3. Unlock the phone.Expected: The lifecycle kit is shown directly.
  4. 4. Check the counter and the note.Expected: Counter 3 and 'locked' are still there.

Expected result: Locking and unlocking the phone keeps the Lab's screen state.

TC-18-05 · needs a real phone action

Force stop

Force-stop the Lab from Android Settings. Saved data must survive; unsaved typing may be lost, which is normal.

  1. 1. In the lifecycle kit set the counter to 4 and tap 'Save counter'. Then tap + twice (6, not saved).Expected: Saved value 4, shown value 6.
  2. 2. Open Settings → Apps → AndroidTesters Lab and tap Force stop. Confirm.Expected: The Lab is stopped. Do this only for AndroidTesters Lab.
  3. 3. Open the Lab from its icon.Expected: The Lab starts fresh without errors.
  4. 4. Open the lifecycle kit.Expected: The counter shows the saved value 4.

Expected result: After a force stop the Lab starts cleanly and shows the last saved value.

TC-18-06 · needs a real phone action

Rotation keeps typed text

Type text and rotate the phone. The text must stay in the field.

  1. 1. Turn on auto-rotate in Quick Settings if it is off.Expected: Auto-rotate is on.
  2. 2. In the lifecycle kit type 'turn me' in the note field.Expected: The text is in the field.
  3. 3. Turn the phone to landscape, then back to portrait.Expected: The screen turns each time.
  4. 4. Check the note field.Expected: 'turn me' is still there.

Expected result: Typed text survives rotation in both directions.

TC-15 · Permissions — grant, deny, revoke and ask again

TC-15-01 · simulated in the Lab

Grant a permission

Grant the practice camera permission in the Lab and check that the kit shows it and the feature works. The Lab never asks for your real camera permission.

  1. 1. Open the permissions kit and tap 'Request camera'.Expected: The Lab shows its practice permission dialog (marked Practice), built like the Android one.
  2. 2. Choose 'While using the app' (or Allow).Expected: The kit shows Camera: Granted.
  3. 3. Tap 'Open camera preview'.Expected: A live preview appears.

Expected result: After granting, the status says Granted and the camera feature works.

TC-15-02 · simulated in the Lab

Deny a permission

Deny the practice camera permission and check that the Lab explains what happens instead of showing an empty screen.

  1. 1. If Camera shows Granted, reset it on the kit's practice settings page.Expected: Camera is not granted.
  2. 2. In the permissions kit tap 'Request camera' and choose Don't allow.Expected: The kit shows Camera: Denied.
  3. 3. Tap 'Open camera preview'.Expected: A message explains that the camera is needed and offers 'Try again'.

Expected result: A denied permission leads to a clear explanation and a way forward, never a blank screen.

TC-15-03 · needs a real phone action

Revoke a permission

Take back the real notification permission of AndroidTesters Lab in Android Settings and check that the Lab notices it.

  1. 1. In the permissions kit, allow Notifications so the status shows Granted.Expected: Notifications: Granted.
  2. 2. Open Settings → Apps → AndroidTesters Lab → Notifications and switch them off.Expected: Notifications are off for the Lab only.
  3. 3. Return to the Lab.Expected: The Lab opens the permissions kit again.
  4. 4. Read the notification status.Expected: It says Denied.

Expected result: After revoking in Settings the Lab shows the new status.

TC-15-04 · simulated in the Lab

Request again where allowed

Android lets an app ask again after one denial, but not after two. The practice camera permission follows the same rule; check that the Lab handles both cases.

  1. 1. Start with Camera not granted. Tap 'Request camera' and choose Don't allow.Expected: Camera: Denied, with 'Try again'.
  2. 2. Tap 'Try again'. If the lab stops responding, close it and open it again from the mission screen.Expected: The practice dialog appears once more.
  3. 3. Choose Don't allow again.Expected: The Lab will not ask any more, just like Android.
  4. 4. Tap 'Try again' once more.Expected: The Lab explains that the camera can now only be allowed in settings and offers 'Open settings' (the practice settings page).

Expected result: The Lab asks again only while Android allows it, then sends the user to Settings with a clear explanation.

TC-15-05 · needs a real phone action

Change from Settings

Allow the denied notification permission from Android Settings and check that the Lab picks up the change by itself.

  1. 1. Start with Notifications: Denied in the permissions kit.Expected: Notifications: Denied.
  2. 2. Tap 'Open notification settings'.Expected: Android Settings opens on AndroidTesters Lab.
  3. 3. Allow notifications for the Lab and press Back.Expected: You are back in the Lab.
  4. 4. Read the notification status without restarting the Lab.Expected: It says Granted.

Expected result: A permission allowed in Settings is shown as Granted as soon as you return.