Comments (11)
export CHROMEDRIVER_CDNURL=http://npm.taobao.org/mirrors/chromedriver
已解决。
from macaca.
@TediWang macaca doctor
是通过的吗?
from macaca.
通过的,是不是chrome driver 下载的问题?
dst63460:macaca yb.wang$ macaca doctor
Node.js checklist:
node evn: /usr/local/bin/node
node version: v5.5.0
iOS checklist:
Xcode is installed at: /Applications/Xcode.app/Contents/Developer
Xcode Command Line Tools is ready, version: 2343.
ios_webkit_debug_proxy is installed at: /usr/local/bin/ios_webkit_debug_proxy
Android checklist:
JAVA version is 1.8.0_40
JAVA_HOME is set to /Library/Java/JavaVirtualMachines/jdk1.8.0_40.jdk/Contents/Home
ANDROID_HOME is set to /Users/yb.wang/Android_SDK/sdk
from macaca.
from macaca.
from macaca.
macaca doctor
Node.js checklist:
node env: /usr/local/bin/node
node version: v4.2.1
iOS checklist:
Xcode is installed at: /Applications/Xcode.app/Contents/Developer
Xcode Command Line Tools is ready, version: 2339.
ios_webkit_debug_proxy is installed at: /usr/local/bin/ios_webkit_debug_proxy
Android checklist:
JAVA version is 1.7.0_79
JAVA_HOME is set to /Library/Java/JavaVirtualMachines/jdk1.7.0_79.jdk/Contents/Home
ANDROID_HOME is set to /Users/jincheng/Documents/android-sdk-macosx
from macaca.
是JDK不够新吗?
from macaca.
@Solomo-vip java 版本ok的
from macaca.
`wanghaifengdeiMac:macaca-test-sample wanghf$ macaca doctor
Node.js checklist:
node env: /usr/local/bin/node
node version: v6.2.0
iOS checklist:
Xcode is installed at: /Applications/Xcode.app/Contents/Developer
Xcode Command Line Tools is ready, version: 2343.
ios_webkit_debug_proxy is installed at: /usr/local/bin/ios_webkit_debug_proxy
Android checklist:
JAVA version is 1.8.0_51
JAVA_HOME is set to /Library/Java/JavaVirtualMachines/jdk1.8.0_51.jdk/Contents/Home
ANDROID_HOME is set to /Users/wanghf/Tools/android-sdk-macosx
Platforms is set to /Users/wanghf/Tools/android-sdk-macosx/platforms/android-23
Android tools is set to /Users/wanghf/Tools/android-sdk-macosx/tools/android
Installed driver list:
wanghaifengdeiMac:macaca-test-sample wanghf$ make test-ios
npm WARN skippingAction Module is inside a symlinked module: not running remove [email protected] node_modules/macaca-cli/node_modules/chalk/node_modules/has-ansi/node_modules/ansi-regex
npm WARN skippingAction Module is inside a symlinked module: not running remove [email protected] node_modules/macaca-cli/node_modules/chalk/node_modules/strip-ansi/node_modules/ansi-regex
platform=ios macaca run --verbose -d ./macaca-test/macaca-mobile-sample.test.js
index.js:79:12 [master] pid:71255 webdriver server start with config:
{ port: 3456,
window: true,
ip: '192.168.145.166',
host: 'wanghaifengdeiMac.local',
loaded_time: '2016-05-31 11:01:17' }
middlewares.js:30:10 [master] pid:71255 base middlewares attached
router.js:118:10 [master] pid:71255 router set
webdriver sdk launchedmacaca mobile sample
responseHandler.js:24:12 [master] pid:71255 Recieve HTTP Request from Client: method: POST url: /wd/hub/session, jsonBody: {"desiredCapabilities":{"autoAcceptAlerts":true,"platformName":"iOS","platformVersion":"9.3","deviceName":"iPhone 5s","app":"/Users/chinaskin/macaca-test-sample/app/ios-app-bootstrap.zip"}}
session.js:24:10 [master] pid:71255 Creating session, sessionId: daddd75d-3804-4120-94f6-7b0b41c7f620.
index.js:70:14 [master] pid:71255 Error: Cannot find module 'macaca-ios'
at Function.Module._resolveFilename (module.js:440:15)
at Function.Module._load (module.js:388:25)
at Module.require (module.js:468:17)
at require (internal/module.js:20:19)
at WebdriverServer.detectDevice (/usr/local/lib/node_modules/macaca-cli/node_modules/webdriver-server/lib/server/index.js:67:20)
at WebdriverServer.start (/usr/local/lib/node_modules/macaca-cli/node_modules/webdriver-server/lib/server/index.js:39:22)
at next (native)
at onFulfilled (/usr/local/lib/node_modules/macaca-cli/node_modules/co/index.js:65:19)
at /usr/local/lib/node_modules/macaca-cli/node_modules/co/index.js:54:5
at Object.co (/usr/local/lib/node_modules/macaca-cli/node_modules/co/index.js:50:10)
please run:macaca install ios
helper.js:205:12 [master] pid:71255 Unzipping local app form /Users/chinaskin/macaca-test-sample/app/ios-app-bootstrap.zip
responseHandler.js:63:12 [master] pid:71255 Send Error Respone to Client: TypeError: Cannot read property 'startDevice' of undefined
responseHandler.js:69:14 [master] pid:71255 TypeError: Cannot read property 'startDevice' of undefined
at WebdriverServer.start (/usr/local/lib/node_modules/macaca-cli/node_modules/webdriver-server/lib/server/index.js:47:20)
at next (native)
at onFulfilled (/usr/local/lib/node_modules/macaca-cli/node_modules/co/index.js:65:19)
at /usr/local/lib/node_modules/macaca-cli/node_modules/co/index.js:54:5
at Object.co (/usr/local/lib/node_modules/macaca-cli/node_modules/co/index.js:50:10)
at Object.toPromise (/usr/local/lib/node_modules/macaca-cli/node_modules/co/index.js:118:63)
at next (/usr/local/lib/node_modules/macaca-cli/node_modules/co/index.js:99:29)
at onFulfilled (/usr/local/lib/node_modules/macaca-cli/node_modules/co/index.js:69:7)
at /usr/local/lib/node_modules/macaca-cli/node_modules/co/index.js:54:5
at Object.co (/usr/local/lib/node_modules/macaca-cli/node_modules/co/index.js:50:10)
TypeError: Cannot read property 'startDevice' of undefined
at WebdriverServer.start (/usr/local/lib/node_modules/macaca-cli/node_modules/webdriver-server/lib/server/index.js:47:20)
at next (native)
at onFulfilled (/usr/local/lib/node_modules/macaca-cli/node_modules/co/index.js:65:19)
at /usr/local/lib/node_modules/macaca-cli/node_modules/co/index.js:54:5
at Object.co (/usr/local/lib/node_modules/macaca-cli/node_modules/co/index.js:50:10)
at Object.toPromise (/usr/local/lib/node_modules/macaca-cli/node_modules/co/index.js:118:63)
at next (/usr/local/lib/node_modules/macaca-cli/node_modules/co/index.js:99:29)
at onFulfilled (/usr/local/lib/node_modules/macaca-cli/node_modules/co/index.js:69:7)
at /usr/local/lib/node_modules/macaca-cli/node_modules/co/index.js:54:5
at Object.co (/usr/local/lib/node_modules/macaca-cli/node_modules/co/index.js:50:10)
1) "before all" hook
responseHandler.js:24:12 [master] pid:71255 Recieve HTTP Request from Client: method: DELETE url: /wd/hub/session, jsonBody: {}
responseHandler.js:32:14 [master] pid:71255 Send HTTP Respone to Client: 405 Method Not Allowed2) "after all" hook
0 passing (2s)
2 failing
macaca mobile sample "before all" hook:
[init({"autoAcceptAlerts":true,"platformName":"iOS","platformVersion":"9.3","deviceName":"iPhone 5s","app":"/Users/chinaskin/macaca-test-sample/app/ios-app-bootstrap.zip"})] The environment you requested was unavailable.
Error: [init({"autoAcceptAlerts":true,"platformName":"iOS","platformVersion":"9.3","deviceName":"iPhone 5s","app":"app/ios-app-bootstrap.zip"})] The environment you requested was unavailable.
at node_modules/.npminstall/macaca-wd/1.0.3/macaca-wd/wd/lib/webdriver.js:134:15
at Request._callback (node_modules/.npminstall/macaca-wd/1.0.3/macaca-wd/wd/lib/http-utils.js:87:7)
at Request.self.callback (node_modules/.npminstall/request/2.55.0/request/request.js:368:22)
at Request. (node_modules/.npminstall/request/2.55.0/request/request.js:1219:14)
at IncomingMessage. (node_modules/.npminstall/request/2.55.0/request/request.js:1167:12)
at endReadableNT (_stream_readable.js:926:12)
at _combinedTickCallback (internal/process/next_tick.js:74:11)
at process._tickCallback (internal/process/next_tick.js:98:9)macaca mobile sample "after all" hook:
Error: [quit()] Unexpected data in simpleCallback.
at exports.newError (node_modules/.npminstall/macaca-wd/1.0.3/macaca-wd/wd/lib/utils.js:139:13)
at . (node_modules/.npminstall/macaca-wd/1.0.3/macaca-wd/wd/lib/callbacks.js:42:12)
at cb (node_modules/.npminstall/macaca-wd/1.0.3/macaca-wd/wd/lib/webdriver.js:165:22)
at node_modules/.npminstall/macaca-wd/1.0.3/macaca-wd/wd/lib/webdriver.js:179:5
at Request._callback (node_modules/.npminstall/macaca-wd/1.0.3/macaca-wd/wd/lib/http-utils.js:87:7)
at Request.self.callback (node_modules/.npminstall/request/2.55.0/request/request.js:368:22)
at Request. (node_modules/.npminstall/request/2.55.0/request/request.js:1219:14)
at IncomingMessage. (node_modules/.npminstall/request/2.55.0/request/request.js:1167:12)
at endReadableNT (_stream_readable.js:926:12)
at _combinedTickCallback (internal/process/next_tick.js:74:11)
at process._tickCallback (internal/process/next_tick.js:98:9)Test completed!
make: *** [test-ios] Error 2
wanghaifengdeiMac:macaca-test-sample wanghf$`
请问这是什么报错,该如何解决?
from macaca.
@wangcityboy npm i macaca-ios -g
from macaca.
@TediWang 我的也是ubuntu 但是运行的时候报错 能留个联系方式请教下么?
from macaca.
Related Issues (20)
- 回放Android 测试 生成的截图无法在测试报告中显示出来 HOT 9
- 求教一下 安卓这种自定义弹窗 如何在弹窗上选择值? HOT 3
- Error: read ECONNRESET at TCP.onStreamRead (internal/stream_base_commons.js:205:27) HOT 5
- Blank screen for the preview window for IOS Simulators HOT 2
- XCTestWD在真机上正常运行,命令行执行app-inspector -u xxxx后,提示:Terminated due to signal 9 HOT 2
- Macaca 支持桌面端应用么 怎么定位桌面端应用元素 HOT 4
- Macaca 支持桌面端应用么 怎么定位桌面端应用元素 HOT 2
- macaca server运行失败 HOT 9
- 请问通过定位如何获取web img的src? HOT 3
- iOS-deploy issue while installing iOS-macaca driver HOT 1
- 报错 Invalid listen port specified in argument '8001' 路径:xctesghttps://gist.github.com/paradite/1569c4012dd1bdb3d71213b536bb5a05 无法访问 HOT 4
- Cannot use the latest version of chrome-driver HOT 1
- 这个项目还有人维护吗? HOT 1
- app-inspector 执行后,打开浏览器看不到页面 HOT 3
- ios14.2,xcode12.2,运行iOS自动化测试报错[XCTestDriver sharedTestDriver]: unrecognized selector sent to class 0x100672ed8' HOT 1
- fetch fail HOT 6
- Android 10 及以上版本无法启动自动化调试,报“socket hang up” HOT 3
- xcode 12.5 ios 14.7.1 下 app-inspector 加载不出页面了 HOT 2
- sendKeys不能输入@和.字符,比如输入邮箱[email protected] 但是,填上去的内容却是testqqcom HOT 10
- Module compiled with Swift 5.3.1 cannot be imported by the Swift 5.4.2 compiler HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from macaca.