1. 程式人生 > >Appium自動化測試(一)之環境搭建

Appium自動化測試(一)之環境搭建

Appium介紹見官網:http://appium.io/docs/cn/about-appium/intro/#introduction-to-appium

http://appium.io/docs/cn/appium-setup/platform-support/index.html

本節介紹按照appium環境(JAVA+Eclipse)

1. JAVA SDK 

不再介紹,自行百度。

2. Android SDK:

下載http://tools.android-studio.org/index.php/sdk 並配置環境變數sdk\platform-tools, sdk\tools(Android_Home=E:\Android_SDK, %ANDROID_HOME%\platform-tools;%ANDROID_HOME%\tools;

注:cmd執行adb檢查是否配置成功

開啟Android manager.exe下載Android版本(比如6.0)

開啟AVD Manage.exe ,建立模擬器

3. 在eclipse中配置Android SDK

Windows->references->Android->選擇Android SDK路徑,比如E:\Android_SDK

4. 下載appium client:

jar包:http://central.maven.org/maven2/io/appium/java-client/5.0.4/

maven 配置:http://mvnrepository.com/artifact/io.appium/java-client

5. 下載appium server:

下載地址https://bitbucket.org/appium/appium.app/downloads/

現在推薦使用appium-desktop代替appium-server,相關介紹和下載可以到官網https://github.com/appium/appium-desktop 

6. 執行appium-doctor檢測一切都是否準備就緒

注意需要把Appium\node_modules\.bin 放在環境變數中