配置appium 1.6.3 for MAC


安装appium

卸载历史版本:npm uninstall -g appium, 安装好npm, cnpm

1. github上下载源代码,解压进入下载好的目录运行npm install   https://testerhome.com/topics/6080

2. 源代码安装 命令行运行: git clone https://github.com/appium/appium.git,clone完成后cd 到相应目录 运行: cnmp install  https://testerhome.com/topics/5874

3. 淘宝镜像安装:确保已经安装好了cnpm,  命令行 cnpm -v ,检查。 

 cnpm install -g appium --no-cache

4. 直接 npm install -g appium 运行过程中有未下载下来的地方 报错 手动下载到相应目录

 安装完成appium -v检查

配置appium-doctor对appium进行检查:

sudo npm install -g appium-doctor   安装完成后运行appium-doctor

1. 检查信息缺少: Xcode Command Line Tools先用brew Xcode Command Line Tools 没有找到结果  appstore没有结果  去百度search: http://railsapps.github.io/xcode-command-line-tools.html

  解决办法: xcode-select --install    

2. WARN AppiumDoctor  ✖ Bin directory for $JAVA_HOME is not set   没有配置java_home变量

 解决办法: vi ./.bash_profile ;  在文本末尾加上java_home的路径

 WebDriverAgent安装:

1. git clone https://github.com/facebook/WebDriverAgent.git复制源代码

2../Scripts/bootstrap.sh

报错:

Fetching dependencies *** Downloading peertalk.framework binary at "v1.0" Failed to write to /node_modules/WebDriverAgent/Carthage/Build/iOS/Peertalk.framework: Error Domain=NSCocoaErrorDomain Code=513 "“Peertalk.framework” couldn’t be removed because you don’t have permission to access it." UserInfo={NSFilePath=/node_modules/WebDriverAgent/Carthage/Build/iOS/Peertalk.framework, NSUserStringVariant=( Remove ), NSUnderlyingError=0x7fd6774b0e30 {Error Domain=NSPOSIXErrorDomain Code=13 "Permission denied"}}

权限问题,加上sudo.挂上vpn要稳定些


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM