Skip to content
This repository was archived by the owner on Jul 1, 2026. It is now read-only.

Latest commit

Β 

History

History
57 lines (43 loc) Β· 2.31 KB

File metadata and controls

57 lines (43 loc) Β· 2.31 KB

πŸš€ Appium Testing Guide For project Finna

πŸ› οΈ Environment Setup

  1. Copy .env.example to create either:
    • .env.ios for iOS testing
    • .env.android for Android testing
    • or both if testing both platforms

🐳 Running Tests with Docker Appium Host (Recommended)

Using this method enables you to skip the Appium setup process

πŸ“‹ Requirements

  • πŸ€– Android device running OS 11 or newer
  • πŸ“¦ Android APK file
  • πŸ“¨ Mailosaur account credentials. Required for successful user signup test cases

πŸ”§ Environment Configuration

  1. In .env.android, set:
    • APK_PATH: Absolute path of your Android APK file
    • MAILOSAUR_ID: Your Mailosaur server ID
    • MAILOSAUR_KEY: Your Mailosaur API key

πŸ› οΈ Setting Up Android Tools

If you don't have Android Studio installed, you'll need Android SDK platform tools:

πŸ”Œ Connect Device and Run Test

  1. πŸ“± 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
  2. 🚒 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 for appium-android)
  3. πŸ”— Run docker exec -it appium-android adb devices to verify that connected devices on host machine is also connected to the docker container.

  4. πŸ§ͺ Run Android test cases on connected device:

    npm run android

πŸ“Š Viewing Test Reports

Reports are generated with GitHub action after every test run

πŸ’» Running Tests with Appium on Local Machine (Android/iOS)

🚧 Section to be completed

πŸ’‘ Pro Tips

  • πŸ”’ 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