Giter VIP home page Giter VIP logo

Comments (11)

TediWang avatar TediWang commented on August 19, 2024 1

export CHROMEDRIVER_CDNURL=http://npm.taobao.org/mirrors/chromedriver

已解决。

from macaca.

xudafeng avatar xudafeng commented on August 19, 2024

@TediWang macaca doctor 是通过的吗?

from macaca.

TediWang avatar TediWang commented on August 19, 2024

通过的,是不是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.

xudafeng avatar xudafeng commented on August 19, 2024

@TediWang 参考 #7 (comment)

from macaca.

xudafeng avatar xudafeng commented on August 19, 2024

@TediWang 里面标重了

from macaca.

Solomo-vip avatar Solomo-vip commented on August 19, 2024

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.

Solomo-vip avatar Solomo-vip commented on August 19, 2024
是JDK不够新吗?

from macaca.

xudafeng avatar xudafeng commented on August 19, 2024

@Solomo-vip java 版本ok的

from macaca.

wangcityboy avatar wangcityboy commented on August 19, 2024

`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 launched

macaca 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 Allowed

2) "after all" hook

0 passing (2s)

2 failing

  1. 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)

  2. 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.

xudafeng avatar xudafeng commented on August 19, 2024

@wangcityboy npm i macaca-ios -g

from macaca.

zhangxiang1018 avatar zhangxiang1018 commented on August 19, 2024

@TediWang 我的也是ubuntu 但是运行的时候报错 能留个联系方式请教下么?

from macaca.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.