appium在MAC上环境搭建

万事须己运,他得非我贤。这篇文章主要讲述appium在MAC上环境搭建相关的知识,希望能为你提供帮助。
1. 安装、启动Appium

[email  protected] ~$ npm install -g appium Password: npm http GET https://registry.npmjs.org/appium npm http 200 https://registry.npmjs.org/appium npm http GET https://registry.npmjs.org/appium/-/appium-0.15.0.tgz npm http 200 https://registry.npmjs.org/appium/-/appium-0.15.0.tgz ………..此处省略N多字├── [email  protected] ([email  protected], [email  protected]) ├── [email  protected] ([email  protected], [email  protected], [email  protected], [email  protected], [email  protected], [email  protected], [email  protected], [email  protected], [email  protected], [email  protected], [email  protected]) ├── [email  protected] ([email  protected], [email  protected], [email  protected], [email  protected]) └── [email  protected] ([email  protected], [email  protected], [email  protected], [email  protected])

[email  protected] ~$ npm install wd npm http GET https://registry.npmjs.org/wd npm http 200 https://registry.npmjs.org/wd………..此处省略N多字

[email  protected] ~$appium &

2. 检查环境。使用命令appium-doctor
appium在MAC上环境搭建

文章图片

【appium在MAC上环境搭建】出现上面的问题解决的方法:
[email  protected] ~$ sudo vim /etc/profile 加入: export java_HOME=/Library/Java/Home

appium在MAC上环境搭建

文章图片

3.执行測试用例測试JAVA用例:
  1. 安装apps/ContactManager/ContactManagers.spk
  2. 导入idea — 环境配置成功后 — 右点选中androidContactsTest — Run‘AndroidContactsTest‘
appium在MAC上环境搭建

文章图片

微信公众帐号: wirelessqa
appium在MAC上环境搭建

文章图片

关于作者:作者:  毕小朋 | 老 毕  邮箱:  [email  protected]
微博:  @WirelessQA  博客:  http://blog.csdn.net/wirelessqa

    推荐阅读