Setting up Appium

Running Appium on Windows

Additional Setup for Android App Testing

  1. Download latest node and npm tools MSI (version >= 6.0). The npm and nodejs paths should be in your PATH environment variable.
  2. Download the latest Java JDK here (accept the license agreement first). Set 'JAVA_HOME’ to be your JDK path. The bin in that directory should be added to your PATH variable.
  3. Install the Android SDK. Set the ANDROID_HOME environment variable to be your Android SDK path and add the tools and platform-tools folders to your PATH variable.
  4. Install Apache Ant or use the one that comes with the Android Windows SDK in the eclipse\plugins folder. Be sure to add the folder containing Ant to your PATH variable.//可省略,从源码安装appium时才需要
  5. Install Apache Maven and set the M2HOME and M2 environment variables. Set M2_HOME to the directory maven is installed in, and set M2 to the bin in that directory. Add the path you used for M2 to your PATH.//可省略
  6. To run tests on Windows, you will need to have the Android Emulator booted or an Android Device connected that is running an AVD with API Level 17 or greater. Then run Appium on the command line (via the appium command)
  7. Your test script should ensure that the platformVersion capability corresponds to the emulator or device version you are testing, and that the app capability is an absolute path to the .apk file of the Android app.

Setup

You can run an Appium server using node.js or using the application, see below.

  • Using Node.js

  1. npm install -g appium
  2. appium
  • Using the App
  1. Download the Appium
  2. Run it!

Running Appium on Mac OS X

Appium on OS X supports iOS and Android testing.

 

System setup (iOS)

  • Appium requires Mac OS X 10.7 or greater. We recommend OS X 10.10.
  • Make sure you have Xcode and the iOS SDK(s) installed. Xcode version 7.1 is recommended as earlier versions of Xcode are limited in which versions of iOS they can test against. See the next section for more detail.
  • You need to authorize use of the iOS Simulator. See below.
  • If you’re on Xcode 7.x, Instruments Without Delay (IWD) does not work. You can enable IWD (which will significantly speed up your tests) using this method

Authorizing iOS on the computer

You need to authorize use of the iOS Simulator by running the authorize-ios binary made available through npm. Install the program by running

npm install -g authorize-ios

And the invoke the program using

sudo authorize-ios

If you are running Appium.app, you can authorize iOS through the GUI.

You need to do this every time you install a new version of Xcode.

最新文章

  1. OS存储管理——FIFO,LRU,OPT命中率
  2. java 单例模式
  3. css3 linear-gradient实现页面加载进度条效果
  4. nodejs学习笔记四——express-session
  5. android xml中的xliff属性
  6. linux 解压xz包
  7. Leetcode 52 N-Queens II 回溯搜索
  8. As of ADT 14, resource fields cannot be used as switch cases
  9. 20141016--for 兔子
  10. C# string.Format格式化时间或货币
  11. LFS,编译自己的Linux系统 - 准备
  12. C# 读取IE缓存文件(2)
  13. 我也谈 javascript 模块化 -AMD规范
  14. Oracle.DataAccess.Client.OracleCommand”的类型初始值设定项引发异常。
  15. LightGBM大战XGBoost,谁将夺得桂冠?
  16. php单点登录
  17. HttpWebRequest请求http1.1的chunked的解析问题记录
  18. SharePoint REST API - 使用REST接口对列表设置自定义权限
  19. ubuntu 用remastersys 备份系统并且安装
  20. ElasticSearch5.6.1 + 中文分词(IK)

热门文章

  1. 简单的 "双缓冲" 绘图的例子
  2. js - 锚点-scrollIntoView()
  3. JS没有contains方法,可以用indexof实现
  4. 官方Java编码规范
  5. JavaScript this用法总结(**************************************)
  6. SQL-基础学习使用的数据库资料
  7. pycharm的todo和fixme标记,标志为今后再做和bug点
  8. Examples osgparticleshader例子学习
  9. JavaScript 推断浏览器类型及32位64位
  10. C 标准库 - <time.h>