appium在MAC上环境搭建

Posted yxysuanfa

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了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

技术分享

出现上面的问题解决的方法:

[email protected] ~$ sudo vim /etc/profile
加入: 
export JAVA_HOME=/Library/Java/Home 

技术分享

3.执行測试用例

測试JAVA用例:

  1. 安装apps/ContactManager/ContactManagers.spk

  2. 导入idea — 环境配置成功后 — 右点选中androidContactsTest — Run‘AndroidContactsTest‘

技术分享

微信公众帐号: wirelessqa

技术分享

关于作者:

作者: 毕小朋 | 老 毕 邮箱: [email protected]

微博: @WirelessQA 博客: http://blog.csdn.net/wirelessqa

以上是关于appium在MAC上环境搭建的主要内容,如果未能解决你的问题,请参考以下文章

appium在Mac上环境搭建

mac上搭建appium环境过程以及遇到的问题

mac appium python 自动化环境搭建遇到的问题

Appium python自动化测试系列之appium环境搭建

Mac OS下Appium环境搭建及Genymotion模拟器安装

Appium环境搭建(MAC版)