Install the following installation on the basis of robotframework environment installation, if not installed RFS environment, please refer to robotframework installation article first; Robot framework Environment
Installation steps:
1. Install the Android sdk,exe file "Android-studio-bundle-143.2739321-windows",
1) Adding Environment variables: Add tools and platform-tools two directories to the path of the system;
2) New environment Android_home system variable for your ANDROID SDK path
2. Install the Nodejs,exe file "node-v6.9.1-x64":
1, after installation, in the node installation directory to create a new 2 folders; Node_global, Node_cache,
2. Perform the configuration of NPM parameters in the cmd command, as follows:
NPM Config list
NPM Config ls-l
NPM config set prefix= "C:\\Program Files\\nodejs\\node_global"
NPM config set cache= "C:\\Program Files\\nodejs\\node_cache"
NPM config set init-module= "C:\\Program Files\\.npm-init.js"
NPM config set registry= "https://registry.npm.taobao.org/"
NPM config set tmp= "C:\\Program Files\\temp"
NPM config set userconfig= "C:\\Program FILES\\.NPMRC"
3. Install Appium,cmd under Administrator Rights Command installation: NPM install-g [email protected]; Note the latest version of the installation Appium will be reported to install failed at the [email protected] error;
-can omit this step, directly install appiumforwindows_1.4.16.1 try;
4, install the appiumforwindows_1.4.16.1, after the installation of the configuration appium environment variable path
Example: D:\Program files\appium\node_modules\.bin
5. Install appium-doctor,cmd under command:
RPM Install-g Appium-doctor
6.pip install Robotframework-appiumlibrary, or unzip the package robotframework-appiumlibrary-1.4.6.tar.gz, via Python setup.py Install for installation
Mobile Automation test steps:
I.. phone USB link computer, via adb link phone.
Second, after the ADB link to the phone, enter a command to view mobile device information
Three, cmd page input command: appium, start appium service
Open Ride, Load Appiumlibrary class library, start to write mobile phone automation script
File: Link: https://pan.baidu.com/s/1IY_zlqrIB3GlURt-g8yhhg Password: cm6f
Appium Mobile Phone Automation installation