Appium Environment Preparation

Source: Internet
Author: User

First, the environment preparation
1. Dependent environment
the current environment is the Windows 10 version 64-bit system (32-bit self-managed)
1.jdk1.6.0 (64-bit)-preferably 1.6 or more versions 2.android-sdk_r24.3.4-windows 3.python:3.6 (preferably 3.6 consistent, 2.7 in     Text coding problems more than 4.appium:1.7-more than 1.7 version also into Appium desktop 5.node.js:node-v4.4.7-x64--appium Dependent environment 6.appium-python-client--pip installed package

2. Java environment

Installation Note: Version number 1.6 and above do not use spaces, do not have Chinese, all English name, the path do not complicate the JDK and JRE and discharge installation, set three local environment variable input javac Be sure to see it in Chinese, otherwise uninstall reinstall it 3. node. js
Download website address: HTTPS://NODEJS.ORG/EN/DOWNLOAD/23> Node–v Check version> NPM--Download the installation package gadget (like Pip) 4. NET framework4.5
Appium is developed with. NET, so you need to install. NET framework4.5,: https://www.microsoft.com/zh-cn/download/details.aspx?id=3065332

Second, ANDROID-SDK environment
1. Android-sdk
Android SDK is an essential tool for Android development:adb avd simulator Uiautomatorviewer AAPT
 after installation, the following files are normal 2. SDK Manager
tools inside the top three is a must download--android SDK Tools has a variety of utilities, such as: Uiautomatorviewer (element positioning)--android SDK platform-tools with ADB (even mobile)--android SDK build-tools with appt (view package name and start activity)--SDK Platform

3. Android Simulator. Android version here I chose 4.4.2 (API 19), other like Android 4.4w.2 this is the watch, and some with TV words is the television, do not randomly tick some irrelevant 4. AVD Simulator Creation Double-click Start AvD Manager to enter the configuration interface

5. Introduction of ADBADB's all-called Android Debug Bridge, is the role of the Debug bridge. with ADB tools, we can manage the status of devices or phone simulators. Can also do a lot of mobile phone operation
 after the simulator is open, you can directly adb devices after the real machine is connected to the data cable, you can view the ADB devices

  6. Several common exceptions for ADB
List of devices attached --Unrecognized USB device phone driver not installed, the data cable is not connected Unauthorized -not authorized adb server version doesn ' t mat error:could not install *smartsock usually per socket address (Protocol/network address/End --Port conflict, uninstall phone assistant Butler Offline --5037 ports accounted for kill the process that occupies the port
7.5037 ports are accounted for1. View Port netstat-aon|findstr 50372. View process Tasklist/fi "PID eq port number"3. Kill the process Taskkill/pid 7200/f

iii. introduction of Appium
1. Appium-doctor
1.appium After installation, locate this file directory D:\appium\Appium\node_modules\.bin2. Add the above address to the environment variable under path3. Punch-in CMD, enter appium-doctor, check whether the environment is OK, appear as shown in the environment OK 2. Appium-python-client
Appium python package, similar to selenium (actually inherited selenium)
pip Install appium-python-client

3. Appium command line mode
There are two ways to install the Appium server: 1. Command-line mode without GUI interface 2. Desktop version with GUI interface-Appium
Desktop
Installation method: NPM--registry https://registry.npm.taobao.org install-g appium cmd input appium can be started

4. Appium Desktop
The latest release version can be found on the publishing page on GitHub. https://github.com/appium/appium-desktop/releases/

Get package name AAPT dump badging xxx.apk get information

Appium Environment Preparation

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.