π 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