Mac下Appium环境搭建

1. 视窗安装

appium-desktop下载地址:appium-desktop

Java 1

appium-desktop下载页                                           

点击链接下载最新版本解压安装即可。

2. 命令行安装

– 安装node.js:brew install node;

– 安装npm:npm install -g grunt-cli;

– 安装appium-server:npm install -g appium;

– 安装appium-doctor,用于检测appium运行环境:npm install -g
appium-doctor;

– 如需运行iOS环境还亟需安装libimobiledevice和ios-deploy:

亟需安装xcode command line tools,xcode-select –install

brew install carthage

brew install libimobiledevice –HEAD

npm install -g ios-deploy (xcode8 and iOS9.3 and above)

– 安装appium-client:npm install -g wd

到那appim那边就甘休了。剩下的就是布局java,安卓sdk环境了。

设置JAVA_HOME和ANDROID_HOME环境变量, 在.bash_profile文件中装置:

export
JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_77.jdk/Contents/Home

export PATH=${PATH}:$JAVA_HOME/bin

export
ANDROID_HOME=/Users/yangtingzhang/Downloads/android-sdk-macosx/

export PATH=${PATH}:$ANDROID_HOME/platforms

export PATH=${PATH}:$ANDROID_Java,HOME/platform-tools

export PATH=${PATH}:$ANDROID_HOME/tools

相关文章