Appium 2

Run on a device cloud

Expert190 pts~70 min
  • Device clouds
  • Configuration
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-on-a-device-cloud

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

Objective

Make the session configurable for a device cloud without hardcoding credentials, and keep it runnable locally.

Your task

  1. 1Read the hub URL, username and access key from environment variables, falling back to http://127.0.0.1:4723.
  2. 2Add the vendor options block (bstack:options, sauce:options or lt:options) with build and session names.
  3. 3Log in as qa@target.dev / Test@123 via the accessibility ids "username", "password" and "login".
  4. 4Assert the inbox is displayed.

Acceptance criteria

  • Configuration comes from the environment
  • Vendor options are defined
  • No hardcoded secrets
  • The inbox is shown
  • At least 1 assertion passes

Fixtures

username
qa@target.dev
password
Test@123

Appium 2 · Appium · Architecture & CI