Appium源码配置问题总结

接testerhome一篇总结贴,跟着后面添加一些搭建开发环境时遇到的问题。

RESETTING NPM

chromedriver安装失败

* Determining platform
* Platform is mac
---- Resetting / Initializing Appium ----
RESETTING NPM
* Installing new or updated NPM modules (including devDeps)
npm WARN package.json assert@1.3.0 assert is also the name of a node core module.
npm WARN package.json md5calculator@0.0.3 No repository field.
npm WARN package.json path@0.11.14 path is also the name of a node core module.
npm WARN package.json utf7@1.0.0 No repository field.
npm WARN package.json vargs@0.1.0 No repository field.
npm WARN package.json node-idevice@0.1.5 No repository field.

> chromedriver@2.15.0 install /Users/wuxian/Documents/sourcecode/self/appium/node_modules/appium-chromedriver/node_modules/chromedriver
> node install.js

Downloading http://chromedriver.storage.googleapis.com/2.15/chromedriver_mac32.zip
Saving to /var/folders/3j/s3hfvmy572vcn3h02c_rxcbm0000gn/T/chromedriver/chromedriver_mac32.zip
events.js:85
      throw er; // Unhandled 'error' event
            ^
Error: connect ETIMEDOUT
    at exports._errnoException (util.js:746:11)
    at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1000:19)
npm ERR! Darwin 14.1.0
npm ERR! argv "node" "/usr/local/bin/npm" "install" "."
npm ERR! node v0.12.2
npm ERR! npm  v2.7.4
npm ERR! code ELIFECYCLE

npm ERR! chromedriver@2.15.0 install: `node install.js`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the chromedriver@2.15.0 install script 'node install.js'.
npm ERR! This is most likely a problem with the chromedriver package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node install.js
npm ERR! You can get their info via:
npm ERR!     npm owner ls chromedriver
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     /Users/wuxian/Documents/sourcecode/self/appium/npm-debug.log
---- FAILURE: reset.sh exited with status 1 ----

原因:chromedriver被墙了
解决方法:使用。

RESETTING ANDROID

ant

* Building Android bootstrap
Running "buildAndroidBootstrap" task
Fatal error: Error finding ant binary, is it on your path?

原因:ant没有安装

解决方法:下载ant,并配置环境变量,然后在命令行敲ant,保证正确安装。

android sdk 16

[ERROR] After correcting the problems, you can resume the build with the command
[ERROR]   mvn  -rf :android-driver-app

readlink: illegal option -- f
usage: readlink [-n] [file ...]

Warning: Command failed: /bin/sh -c mvn clean package -DskipTests=true
readlink: illegal option -- f
usage: readlink [-n] [file ...]
 Use --force to continue.

安装android sdk 16就可以了。

你可能感兴趣的:(框架学习[Appium],测试工程师成长之路)