Appium Training Complete Tutorial - Appium Training
Appium Training Complete Tutorial - Appium Training
Appium Training Complete Tutorial - Appium Training
1 Appium introduction
There is a number of Mobile Automation testing tools available, some of them are paid and some are
open source.
It supports many programming languages like Java, Ruby, Python, PHP, C# etc.
By using Appium, we can automate ios, Android, and Firefox OS platform.
It supports automation of Native apps, Mobile Web apps, and Hybrid Apps.
It doesn’t require access to your source code or library. You are testing apps which are used by the
real user.
It uses Selenium web driver.
It is free to use.
It supports current and future versions of Android OS.
The list down of these benefits must have encouraged you to know more about it. So, what are we waiting
for? Let’s scorch more about the term ‘Appium’!
Appium is an open source, cross-platform test automation tool used to automate native, hybrid and mobile
web apps. We can run automation tests on actual devices, emulators, and simulators.
Native apps are built for a particular device and operating system. Native apps are installed directly on a
mobile device.
Mobile web apps are web apps accessed using a mobile browser (mobile version’ of a website). They
don’t have to install.
Hybrid apps have a wrapper around a “web view” — a native control that enables interaction with web
content.
1.2 Architecture of Appium
Appium is an http server which was written in node.js, its architecture is as same as selenium web driver
server.
Appium will support only android and ios but not windows platform. And the architecture of appium is
different from android to ios.
Generally, when you’re downloading appium, you are basically downloading the server. When we
execute our scripts, an http request goes in json format to appium server. Then appium server sends the
command to ios instruments which need bootstrap.js file to automate ios apps and for android, it sends to
uiautomator which needs bootstrap jar.
The uiautomator testing framework allows you to test your user interface (UI) efficiently by creating
automated functional UI test cases that can be run against your app on one or more devices.
When we execute the test scripts, Appium sends the command to the uiautomator. To listen to our
commands we need a TCP server. So, here bootstrap.jar works as TCP server. And then it executes the
command on the devices.
Before starting with Appium, we first need to setup environment to run scripts on Android platform using
Appium.
Open the control panel -> system or security –> system; the same thing can be done by right-clicking
on ‘my computer’ and choosing properties.
Choose ‘advanced system settings‘.
Under the advanced tab choose the ‘environment variable…option.
Select new in the system variables.
Define the variable name as ‘java_home‘and variable value as ‘c:\program files\java\jdk1.8.0_45‘ (for
this example jdk version 1.8.0 was installed in ‘c:\program files\java\jdk1.8.0_45‘ folder; if needed,
modify this value to reflect the real location).
2.1.2 Setting the Java Path Variable
We need to specify the location in the path variable. For path, most probably it will already exist on
your machine. So just select it and choose the edit option.
In editor add the value ‘;%java_home%\bin‘ or c:program files\java\jdk1.8.0_45\bin‘.
Go To ‘Start Menu’ and type ‘cmd’ and Enter. It will launch the Command Prompt, type java / javac.
It will display the following information.
If command prompt displays like above, jdk is installed successfully in your system.
https://qa-masters.com/trainings/mobile-testing-trainings/appium