安卓Appium环境 - 18570580798/study GitHub Wiki

Installation Instructions Installation Instructions JDK Android SDK Node.js Appium To Verify the Appium Installation ChromeDriver Python Libraries AppiumLibrary Six Related articles JDK download JDK from http://www.oracle.com/technetwork/java/javase/downloads/index.html run the downloaded installer set environment variables

Create a new environment variable named JAVA_HOME, and set the value as your JDK directory, such as: c:\Program Files\Java\jdk1.8.0_xx
Add %JAVA_HOME%\bin; and %JAVA_HOME%\jre\bin; to PATH Create a new environment variable named CLASSPATH if it's not exist, and Add .;%JAVA_HOME%\lib\dt.jar;%JAVA_HOME%\lib\tools.jar; Android SDK download Android SDK from http://tools.android-studio.org/index.php/sdk unzip or run the installer set environment variables Create a new environment variable named ANDROID_HOME, and set the value as your Android SDK directory, such as: C:\Users\Gene\AppData\Local\Android\android-sdk Add %ANDROID_HOME%\platform-tools; and %ANDROID_HOME%\tools; to PATH run ”SDK manager.exe“ from Android SDK directory, and install: android sdk tools platform-tools build-tools Node.js You could download an installer from https://nodejs.org/ Appium Download Appium-Desktop from https://github.com/appium/appium-desktop/releases, and run the installer. To Verify the Appium Installation Run appium-doctor.cmd, which is in \node_modules.bin
ChromeDriver Download the corresponding version of chromedriver for android device from http://chromedriver.storage.googleapis.com/index.html or https://npm.taobao.org/mirrors/chromedriver/ . And replace the chromedriver in Appium directory. Mac path: Appium.app/Contents/Resources/app/node_moudles/appium/node_moudles/chromedriver/appium-chromedriver/mac/chromedrvier/ Windows path: c:\Users<USERNAME>\AppData\Local\appium-desktop\app-1.X.X\resources\ap\node_moudles\appium\node_moudles\appium-chromedriver\chromedriver\win
Python Libraries AppiumLibrary AppiumLibrary is an appium testing library for Robot Framework. Read How to install Robotframework to install Robot Framework and Selenium first. This library should be installed on the Jenkins node, not on the Appium server. Using pip The recommended installation method is using pip: pip install robotframework-appiumlibrary Using setup.py git clone https://github.com/jollychang/robotframework-appiumlibrary.git cd robotframework-appiumlibrary python setup.py install Six Six is a Python 2 and 3 compatibility library. It's required when importing AppiumLibrary.

Using pip pip install six

⚠️ **GitHub.com Fallback** ⚠️