🚀 Appium Testing Guide For project Finna
- Copy
.env.example
to create either:.env.ios
for iOS testing.env.android
for 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.sh
on MAC/Linux or./docker_start.ps1
on 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 devices
to 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 autogenerated after every test run:
- 🌐 Local access:
- Run
npm run android-report
to view Android reports - Run
npm run ios-report
to view iOS reports
- Run
- 🔗 Remote access:
🚧 Section to be completed
- 🔒 Always keep your
.env
files secure and out of version control - 🔄 Ensure you have the latest versions of Docker and Appium
- 📱 Test on multiple device configurations for comprehensive coverage