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用例:
-
安装apps/ContactManager/ContactManagers.spk
-
导入idea — 环境配置成功后 — 右点选中androidContactsTest — Run‘AndroidContactsTest‘
微信公众帐号: wirelessqa
关于作者:
作者: 毕小朋 | 老 毕 邮箱: [email protected]
以上是关于appium在MAC上环境搭建的主要内容,如果未能解决你的问题,请参考以下文章
mac appium python 自动化环境搭建遇到的问题
Appium python自动化测试系列之appium环境搭建