Vous êtes sur la page 1sur 4

APPIUM

Appium is an open source test automation framework for use with


native, hybrid and mobile web apps.
It drives iOS and Android apps using the WebDriver protocol.
Appium is "cross-platform": it allows you to write tests against
multiple platforms (iOS, Android), using the same API. This
enables code reuse between iOS and Android testsuites.

1. Download Appium exe and install it (http://appium.io/)


2. Download selenium-server-standalone-2.48.2 & SeleniumJava client jar files
(http://docs.seleniumhq.org/)
3. Download Appium java client jar file
(http://appium.io/downloads.html)
4. Download Eclipse (http://www.eclipse.org/)
5. Download Android SDK
(http://developer.android.com/sdk/index.html)
6. Environment variables
a. ANDROID_HOME: E:\Android SDK
b. JAVA_HOME : C:\Program Files\Java\jdk1.8.0_05
c. path: E:\Android SDK\tools; E:\Android SDK\platformtools;

7.
8. Connect the mobile
9. Do the below setting in Mobile
1. Developer option in settings (check the check box for
stayawake, USB debugging, Allow MockLocation)
2. Connect mobile as camera or file transfer
3. Go to command prompt and check whether the
mobile connected r not (type the connand : "adb devices")
10.
Go to eclipse and Create the Project in eclipse with all
the jars
a. Selenium server
b. selenium java client
c. appium jar(java clinet jar)
11.
Implement Script with TestNG
12.
Update the phone and app information in the script
13.
Double click on appium to open
14.
Go to Android settings and update the phone
information
15.
Go to eclipse and Implement Script with TestNG

16.
17.
18.
19.

Connect Mobile to the System


Update the ipadress of appium in the script
UI Automator to locate elements
Eclipse with Android (Optional)

Appium Setup
Step1: Add android plugin to Eclipse
1. How to add Android plugin to eclipse
To add the ADT plugin to Eclipse:
2. Start Eclipse, then select Help > Install New Software.
3. Click Add, in the top-right corner.
4. In the Add Repository dialog that appears, enter "ADT Plugin"
for the Name and the following URL for the Location:
https://dl-ssl.google.com/android/eclipse/
Note: The Android Developer Tools update site requires a secure
connection. Make sure the update site URL you enter starts with
HTTPS.
5. Click OK.
6. In the Available Software dialog, select the checkbox next to
Developer Tools and click Next.
7. In the next window, you'll see a list of the tools to be
downloaded. Click Next.
8. Read and accept the license agreements, then click Finish.
If you get a security warning saying that the authenticity or
validity of the software can't be established, click OK.
9. When the installation completes, restart Eclipse.
Q) How to get the App Package & App Activity details
for any Device..? ( I mean for any new device)

10. Note: Make sure that you have connected your device to the
system..! Otherwise we cant take the App Package & App
Activity.
11. Open the command prompt Type the following command
to get the App Package & App Activity.
12.

13. It will display as below:

Vous aimerez peut-être aussi