🚀 Appium Testing Guide For project Finna
- Copy
.env.exampleto create either:.env.iosfor iOS testing.env.androidfor Android testing- or both if testing both platforms
Using this method enables you to skip the Appium setup process
- 🤖 Android device running OS 11 or newer
- 📦 Android APK file
- 📨 Mailosaur account credentials. Required for successful user signup test cases
- In
.env.android, set:APK_PATH: Absolute path of your Android APK fileMAILOSAUR_ID: Your Mailosaur server IDMAILOSAUR_KEY: Your Mailosaur API key
If you don't have Android Studio installed, you'll need Android SDK platform tools:
- 📥 Download from Android's official website
- 🍺 Or install via Homebrew:
brew install android-platform-tools
-
📱 Connect Android Device
- 📶 Enable wireless debugging on your Android device
- 🌐 Connect device via Wi-Fi following Android's wireless setup guide
- ✅ Verify connection by running:
adb devices
-
🚢 Start Docker Container
- 🖥️ Run
./docker-start.shon MAC/Linux or./docker_start.ps1on Windows to build and start the docker container - 🔍 Verify container is running:
docker ps(look forappium-android)
- 🖥️ Run
-
🔗 Run
docker exec -it appium-android adb devicesto verify that connected devices on host machine is also connected to the docker container. -
🧪 Run Android test cases on connected device:
npm run android
Reports are generated with GitHub action after every test run
🚧 Section to be completed
- 🔒 Always keep your
.envfiles secure and out of version control - 🔄 Ensure you have the latest versions of Docker and Appium
- 📱 Test on multiple device configurations for comprehensive coverage