Appium 2

Run mobile tests in CI

Expert190 pts~70 min
  • CI/CD
  • Reliability
Practice app · Acme Mobile

A mobile app in a device frame. Elements expose data-accessibility-id (= aria-label) for AppiumBy.accessibilityId.

Test URL
/lab/appium-run-mobile-tests-in-ci

Your starter code already declares TEST_URL — never hardcode a host.

Objective

Harden the test for CI: environment-driven config, CI-friendly timeouts and no sleeps.

Your task

  1. 1Read the Appium URL (and device name) from environment variables with local defaults.
  2. 2Raise newCommandTimeout / adbExecTimeout / appWaitDuration for slow CI emulators.
  3. 3Log in as qa@target.dev / Test@123 via the accessibility ids "username", "password" and "login". Tap "allow" on the notification permission dialog (#permission-dialog) — the app is blocked until you answer it.
  4. 4Wait for and open item 8, then assert the detail title is "Item 8".

Acceptance criteria

  • Item 8 is opened
  • Config comes from the environment
  • CI timeouts are set
  • No fixed sleeps
  • At least 2 assertions pass

Fixtures

username
qa@target.dev
password
Test@123

Appium 2 · Appium · Architecture & CI