iOSDev Personal

Appium 1.0 [Orion] : Features and Usage on OSX Mavericks

Appium 1.0 [Orion]

Appium team has just released new version of the Appium.[1.0] a.k.a Orion, which has fixed some bugs as well as added new amazing features. Appium[@AppiumDevs] team launched new appium verion at Saucelabs [@saucelabs]

Features

The list of the new appium features are posted on the Saucelabs official blog ‘Oh, Appy Day! Appium 1.0 is Here‘. All the other features are also on the release notes. In a nutshell, they are as follows

  • New Client libraries for all the supported languages e.g Java, Python, Ruby etc
  • New Desired capabilities API for the Selenium WebDriver
  • Full XML and XPath Support on top of JSON
  • New element locator strategy and support for more platforms
  • Brand New Appium App for the OSX

 Appium OSX App

Appium has also released brand new OSX App which looks awesome. Now, let’s see how to use Appium OSX App on the mavericks

Downloading

You can download latest Appium App from the Appium website OR from the GitHub. If you have previous version of the Appium on your Mac then you can just update it to the latest version.

appium_download

Once you updated to latest version, you will see nice looking user interface of the appium app. Appium app has five main Settings

  • Android Settings – To Setup your Android App 
  • iOS Settings – To Setup iOS App
  • General Settings – To Setup Server and port.
  • Developer Settings – To setup Appium package path, Node Module patha
  • Robot Settings – To Setup Robot port and server.

Appium_App_menu

 Once, You got Appium, next thing you need to authorize iOS for the Appium. You will get a pop up to to authorize an ios.

authoroze_ios

Setting iOS APP

We can setup our iOS App for an Appium by selecting ‘Apple’ icon [iOS Settings] from the menu. We have to locate the PATH of our APP in the ‘App Path’. We can also tweak device settings, we can change the device e.g iPhone, iPad as well as iOS versions. The Settings looks like these

setting_ios_app

Setting Appium PATH [NodeJS]

There are Developer settings where we need to tell an app that where is our Appium Package PATH is located. In this case, I have installed Appium using nodeJS in the project directory

This will create ‘node_modules’ directory and Appium package is inside the directory. We cal also specify an external path. The server and port for the Appium can be setup from the ‘General Settings’

setting_appium_package

Lauching Appium

Once you have setup and iOS APP and Appium Package. You are ready to launch and Appium Server on the server and port you have specified. You can launch Appium by clicking on “Launch” button on the top right corner. Once you start Appium server it should listen to commands

starting_appium

Using Appium Inspector

Appium Inspector is the cool way to inspect and record the action on our Mobile App. Appium You can launch Appium Inspector by clicking on the ‘i’ icon on the top right hand corner. Using an Appium Inspector, we can record and playback script with your favourite programming language.

 

appium_inspector

 

Video Demo

Here is an Video Demo of the how to use Appium App on OSX. This also shows how to use an Appium Inspector to record scripts.

Happy Mobile Automation !!