All projects
Appium Java — cross-platform mobile framework
A reusable Android and iOS automation starter built on Appium, TestNG and Cucumber, configured through a .env file with no framework code changes.
- Java
- Appium
- TestNG
- Cucumber
- Selenium
- Allure
- Android
- iOS
Context
Most mobile automation setups mix framework code with app details, so each new app starts with a rewrite. This one keeps them apart: you supply the page objects and Cucumber steps for your screens, and the framework handles the rest.
It’s an early release (0.1.0). It is unit-tested, but it hasn’t yet been validated against a real device or emulator in the repository’s CI.
What I built
- One codebase for two platforms, using UiAutomator2 on Android and XCUITest on iOS, applying only the capabilities that belong to the selected platform.
- Layered configuration: system property, environment variable,
.envfile, then defaults. Missing apps, devices or servers fail fast with a clear error. - A thread-safe driver lifecycle, with one Appium session per scenario that is always cleaned up.
- Explicit waits and W3C gestures, including swipe, tap, long-press and scroll-to-text, instead of sleeps.
- Evidence on failure: automatic screenshots and optional screen recording, attached to the Cucumber and Allure reports.
- A Makefile front-end, with
make doctorto explain what’s missing. - CI that needs no device: formatting, compiler warnings, unit tests, a Cucumber step-binding dry run and shellcheck.
Stack notes
Java 17+, Appium 2 or 3, Selenium 4, TestNG, Cucumber and Allure, built with Maven.