Featured project | Mobile

Appium Android Framework

Screen objects with built-in waits, device tests, a screenshot and screen recording for every failure, retries only on Android "not responding" dialogs.

Run #31 passed all 40 Android 15 emulator test executions. The repository has 40 TestNG methods and preserves three demo-app defects as known-bug checks.

On this page
  1. Problem and purpose
  2. Architecture
  3. Technology and tools
  4. Engineering decisions and approach
  5. Test scope and execution approach
  6. Results with dated evidence
  7. Evidence explorer
  8. Representative failure evidence
  9. Local setup and execution
  10. Workflow and reports
  11. Known limitations

Problem and purpose

Shows mobile test automation end to end: setup on Windows without Android Studio, screen objects, device behaviour, evidence for every failure, and an Android emulator in CI.

Architecture

Tests (TestNG) ──▶ Screen objects + Header component + Device actions
                        │
                   BaseScreen (wait, tap, type, scroll, log each step)
                        │
                   DriverManager (one session per thread; app data cleared before each test)
                        │
        Appium server ──▶ UiAutomator2 ──▶ emulator / phone

Design reasons, and the failures that shaped them, are in docs/framework-design.md.

Technology and tools

AreaTools
Mobile automationAppium 3.8 server, UiAutomator2 driver 8.7, Appium Java client 11
Test runnerTestNG 7.12 (groups, suites, retry analyzer)
DeviceAndroid 15 emulator (API 35), or a real phone over USB
ReportingCustom HTML report with steps, screenshots and screen recordings
CIGitHub Actions with reactivecircus/android-emulator-runner

Engineering decisions and approach

  • One Appium session per thread, reset per test with mobile: clearApp (about 2 s instead of 5–10 s for a new session)
  • Locators: resource ids first, accessibility ids next, UiAutomator text only where there is no id, never XPath
  • Swipe-based scrolling in both directions with end-of-list detection, because the app's list is not marked scrollable
  • Retry only when Android shows "app isn't responding"; assertion failures are never retried
  • Known app bugs kept as tests that assert the correct behaviour, outside the main suite

Test scope and execution approach

Project-specific checks and execution details documented in the repository:

  • Login, sorting, cart and a full checkout with the order total checked as cart total + delivery (BigDecimal)
  • Device tests: back button, background and resume, cold start, rotation lock, keyboard
  • 17 interview scenario tests: locator strategies, W3C gestures, permission dialogs, mocked GPS, files, logcat, WebView context
  • Every failure keeps a screenshot and a screen recording in the report

Results with dated evidence

Historical Android emulator workflow run

Android 15 emulator workflow run #31

Run #31 passed all 40 Android 15 emulator test executions. The repository has 40 TestNG methods and preserves three demo-app defects as known-bug checks.

Evidence checked: | Open dated evidence

Evidence explorer

Static screenshots are labelled as images; dated workflow links identify the execution evidence and its check date.

Test report screenshot. 40 of 40 Android 15 emulator test executions passed. Static image; capture date is not recorded in the portfolio data.
Appium report: 40 of 40 test executions passed

Test report screenshot. 40 of 40 Android 15 emulator test executions passed. Static image; capture date is not recorded in the portfolio data.

Bugs found in the demo app (My Demo App 2.3.0)

  • Opening the 7th or a later catalog product crashes the app (ArrayIndexOutOfBoundsException, from logcat)
  • The product quantity can be lowered to 0
  • The missing-country message is cut off ("Please provide your")
Test report screenshot. The crash in the report: steps, error, the home screen at failure and the recording. Static image; capture date is not recorded in the portfolio data.
Report of the crash test with steps, error, screenshot and recording

Test report screenshot. The crash in the report: steps, error, the home screen at failure and the recording. Static image; capture date is not recorded in the portfolio data.

Static material from the public repository. The linked verification record was checked 2026-11-19; that date is not a screenshot capture date.

Dated workflow record

Evidence checked 2026-11-19. Open Android 15 emulator workflow run #31

Representative failure evidence

Three real defects in the demo application are retained as regression checks in the project.

Local setup and execution

scripts/get-app.sh                           # downloads the pinned APK
emulator -avd Pixel_API_35 -no-snapshot-save
appium --use-plugins=inspector --allow-cors
mvn test                                     # 40 TestNG methods, about 16 min locally
mvn test -DsuiteXmlFile=known-bugs.xml       # the 3 known app bugs

Full setup guide: docs/setup.md.

Workflow and reports

View workflow definition.

Known limitations

  • Android only: iOS needs a Mac with Xcode
  • One device, so the suite runs on one thread (the design supports one device per thread)
  • WebView screens are checked for their context but not automated inside (needs a matching Chromedriver)
  • The verified run uses an Android emulator and a demo application; no real-device result is claimed.

Back to Projects