Appium 2

Install and launch an APK

Medium70 pts~25 min
  • APK install
  • App state
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-install-and-launch-an-apk

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

Objective

Install the practice build from TEST_URL, confirm Appium launched it, and verify the first screen.

Your task

  1. 1Keep app = TEST_URL — Appium downloads and installs the build when the session starts.
  2. 2Add appium:appWaitDuration (or appWaitActivity) so the session waits for the launch activity.
  3. 3Assert the app is installed / running (isAppInstalled or queryAppState).
  4. 4Assert the login button (accessibility id "login") is displayed.

Acceptance criteria

  • App installation or launch is verified in code
  • The login screen is shown
  • At least 2 assertions pass

Constraints

  • Keep app = TEST_URL from the starter — it installs the practice build of Acme Mobile.

Fixtures

username
qa@target.dev
password
Test@123

Appium 2 · Appium · Setup & capabilities