Java installation environment
- Installation jdk
- Configuration environment variable
- Under System Variables click New -> variable name: JAVA_HOME -> variable value: C: \ Program Files \ Java \ jdk1.8.0 -> Click the OK button
- Under System Variables click New -> variable name: CLASSPATH -> variable value:;% JAVA_HOME% \ lib;% JAVA_HOME% \ lib \ tools.jar (*** has a variable value front ".") ->. click the OK button
- Found under the System variables path variables of the system, enter the last added:;% JAVA_HOME% \ bin;% JAVA_HOME% \ jre \ bin (the front is a semicolon, if the path variable has been the last semicolon, can not be added) -> click the OK button
- cmd input validation java -version
Install android sdk environment
- Directly to: https://www.androiddevtools.cn/# download an integrated version of the development kit
- Under System Variables click New -> Variable name: ANDROID_HOME -> variable value: D: \ android-sdk -> Click the OK button
- Found under the System variables path variables of the system, and finally add:;% ANDROID_HOME% \ platform-tools;% ANDROID_HOME% \ tools; (the front is a semicolon, if the path variable has been the last semicolon, can not be added) - > click the OK button
- Verify: cmd enter adb
appium installation environment
- Desktop: Direct download appium the exe package can be installed
- Command line installation:
- Installation and node.js npm package management tools (node -v npm and verification)
- Installation cnpm: npm install -g cnpm --registry = https: //registry.npm.taobao.org (with Taobao mirror)
- 安装 Appia: cnpm install g appium
- appium & command to verify
- Appium-python libraries installed: pip install Appium-Python-Client
adb
composition:
- Client-side, running in the development machine, that your development PC. Adb used to send commands.
- Daemon daemon running in debug device, namely the commissioning phone or emulator.
- Server-side, as a background process running on a development machine, that your development PC. PC used to manage the communications between the Client terminal and mobile phones Daemon.
Note: when the first detection device phone emulator connection with adb devices, command adb connect ip: port
The following are common simulator port number:
Escape 21503
Yagami simulator 62001
Hippocampus play simulator 26944
Netease mumu Simulator 7555
Every day Simulator 6555
BlueStacks 5555
Lightning Andrews simulator 5555
Andrews simulator every day 5037
Andrews simulator Masters 54001
Genymotion 5555