配置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