Before we
start discussing some working examples with Appium, we need to install
some prerequisite tools for iOS and Android platforms. We need to setup Xcode
and Android SDK for this purpose, for which I'll be showing the examples on Mac
OS.
Setting up Xcode
To set
up the Xcode, we will perform the following steps:
2.
After downloading it, install and open it.
Now navigate to Preferences | Downloads and
install Command Line Tools and iOS
If you are
using a real device, you need a provision profile installed on the device
and USB debugging enabled on it.
Try to launch
the iPhone simulator and verify that it works. You can launch the
simulator by navigating to Xcode | Open Developer Tool | iOS
Simulator.
Setting up Android SDK
You need to
install Android SDK from http://developer.android.com/sdk/index.html. Download
the Android Developer Tools (ADT) and install.
Launch the installed ADT.
Now, download any Android whose API level is 17, and install it. You can do
that by navigating to Window | Android SDK Manager.
Creating Android Emulator
If you want
to execute your test scripts on an Android Emulator, you have to create
one. To create one, we will perform the following steps:
In ADT, open the Android
device manager by navigating to Windows | Android
Virtual Device ManagerNow create a new virtual device or emulator by clicking on the New button
Launch the Emulator to see if it was created successfully. It might take several minutes for the Android Virtual Device to start.
Using real device for executing your tests
To use real
devices for testing your application using Appium, you need to root the device.
There are many online guides that can help you root your Android device.
Tip
Rooting your
Android device might devoid your warranty from your phone manufacturer. So make
sure you root the devices that are meant specifically for testing and not your
personal devices.
Installing Appium
You
can download Appium from http://appium.io/. Click on
the Download Appium button to download Appium specific to your
workstation platform. Here I am using Mac, so it will download the Appium DMG
file of Version 0.11.4
Copy Appium to the Applications folder, and try to
launch it. The first time it is launched, it asks for your authorization to run
the iOS simulators
After you
grant the authorization, click on Launch to start the Appium
server. By default, it starts at http://localhost:4723. This is the
remote URL to which your test scripts should be using to direct the test
commands.
Hi, Reach THE CREATING EXPERTS for Best Selenium and APPIUM Training in Chennai
Real time project with Hands on Training .Here is the link provided
http://thecreatingexperts.com/appium-training-in-chennai/
contact +91-08122241286