Appium-java is an automation testing framework built with Appium, Selenium, TestNG, and Java. It demonstrates how to start Appium server programmatically, launch Android emulators automatically, and run test cases on Android applications.
AppiumTestify
├── src
│ ├── main/java # future main code, utilities if needed
│ └── test/java # Test classes (e.g., AppiumBasics.java)
│ └── test/resources # Test resources (APK files, testng.xml)
├── pom.xml # Maven dependencies & plugins
└── README.md # Project documentation✅ Start/stop Appium server programmatically
✅ Launch Android emulator automatically (Test-Pixel_9a)
✅ Run tests on emulators or real devices
✅ Example test with UiAutomator2 driver and ApiDemos-debug.apk
✅ Test management with TestNG
✅ Clean logging using SLF4J
-
☕ Java 17+
-
⚡ Maven 3+
-
📦 Node.js + Appium
npm install -g appium
-
📱 Appium UiAutomator2 driver
appium driver install uiautomator2
-
🛠 Android SDK installed and
ANDROID_HOMEset -
📟 At least one AVD (example:
Test-Pixel_9a)emulator -list-avds
-
Start emulator manually OR let the framework launch
Test-Pixel_9a. -
Run tests via Maven:
mvn clean test -
TestNG will:
- Start emulator
- Start Appium server
- Install and launch
ApiDemos-debug.apk - Execute automated steps
- Quit driver and stop Appium
- 📱 Start Emulator (Pixel_7_Pro)
- 🚀 Start Appium server (programmatically)
- 📦 Install and launch
ApiDemos-debug.apk - 🤖 Run automated UI steps
- 🛑 Quit driver & stop Appium server
- 🧩 Implement Page Object Model (POM) design
- 🍏 Add iOS testing support with XCUITest driver
- 📊 Integrate reporting (Allure, ExtentReports)
- 🔄 CI/CD integration (Jenkins, GitHub Actions)
Lakshya Sharma 🚀 Automation Tester | Appium | Selenium | TestNG | Java
# IntelliJ IDEA
.idea/
*.iml
out/
# Maven
target/
dependency-reduced-pom.xml
# Logs
*.log
# OS-specific files
.DS_Store
Thumbs.db
# Android / Appium related
*.apk
*.ap_
*.aab