๐Ÿ“ฑMobile Automation with Appium

Prepared by: Yana

โ€‹What is Appium

  • Open source test automation framework

    • Native, Hybrid & Mobile Web Apps

    • iOS, Android & Windows apps

  • Cross-platform compatibility

  • Uses vendor provided frameworks

    • iOS: XCUITest

    • Android: UIAutomator2

    • Windows: WinAppDriver

  • Wraps vendor provided frameworks into Webdriver API

    • Supports popular programming languages

  • Free to use any test runner and test framework

What is WebDriverIO?

  • JavaScript E2E automation framework, lets you automate modern web applications in different browsers & OS.

  • supports automating mobile applications in iOS & Android

  • Used by major companies such as Google, Netflix, Microsoft, Mozilla, etcโ€ฆ

  • Really easy to get started

  • Easy readable code

  • Front-end friendly

    • Write tests using JavaScript

  • Huge community support & actively maintained

  • Open Source

    • Free to use for anyone

Setup & Installation (Windows)

  • Node.js (node v16) (latest version of Node is not compatible with WebdriverIO and Appium.

  • Jav a JDK

    • set JAVA_HOME variable ( when it is set youโ€™ll be recognize that JAVA is installed in your machine

    • to confirm just key in

      java --version
    • Verify java_home path in system Environment variables and Path

  • Android Studio

    • Make sure to select Android Virtual Device

    • Set ANDROID_HOME path

      • type in your command prompt

      where android

  • Setup Emulator

    • Create Android Virtual Device

    • Create 2 virtual device with different android version

  • Appium Inspector Setup

    • This will allow us to find elements

  • Appium Global Installation

    npm install -g appium@next

    Run appium doctor command to make sure all pre-requisite are installed

    npm i -g appium-doctor

    This will diagnose if all the require package and path are correct

    appium-doctor --android

Last updated