• #41 楼 @xdf 谢谢

  • 请问@xdf 下载 test-sample ,编译完运行的时候报错,下面是 log:

    index.js:62:12 [master] pid:29210 webdriver server start with config:
    { port: 3456,
    ip: '10.0.0.22',
    host: 'Erics-MacBook-Pro.local',
    loaded_time: '2016-03-22 15:51:06' }
    middlewares.js:31:10 [master] pid:29210 base middlewares attached
    router.js:101:10 [master] pid:29210 router set
    webdriver sdk launched

    macaca test sample

    1) "before all" hook

    2) "after all" hook

    0 passing (1s)
    2 failing

    1) macaca test sample "before all" hook:
    [init({"autoAcceptAlerts":true,"platformName":"iOS","platformVersion":"9.2","deviceName":"iPhone 5s","app":"/Users/eric/Project/macaca-test-sample/app/ios-app-bootstrap.zip"})] getaddrinfo ENOTFOUND localhost localhost:3456
    Error: getaddrinfo ENOTFOUND localhost localhost:3456
    at errnoException (dns.js:26:10)
    at GetAddrInfoReqWrap.onlookup as oncomplete

    2) macaca test sample "after all" hook:
    [quit()] getaddrinfo ENOTFOUND localhost localhost:3456
    Error: getaddrinfo ENOTFOUND localhost localhost:3456
    at errnoException (dns.js:26:10)
    at GetAddrInfoReqWrap.onlookup as oncomplete

    Test completed!

    我只需要测试 Android,参数是 Android