Installation and application of Appium automation

Source: Internet
Author: User
Tags appium

Appium Environment Construction


Installation of the SDK:

1. Download, install the SDK, adt& configure the Android environment variable: http://developer.android.com

2. Find Windows:installer.exe in the inside

3. Install the default selectable disk



To configure the SDK system variables:

1. Right-click My Computer--Properties--advanced--environment variables
2. New Android_home variable name in the System Variable field: Android_home Variable Value: E:\android (depending on the actual situation)
3. Select the environment variable named "path" in the "System variables" and double-click the variable name: path
Variable value:;%android_home%\build-tools\android;%android_home%\tools\;%android_home%\platform-tools




Download, install Appium

1. First install the node.js:http://www.nodejs.org/(the default can be pressed to another disk)
2. Configure environment variables: variable name Path;f:\program Files\nodejs;


Installing Appium

1. Download the Windows version of Appium address: https://bitbucket.org/appium/appium.app/downloads/Download and install
2. After successful installation, click "Appium.exe" to run, run the interface as shown:



Appium after installation can be re-run appium-doctor to check whether Appium is available, normal as follows:




Open UI Automator Viewer

1. Go to the Installed SDK (I installed the D) D:\android\tools file
2. Click on open uiautomatorviewer.bat (easy to use on the desktop) my path is in

C: \. \android\sdk\tools\bin inside


One problem here is that when you open the Uiautomatorviewer.bat, the interface flashes off.

Right click Uiautomatorviewr.bat, select Notepad type to open, modify the last sentence.

Call "%java_exe%" "-djava.ext.dirs=%javaextdirs%" "-dcom.android.uiautomator.bindir=c:\. \android\sdk\platform-tools "-jar%jarpath%%*

Change it to the full path of your SDK Platform-tools (the path I deleted) will open normally.




Installing Appium-python-client

1. Use the command input: Pip install appium-python-client installation Library

2. Check if the command entry is successful: Pip list



Download Appiumlibrary

1. Download and install the Robotframework-appiumlibrary library: https://github.com/serhatbolsu/robotframework-appiumlibrary
2. Extract to any disk, enter the disk command input: Python setup.py install
3. View command: Pip list or open ride create appiumlibrary

Here I install the problem, there is no appiumlibrary this folder, robotframework in the import library is red, and finally through the following in the CMD installed.
1. Pip Install Robotframework-appiumlibrary



The environment was built and the next use of linked phones

1. Plug in the USB link phone to turn on the phone USB debugging
1. Open Ride and create a new appiumlibrary
2. Enter the keyword as follows link Mobile: Open application Http://localhost:4723/wd/hubplat formname=android platformversion=5.1.1 devicename= C750ded8 Apppackage=cn.ifast.mobile.hybrid.ifa appactivity=. Mainactivity


2. (1) Http://localhost:4723/wd/hub (URL of appiu)
(2) platformname=android (Android)
(3) platformversion=5.1.1 (version of the machine)
(4) Devicename=c750ded8 (ID of the linked phone, input command: ADB devices can be displayed)
(5) Apppackage=cn.ifast.mobile.hybrid.ifa (package name)
(6) appactivity=. Mainactivity (opens the app's package)


If you encounter other problems after successful installation, you can see: http://blog.csdn.net/mr_zeng1993/article/details/77962733


Please leave a message if you have questions.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.