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.
Evidence checked 19 Nov 2026 | Android 15 emulator workflow run #31
On this page
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 / phoneDesign reasons, and the failures that shaped them, are in docs/framework-design.md.
Technology and tools
| Area | Tools |
|---|---|
| Mobile automation | Appium 3.8 server, UiAutomator2 driver 8.7, Appium Java client 11 |
| Test runner | TestNG 7.12 (groups, suites, retry analyzer) |
| Device | Android 15 emulator (API 35), or a real phone over USB |
| Reporting | Custom HTML report with steps, screenshots and screen recordings |
| CI | GitHub 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.
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")
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 bugsFull setup guide: docs/setup.md.
Workflow and reports
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.