appium自動化測試

來源:互聯網
上載者:User

標籤:

appium官網:http://appium.io/index.html?lang=zh

Requirements

Your environment needs to be setup for the particular mobile platforms that you want to run tests on. See below for particular platform requirements.

If you want to run Appium via an npm install, hack with or contribute to Appium, you will need node.js and npm 0.12 or greater (use n or brew install node to install Node.js. Make sure you have not installed Node or Appium with sudo, otherwise you‘ll run into problems). We recommend the latest stable version.

To verify that all of Appium‘s dependencies are met you can use appium-doctor. Install it with npm install -g appium-doctor (or run it from source), then run appium-doctor and supply the --ios or --android flags to verify that all of the dependencies are set up correctly.

You also need to download the Appium client for your language so you can write tests. The Appium clients are simple extensions to the WebDriver clients. You can see the list of clients and links to download instructions at the Appium clients list.

iOS Requirements
  • Mac OS X 10.10 or higher, 10.11.1 recommended
  • XCode >= 6.0, 7.1.1 recommended
  • Apple Developer Tools (iPhone simulator SDK, command line tools)
  • Ensure you read our documentation on setting yourself up for iOS testing!
Android Requirements
  • Android SDK API >= 17 (Additional features require 18/19)
  • Appium supports Android on OS X, Linux and Windows. Make sure you follow the directions for setting up your environment properly for testing on different OSes:
    • linux
    • osx
    • windows
FirefoxOS Requirements
  • Firefox OS Simulator

 

 

根據以上內容可知,安裝appium相關Android測試環境需要:

1、使用npm安裝,需要安裝npm

2、node.js >0.12

3、安裝appium-doctor檢查安裝appium前的相關依賴

由於國內網路環境的影響,使用國內鏡像下載安裝:

npm install -g appium-doctor --registry=https://registry.npm.taobao.org/

 

4、安裝Appium client

 

appium自動化測試

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

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.