Appium Desktop tutorial and setup

Introduction

Appium Desktop is a good way to understand the Appium mechanism. You will see how the elements are identified and what type of interaction you could accomplish. After that we could start industrialization with a test factory.

Today we are focusing on an iOS application. So we will use a iOS test application and it will require a Mac environment.

There is 2 main purposes to use Appium Desktop :

  1. Investigate how the application could be automated and identify the objects.
  2. Use as Appium server instead of using Node.js

Setup

We will setup Appium Desktop on a Mac (10.12)

  1. Install “Xcode” from “App store”. It is free.
  2. Run a first time Xcode and accept the License Agreement.
  3. Start the simulator : “Xcode” > “Open Developer Tool” > “Simulator”
  4. Check the version of your Simulator like below:

    iOS 10.3 simulator
    iOS 10.3 simulator
  5. Then go download and install the latest version of Appium Desktop (https://github.com/appium/appium-desktop/releases) like below:

    Download the latest version. Here it was 1.0.1 the latest version.
    Download the latest version. Here it was 1.0.1 the latest version.

Tutorial

  1. Start Appium and let the value by default like below:

    Appium starting screen
    Appium starting screen
  2. Start a new session :

    Appium logging screen
    Appium logging screen
  3. Create a new “Desired capability”. Ensure to report the right version of your iOS simulator!
    {
         "platformName": "iOS",
         "platformVersion": "10.3",
         "deviceName": "iPhone Simulator",
         "app": "http://appium.s3.amazonaws.com/TestApp7.1.app.zip",
         "noReset": true
    }
    
    Add in "Desired Capabilities" the required properties to run the simulator and define the application to test.
    Add in “Desired Capabilities” the required properties to run the simulator and define the application to test.

    Here we use a test application that allows you to practice and understand how to use Appium. (http://appium.s3.amazonaws.com/TestApp7.1.app.zip)

  4. The Appium will show the screen of the iOS simulator (1), the inspector pan (2), the detail properties for a selected element (3). The (4) is the real simulator running on your machine, Appium is using a simulator to interact with your application. Appium is not providing its own simulator and this is a good approach, we could compare the simulator as the browser for Selenium.
    Appium Desktop (1) (2) (3) and iOS Simulator (4)
    Appium Desktop (1) (2) (3) and iOS Simulator (4)

    When you select an element in the (1) by double clicking, you will see in (2) the element name that has been selected and in (3) all the properties of the selected element. In this example you could “Send Keys”  or “Tap” in the selected field.

    How an element is defined and how you could interact with.
    How an element is defined and how you could interact with.

Conclusion

Now you can play with Appium and see how you could automate test with your App. It is a good way to see the challenge you could face when you try to automate your iOS, Android or WindowsPhone app.

Related Article

IoT testing – Devices connected to a mobile

Leave a Reply

Your email address will not be published. Required fields are marked *