Back

安装appium ( install appium on both mac and linux-ubuntu)

发布时间: 2014-09-27 02:13:00

refer to: 

Mac 下的安装

因为跟selenium一样, appium的客户端是运行在mac下的,步骤是:

1. 安装 nodejs  (参考   http://siwei.me/blog/posts/nvm-node)

2. 安装 appium : 

  $ npm install -g appium 

  $ npm install wd

3. 下载 appium的客户端: 比如 2015年4月18日是:appium-1.3.7.dmg  

Linux 的安装: 基本不用看了,因为目前 可以认为只支持mac下运行

安装前提:对于安卓测试,需要你提前安装好:JDK,ANT,ADT,ADB等安装开发必须的组件。

1. install npm ( go to nodejs.org and download the tar.gz file)

2. $ npm install -g appium

3. $ npm install wd

4. $appium (启动了appium的服务器端)

5. 书写自己的 appium脚本,然后执行:

$ node your-appium-test.js

最后,还可以执行下列命令来检查是否安装完全: 

sg552@siwei-linux-notebook:/workspace/coding_tools$ appium-doctor 
Running Android Checks
✔ ANDROID_HOME is set to "/workspace/android-sdk-linux"
✔ JAVA_HOME is set to "/workspace/jdk1.7.0_67."
✔ ADB exists at /workspace/android-sdk-linux/platform-tools/adb
✔ Android exists at /workspace/android-sdk-linux/tools/android
✔ Emulator exists at /workspace/android-sdk-linux/tools/emulator
✔ Android Checks were successful.

✔ All Checks were successful

Back