码迷,mamicode.com
首页 > 移动开发 > 详细

appium自动化测试

时间:2016-07-22 21:20:54      阅读:169      评论:0      收藏:0      [点我收藏+]

标签:

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

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:

FirefoxOS Requirements

 

 

根据以上内容可知,安装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自动化测试

标签:

原文地址:http://www.cnblogs.com/zhjsll/p/5696953.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!