appium在MAC上环境搭建

1. 安装、启动Appium

bixiaopeng@bixiaopeng ~$ 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])
bixiaopeng@bixiaopeng ~$ npm install wd
npm http GET https://registry.npmjs.org/wd
npm http 200 https://registry.npmjs.org/wd

………..此处省略N多字
bixiaopeng@bixiaopengtekiMacBook-Pro ~$  appium & 

2. 检查环境,使用命令appium-doctor

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

bixiaopeng@bixiaopengtekiMacBook-Pro ~$ 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上环境搭建,,5-wow.com

郑重声明:本站内容如果来自互联网及其他传播媒体,其版权均属原媒体及文章作者所有。转载目的在于传递更多信息及用于网络分享,并不代表本站赞同其观点和对其真实性负责,也不构成任何其他建议。