Appium is open source automation tool for iOS
and android application supported by Sauce Lab. It is cross platform, supported
Native, Hybrid iOS and android application. At backend it uses webdriver JSON
wire protocol to communicate with iOS and android applications.
Appium supported many languages like Webdriver. You can write your test scripts any language that has selenium client library.
Appium support UIAutomator framework for ios and android library (For newer Api) and use selendroid for older android platform.
In this post I will show you how to setup and create Appium android script in java language.
Prerequisite:
1. JDK should be installed and java home path setup in your machine.
2. Android SDK should be installed on your machine and android path should be setup in your machine
3. Appium for window download from: download
4. Selenium jar file from: download
5. Eclipse.
Appium supported many languages like Webdriver. You can write your test scripts any language that has selenium client library.
Appium support UIAutomator framework for ios and android library (For newer Api) and use selendroid for older android platform.
In this post I will show you how to setup and create Appium android script in java language.
Prerequisite:
1. JDK should be installed and java home path setup in your machine.
2. Android SDK should be installed on your machine and android path should be setup in your machine
3. Appium for window download from: download
4. Selenium jar file from: download
5. Eclipse.
Your First APPIUM Test Case for
Native Android App
Step 2) Open Eclipse and Create a new Project
>> Package >> Class
Step 3) Import Selenium library and TestNG inside
that new project.
Step 4) Now Create a small test Program for
'Calculator.app' to sum two numbers.
APPIUM
Design Concepts
·
Appium is an 'HTTP Server' written using Node.js platform and
drives iOS and Android session using Webdriver JSON wire protocol. Hence,
before initializing the Appium Server, Node.js must be pre-installed on the
system.
·
When Appium is downloaded and installed, then a server is setup
on our machine that exposes a REST API.
·
It receives connection and command request from the client and
execute that command on mobile devices (Android / iOS).
·
It responds back with HTTP responses. Again, to execute this
request, it uses the mobile test automation frameworks to drive the user
interface of the apps. Framework like:-
o Apple
Instruments for iOS (Instruments are available only in Xcode 3.0 or later with
OS X v10.5 and later)
o Google
UIAutomator for Android API level 16 or higher
o Selendroid
for Android API level 15 or less