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:
Platform: Mac OSX 10.11.4
以下是log
`Last login: Sun May 8 22:30:30 on ttys000
admindeMBP:~ admin$ xcodebuild -showsdks
xcrun: error: invalid active developer path (/Applications/Xcode.app/Contents/Developer), missing xcrun at: /Applications/Xcode.app/Contents/Developer/usr/bin/xcrun
admindeMBP:~ admin$ xcode-select --print-path
/Applications/Xcode.app/Contents/Developer
admindeMBP:~ admin$ xcode-select
xcode-select: error: no command option given
Usage: xcode-select [options]
Print or change the path to the active developer directory. This directory
controls which tools are used for the Xcode command line tools (for example,
xcodebuild) as well as the BSD development commands (such as cc and make).
Options:
-h, --help print this help message and exit
-p, --print-path print the path of the active developer directory
-s , --switch set the path for the active developer directory
--install open a dialog for installation of the command line developer tools
-v, --version print the xcode-select version
-r, --reset reset to the default command line tools path
admindeMBP:~ admin$ xcode-select -v
xcode-select version 2343.
admindeMBP:~ admin$ xcode-select -install
xcode-select: error: invalid argument '-install'
Usage: xcode-select [options]
Print or change the path to the active developer directory. This directory
controls which tools are used for the Xcode command line tools (for example,
xcodebuild) as well as the BSD development commands (such as cc and make).
Options:
-h, --help print this help message and exit
-p, --print-path print the path of the active developer directory
-s , --switch set the path for the active developer directory
--install open a dialog for installation of the command line developer tools
-v, --version print the xcode-select version
-r, --reset reset to the default command line tools path
admindeMBP:~ admin$ xcode-select --install
xcode-select: error: command line tools are already installed, use "Software Update" to install updates
admindeMBP:~ admin$ pwd
/Users/admin
admindeMBP:~ admin$ cd ~/Downloads/
admindeMBP:Downloads admin$ ls
Sublime Text Build 3103.dmg node-v4.4.4.pkg
googlechrome_46.0.2490.71.1450163790.dmg node-v4.4.4.pkg.download
macaca-test-sample-master
admindeMBP:Downloads admin$ cd macaca-test-sample-master/
admindeMBP:macaca-test-sample-master admin$ ls
HISTORY.md Makefile app macaca-test package.json
LICENSE README.md index.js node_modules
admindeMBP:macaca-test-sample-master admin$ macaca run --verbose
index.js:93:12 [master] pid:663 webdriver server start with config:
{ port: 3456,
window: true,
ip: '192.168.1.38',
host: 'admindeMBP',
loaded_time: '2016-05-08 23:09:41' }
middlewares.js:30:10 [master] pid:663 base middlewares attached
router.js:117:10 [master] pid:663 router set
webdriver sdk launched
fs.js:60
throw err; // Forgot a callback but don't know where? Use NODE_DEBUG=fs
^
Error: EACCES: permission denied, open '/usr/local/lib/node_modules/macaca-cli/node_modules/webdriver-server/logs/digest-2016_05_08.log'
at Error (native)
admindeMBP:macaca-test-sample-master admin$ sudo macaca run --verbose
Password:
index.js:93:12 [master] pid:666 webdriver server start with config:
{ port: 3456,
window: true,
ip: '192.168.1.38',
host: 'admindeMBP',
loaded_time: '2016-05-08 23:10:02' }
middlewares.js:30:10 [master] pid:666 base middlewares attached
router.js:117:10 [master] pid:666 router set
webdriver sdk launched
macaca desktop sample
responseHandler.js:24:12 [master] pid:666 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/admin/Downloads/macaca-test-sample-master/app/ios-app-bootstrap.zip"}}
session.js:24:10 [master] pid:666 Creating session, sessionId: 0bb1db2f-4234-4c3e-814a-fcec9ceb0980.
helper.js:205:12 [master] pid:666 Unzipping local app form /Users/admin/Downloads/macaca-test-sample-master/app/ios-app-bootstrap.zip
responseHandler.js:63:12 [master] pid:666 Send Error Respone to Client: Error: Command failed: /bin/sh -c xcrun --sdk iphonesimulator --show-sdk-version
xcrun: error: invalid active developer path (/Applications/Xcode.app/Contents/Developer), missing xcrun at: /Applications/Xcode.app/Contents/Developer/usr/bin/xcrun
at ChildProcess.exithandler (child_process.js:213:12)
at emitTwo (events.js:87:13)
at ChildProcess.emit (events.js:172:7)
at maybeClose (internal/child_process.js:827:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:211:5)
at ChildProcess.exithandler (child_process.js:213:12)
at emitTwo (events.js:87:13)
at ChildProcess.emit (events.js:172:7)
at maybeClose (internal/child_process.js:827:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:211:5)
1) "before all" hook
responseHandler.js:24:12 [master] pid:666 Recieve HTTP Request from Client: method: DELETE url: /wd/hub/session, jsonBody: {}
responseHandler.js:32:14 [master] pid:666 Send HTTP Respone to Client: 405 Method Not Allowed
2) "after all" hook
macaca mobile sample
responseHandler.js:24:12 [master] pid:666 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/admin/Downloads/macaca-test-sample-master/app/ios-app-bootstrap.zip"}}
session.js:24:10 [master] pid:666 Creating session, sessionId: 213913b3-3ac9-4351-811c-81df293c4a8f.
helper.js:205:12 [master] pid:666 Unzipping local app form /Users/admin/Downloads/macaca-test-sample-master/app/ios-app-bootstrap.zip
responseHandler.js:63:12 [master] pid:666 Send Error Respone to Client: Error: Command failed: /bin/sh -c xcrun --sdk iphonesimulator --show-sdk-version
xcrun: error: invalid active developer path (/Applications/Xcode.app/Contents/Developer), missing xcrun at: /Applications/Xcode.app/Contents/Developer/usr/bin/xcrun
at ChildProcess.exithandler (child_process.js:213:12)
at emitTwo (events.js:87:13)
at ChildProcess.emit (events.js:172:7)
at maybeClose (internal/child_process.js:827:16)
at Socket.<anonymous> (internal/child_process.js:319:11)
at emitOne (events.js:77:13)
at Socket.emit (events.js:169:7)
at Pipe._onclose (net.js:477:12)
at ChildProcess.exithandler (child_process.js:213:12)
at emitTwo (events.js:87:13)
at ChildProcess.emit (events.js:172:7)
at maybeClose (internal/child_process.js:827:16)
at Socket.<anonymous> (internal/child_process.js:319:11)
at emitOne (events.js:77:13)
at Socket.emit (events.js:169:7)
at Pipe._onclose (net.js:477:12)
3) "before all" hook
responseHandler.js:24:12 [master] pid:666 Recieve HTTP Request from Client: method: DELETE url: /wd/hub/session, jsonBody: {}
responseHandler.js:32:14 [master] pid:666 Send HTTP Respone to Client: 405 Method Not Allowed
4) "after all" hook
macaca mobile sample
responseHandler.js:24:12 [master] pid:666 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/admin/Downloads/macaca-test-sample-master/app/ios-app-bootstrap.zip"}}
session.js:24:10 [master] pid:666 Creating session, sessionId: 4cfbc3b2-2198-4a4b-9245-0ce0c15bc17e.
helper.js:205:12 [master] pid:666 Unzipping local app form /Users/admin/Downloads/macaca-test-sample-master/app/ios-app-bootstrap.zip
responseHandler.js:63:12 [master] pid:666 Send Error Respone to Client: Error: Command failed: /bin/sh -c xcrun --sdk iphonesimulator --show-sdk-version
xcrun: error: invalid active developer path (/Applications/Xcode.app/Contents/Developer), missing xcrun at: /Applications/Xcode.app/Contents/Developer/usr/bin/xcrun
at ChildProcess.exithandler (child_process.js:213:12)
at emitTwo (events.js:87:13)
at ChildProcess.emit (events.js:172:7)
at maybeClose (internal/child_process.js:827:16)
at Socket.<anonymous> (internal/child_process.js:319:11)
at emitOne (events.js:77:13)
at Socket.emit (events.js:169:7)
at Pipe._onclose (net.js:477:12)
at ChildProcess.exithandler (child_process.js:213:12)
at emitTwo (events.js:87:13)
at ChildProcess.emit (events.js:172:7)
at maybeClose (internal/child_process.js:827:16)
at Socket.<anonymous> (internal/child_process.js:319:11)
at emitOne (events.js:77:13)
at Socket.emit (events.js:169:7)
at Pipe._onclose (net.js:477:12)
5) "before all" hook
responseHandler.js:24:12 [master] pid:666 Recieve HTTP Request from Client: method: DELETE url: /wd/hub/session, jsonBody: {}
responseHandler.js:32:14 [master] pid:666 Send HTTP Respone to Client: 405 Method Not Allowed
6) "after all" hook
0 passing (16s)
6 failing
1) macaca desktop sample "before all" hook:
[init({"autoAcceptAlerts":true,"platformName":"iOS","platformVersion":"9.3","deviceName":"iPhone 5s","app":"/Users/admin/Downloads/macaca-test-sample-master/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/webdriver-client/node_modules/macaca-wd/wd/lib/webdriver.js:134:15
at Request._callback (node_modules/webdriver-client/node_modules/macaca-wd/wd/lib/http-utils.js:87:7)
at Request.self.callback (node_modules/webdriver-client/node_modules/macaca-wd/node_modules/request/request.js:368:22)
at Request. (node_modules/webdriver-client/node_modules/macaca-wd/node_modules/request/request.js:1219:14)
at IncomingMessage. (node_modules/webdriver-client/node_modules/macaca-wd/node_modules/request/request.js:1167:12)
at endReadableNT (_stream_readable.js:913:12)
2) macaca desktop sample "after all" hook:
Error: [quit()] Unexpected data in simpleCallback.
at exports.newError (node_modules/webdriver-client/node_modules/macaca-wd/wd/lib/utils.js:139:13)
at null. (node_modules/webdriver-client/node_modules/macaca-wd/wd/lib/callbacks.js:42:12)
at cb (node_modules/webdriver-client/node_modules/macaca-wd/wd/lib/webdriver.js:165:22)
at node_modules/webdriver-client/node_modules/macaca-wd/wd/lib/webdriver.js:179:5
at Request._callback (node_modules/webdriver-client/node_modules/macaca-wd/wd/lib/http-utils.js:87:7)
at Request.self.callback (node_modules/webdriver-client/node_modules/macaca-wd/node_modules/request/request.js:368:22)
at Request. (node_modules/webdriver-client/node_modules/macaca-wd/node_modules/request/request.js:1219:14)
at IncomingMessage. (node_modules/webdriver-client/node_modules/macaca-wd/node_modules/request/request.js:1167:12)
at endReadableNT (_stream_readable.js:913:12)
3) macaca mobile sample "before all" hook:
[init({"autoAcceptAlerts":true,"platformName":"iOS","platformVersion":"9.3","deviceName":"iPhone 5s","app":"/Users/admin/Downloads/macaca-test-sample-master/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/webdriver-client/node_modules/macaca-wd/wd/lib/webdriver.js:134:15
at Request._callback (node_modules/webdriver-client/node_modules/macaca-wd/wd/lib/http-utils.js:87:7)
at Request.self.callback (node_modules/webdriver-client/node_modules/macaca-wd/node_modules/request/request.js:368:22)
at Request. (node_modules/webdriver-client/node_modules/macaca-wd/node_modules/request/request.js:1219:14)
at IncomingMessage. (node_modules/webdriver-client/node_modules/macaca-wd/node_modules/request/request.js:1167:12)
at endReadableNT (_stream_readable.js:913:12)
4) macaca mobile sample "after all" hook:
Error: [quit()] Unexpected data in simpleCallback.
at exports.newError (node_modules/webdriver-client/node_modules/macaca-wd/wd/lib/utils.js:139:13)
at null. (node_modules/webdriver-client/node_modules/macaca-wd/wd/lib/callbacks.js:42:12)
at cb (node_modules/webdriver-client/node_modules/macaca-wd/wd/lib/webdriver.js:165:22)
at node_modules/webdriver-client/node_modules/macaca-wd/wd/lib/webdriver.js:179:5
at Request._callback (node_modules/webdriver-client/node_modules/macaca-wd/wd/lib/http-utils.js:87:7)
at Request.self.callback (node_modules/webdriver-client/node_modules/macaca-wd/node_modules/request/request.js:368:22)
at Request. (node_modules/webdriver-client/node_modules/macaca-wd/node_modules/request/request.js:1219:14)
at IncomingMessage. (node_modules/webdriver-client/node_modules/macaca-wd/node_modules/request/request.js:1167:12)
at endReadableNT (_stream_readable.js:913:12)
5) macaca mobile sample "before all" hook:
[init({"autoAcceptAlerts":true,"platformName":"iOS","platformVersion":"9.3","deviceName":"iPhone 5s","app":"/Users/admin/Downloads/macaca-test-sample-master/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/webdriver-client/node_modules/macaca-wd/wd/lib/webdriver.js:134:15
at Request._callback (node_modules/webdriver-client/node_modules/macaca-wd/wd/lib/http-utils.js:87:7)
at Request.self.callback (node_modules/webdriver-client/node_modules/macaca-wd/node_modules/request/request.js:368:22)
at Request. (node_modules/webdriver-client/node_modules/macaca-wd/node_modules/request/request.js:1219:14)
at IncomingMessage. (node_modules/webdriver-client/node_modules/macaca-wd/node_modules/request/request.js:1167:12)
at endReadableNT (_stream_readable.js:913:12)
6) macaca mobile sample "after all" hook:
Error: [quit()] Unexpected data in simpleCallback.
at exports.newError (node_modules/webdriver-client/node_modules/macaca-wd/wd/lib/utils.js:139:13)
at null. (node_modules/webdriver-client/node_modules/macaca-wd/wd/lib/callbacks.js:42:12)
at cb (node_modules/webdriver-client/node_modules/macaca-wd/wd/lib/webdriver.js:165:22)
at node_modules/webdriver-client/node_modules/macaca-wd/wd/lib/webdriver.js:179:5
at Request._callback (node_modules/webdriver-client/node_modules/macaca-wd/wd/lib/http-utils.js:87:7)
at Request.self.callback (node_modules/webdriver-client/node_modules/macaca-wd/node_modules/request/request.js:368:22)
at Request. (node_modules/webdriver-client/node_modules/macaca-wd/node_modules/request/request.js:1219:14)
at IncomingMessage. (node_modules/webdriver-client/node_modules/macaca-wd/node_modules/request/request.js:1167:12)
at endReadableNT (_stream_readable.js:913:12)
Test completed!
admindeMBP:macaca-test-sample-master admin$ sudo macaca run --verbose
Password:
index.js:93:12 [master] pid:834 webdriver server start with config:
{ port: 3456,
window: true,
ip: '192.168.1.38',
host: 'admindeMBP',
loaded_time: '2016-05-08 23:40:00' }
middlewares.js:30:10 [master] pid:834 base middlewares attached
router.js:117:10 [master] pid:834 router set
webdriver sdk launched
macaca desktop sample
responseHandler.js:24:12 [master] pid:834 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/admin/Downloads/macaca-test-sample-master/app/ios-app-bootstrap.zip"}}
session.js:24:10 [master] pid:834 Creating session, sessionId: d7d5f9ba-3660-4290-be8e-424e9bf39d46.
helper.js:205:12 [master] pid:834 Unzipping local app form /Users/admin/Downloads/macaca-test-sample-master/app/ios-app-bootstrap.zip
Get bundleId xudafeng.ios-app-bootstrap from plist /tmp/ios-app-bootstrap.app/Info.plist
macaca-ios.js:181:10 [master] pid:834 Get available devices [{"name":"iPhone 4s","udid":"BF868431-DB6D-49ED-AEC6-8BC2D47AD4AC","state":"Creating","available":true,"runtime":"iOS 9.3"},{"name":"iPhone 5","udid":"906647C3-3A02-4F54-A3CC-1BCE244EC56B","state":"Creating","available":true,"runtime":"iOS 9.3"},{"name":"iPhone 5s","udid":"3D19B580-57B3-4A01-BEF7-769FE01810B0","state":"Creating","available":true,"runtime":"iOS 9.3"},{"name":"iPhone 6","udid":"C7331FF1-A10C-4654-ADA0-144706809A41","state":"Creating","available":true,"runtime":"iOS 9.3"},{"name":"iPhone 6 Plus","udid":"D2CCD036-DB6B-46A4-80FA-5624711A6566","state":"Creating","available":true,"runtime":"iOS 9.3"},{"name":"iPhone 6s","udid":"4FAF9D44-E8D6-4CCD-8FB6-ED34F31D742C","state":"Creating","available":true,"runtime":"iOS 9.3"},{"name":"iPhone 6s Plus","udid":"EE75DEDB-97F7-42DD-AC64-1B7E3592CD28","state":"Creating","available":true,"runtime":"iOS 9.3"},{"name":"iPad 2","udid":"A6B304BE-3633-4E45-9ED8-48ED97B1C5B7","state":"Creating","available":true,"runtime":"iOS 9.3"},{"name":"iPad Retina","udid":"C48EE6C6-8A8D-4A26-B253-77DF73DA03C1","state":"Creating","available":true,"runtime":"iOS 9.3"},{"name":"iPad Air","udid":"8D650329-590C-4581-B686-E70617CF938F","state":"Creating","available":true,"runtime":"iOS 9.3"},{"name":"iPad Air 2","udid":"93B6D9BF-9CAF-4015-B903-19EA47A9FED9","state":"Creating","available":true,"runtime":"iOS 9.3"},{"name":"iPad Pro","udid":"6723BB36-1615-4F22-A073-AA81E5D82758","state":"Creating","available":true,"runtime":"iOS 9.3"},{"name":"Apple TV 1080p","udid":"92B02225-BFE2-4820-B2F1-A224A0F0D211","state":"Shutdown","available":true,"runtime":"tvOS 9.2"},{"name":"Apple Watch - 38mm","udid":"6B0D9D07-BF95-46E9-9AC2-891371811CB3","state":"Shutdown","available":true,"runtime":"watchOS 2.2"},{"name":"Apple Watch - 42mm","udid":"E405D02A-5F5F-4312-BDEB-0AFE5329C1E8","state":"Shutdown","available":true,"runtime":"watchOS 2.2"}]
macaca-ios.js:220:12 [master] pid:834 Shutdown simulator 3D19B580-57B3-4A01-BEF7-769FE01810B0 failed Error: Command failed: /bin/sh -c xcrun simctl shutdown "3D19B580-57B3-4A01-BEF7-769FE01810B0"
An error was encountered processing the command (domain=com.apple.CoreSimulator.SimError, code=159):
Unable to shutdown device in current state: Shutdown
responseHandler.js:63:12 [master] pid:834 Send Error Respone to Client: Error: Command failed: /bin/sh -c open -a Simulator --args -CurrentDeviceUDID "3D19B580-57B3-4A01-BEF7-769FE01810B0"
The application /Users/admin/.Trash/Xcode 下午11.37.50.app/Contents/Developer/Applications/Simulator.app cannot be opened because it is in the Trash.
responseHandler.js:69:14 [master] pid:834 Error: Command failed: /bin/sh -c open -a Simulator --args -CurrentDeviceUDID "3D19B580-57B3-4A01-BEF7-769FE01810B0"
The application /Users/admin/.Trash/Xcode 下午11.37.50.app/Contents/Developer/Applications/Simulator.app cannot be opened because it is in the Trash.
at ChildProcess.exithandler (child_process.js:213:12)
at emitTwo (events.js:87:13)
at ChildProcess.emit (events.js:172:7)
at maybeClose (internal/child_process.js:827:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:211:5)
Error: Command failed: /bin/sh -c open -a Simulator --args -CurrentDeviceUDID "3D19B580-57B3-4A01-BEF7-769FE01810B0"
The application /Users/admin/.Trash/Xcode 下午11.37.50.app/Contents/Developer/Applications/Simulator.app cannot be opened because it is in the Trash.
at ChildProcess.exithandler (child_process.js:213:12)
at emitTwo (events.js:87:13)
at ChildProcess.emit (events.js:172:7)
at maybeClose (internal/child_process.js:827:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:211:5)
1) "before all" hook
responseHandler.js:24:12 [master] pid:834 Recieve HTTP Request from Client: method: DELETE url: /wd/hub/session, jsonBody: {}
responseHandler.js:32:14 [master] pid:834 Send HTTP Respone to Client: 405 Method Not Allowed
2) "after all" hook
macaca mobile sample
responseHandler.js:24:12 [master] pid:834 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/admin/Downloads/macaca-test-sample-master/app/ios-app-bootstrap.zip"}}
session.js:24:10 [master] pid:834 Creating session, sessionId: df31179c-b46c-4dc8-8b29-3c4b5e278c17.
helper.js:205:12 [master] pid:834 Unzipping local app form /Users/admin/Downloads/macaca-test-sample-master/app/ios-app-bootstrap.zip
Get bundleId xudafeng.ios-app-bootstrap from plist /tmp/ios-app-bootstrap.app/Info.plist
macaca-ios.js:181:10 [master] pid:834 Get available devices [{"name":"iPhone 4s","udid":"BF868431-DB6D-49ED-AEC6-8BC2D47AD4AC","state":"Shutdown","available":true,"runtime":"iOS 9.3"},{"name":"iPhone 5","udid":"906647C3-3A02-4F54-A3CC-1BCE244EC56B","state":"Shutdown","available":true,"runtime":"iOS 9.3"},{"name":"iPhone 5s","udid":"3D19B580-57B3-4A01-BEF7-769FE01810B0","state":"Shutdown","available":true,"runtime":"iOS 9.3"},{"name":"iPhone 6","udid":"C7331FF1-A10C-4654-ADA0-144706809A41","state":"Shutdown","available":true,"runtime":"iOS 9.3"},{"name":"iPhone 6 Plus","udid":"D2CCD036-DB6B-46A4-80FA-5624711A6566","state":"Shutdown","available":true,"runtime":"iOS 9.3"},{"name":"iPhone 6s","udid":"4FAF9D44-E8D6-4CCD-8FB6-ED34F31D742C","state":"Shutdown","available":true,"runtime":"iOS 9.3"},{"name":"iPhone 6s Plus","udid":"EE75DEDB-97F7-42DD-AC64-1B7E3592CD28","state":"Shutdown","available":true,"runtime":"iOS 9.3"},{"name":"iPad 2","udid":"A6B304BE-3633-4E45-9ED8-48ED97B1C5B7","state":"Shutdown","available":true,"runtime":"iOS 9.3"},{"name":"iPad Retina","udid":"C48EE6C6-8A8D-4A26-B253-77DF73DA03C1","state":"Shutdown","available":true,"runtime":"iOS 9.3"},{"name":"iPad Air","udid":"8D650329-590C-4581-B686-E70617CF938F","state":"Shutdown","available":true,"runtime":"iOS 9.3"},{"name":"iPad Air 2","udid":"93B6D9BF-9CAF-4015-B903-19EA47A9FED9","state":"Shutdown","available":true,"runtime":"iOS 9.3"},{"name":"iPad Pro","udid":"6723BB36-1615-4F22-A073-AA81E5D82758","state":"Shutdown","available":true,"runtime":"iOS 9.3"},{"name":"Apple TV 1080p","udid":"92B02225-BFE2-4820-B2F1-A224A0F0D211","state":"Shutdown","available":true,"runtime":"tvOS 9.2"},{"name":"Apple Watch - 38mm","udid":"6B0D9D07-BF95-46E9-9AC2-891371811CB3","state":"Shutdown","available":true,"runtime":"watchOS 2.2"},{"name":"Apple Watch - 42mm","udid":"E405D02A-5F5F-4312-BDEB-0AFE5329C1E8","state":"Shutdown","available":true,"runtime":"watchOS 2.2"}]
macaca-ios.js:214:12 [master] pid:834 Kill simulator failed Error: Command failed: /bin/sh -c killAll Simulator
No matching processes were found
macaca-ios.js:220:12 [master] pid:834 Shutdown simulator 3D19B580-57B3-4A01-BEF7-769FE01810B0 failed Error: Command failed: /bin/sh -c xcrun simctl shutdown "3D19B580-57B3-4A01-BEF7-769FE01810B0"
An error was encountered processing the command (domain=com.apple.CoreSimulator.SimError, code=159):
Unable to shutdown device in current state: Shutdown
responseHandler.js:63:12 [master] pid:834 Send Error Respone to Client: Error: Simulator 3D19B580-57B3-4A01-BEF7-769FE01810B0 is not booted.
responseHandler.js:69:14 [master] pid:834 Error: Simulator 3D19B580-57B3-4A01-BEF7-769FE01810B0 is not booted.
at /usr/local/lib/node_modules/macaca-cli/node_modules/webdriver-server/node_modules/node-installer/node_modules/macaca-ios/lib/macaca-ios.js:237:20
at process._tickCallback (node.js:369:9)
Error: Simulator 3D19B580-57B3-4A01-BEF7-769FE01810B0 is not booted.
at /usr/local/lib/node_modules/macaca-cli/node_modules/webdriver-server/node_modules/node-installer/node_modules/macaca-ios/lib/macaca-ios.js:237:20
at process._tickCallback (node.js:369:9)
3) "before all" hook
responseHandler.js:24:12 [master] pid:834 Recieve HTTP Request from Client: method: DELETE url: /wd/hub/session, jsonBody: {}
responseHandler.js:32:14 [master] pid:834 Send HTTP Respone to Client: 405 Method Not Allowed
4) "after all" hook
macaca mobile sample
responseHandler.js:24:12 [master] pid:834 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/admin/Downloads/macaca-test-sample-master/app/ios-app-bootstrap.zip"}}
session.js:24:10 [master] pid:834 Creating session, sessionId: a97de82e-a395-4ff4-b21d-ee7b6b76854c.
helper.js:205:12 [master] pid:834 Unzipping local app form /Users/admin/Downloads/macaca-test-sample-master/app/ios-app-bootstrap.zip
Get bundleId xudafeng.ios-app-bootstrap from plist /tmp/ios-app-bootstrap.app/Info.plist
macaca-ios.js:181:10 [master] pid:834 Get available devices [{"name":"iPhone 4s","udid":"BF868431-DB6D-49ED-AEC6-8BC2D47AD4AC","state":"Shutdown","available":true,"runtime":"iOS 9.3"},{"name":"iPhone 5","udid":"906647C3-3A02-4F54-A3CC-1BCE244EC56B","state":"Shutdown","available":true,"runtime":"iOS 9.3"},{"name":"iPhone 5s","udid":"3D19B580-57B3-4A01-BEF7-769FE01810B0","state":"Shutdown","available":true,"runtime":"iOS 9.3"},{"name":"iPhone 6","udid":"C7331FF1-A10C-4654-ADA0-144706809A41","state":"Shutdown","available":true,"runtime":"iOS 9.3"},{"name":"iPhone 6 Plus","udid":"D2CCD036-DB6B-46A4-80FA-5624711A6566","state":"Shutdown","available":true,"runtime":"iOS 9.3"},{"name":"iPhone 6s","udid":"4FAF9D44-E8D6-4CCD-8FB6-ED34F31D742C","state":"Shutdown","available":true,"runtime":"iOS 9.3"},{"name":"iPhone 6s Plus","udid":"EE75DEDB-97F7-42DD-AC64-1B7E3592CD28","state":"Shutdown","available":true,"runtime":"iOS 9.3"},{"name":"iPad 2","udid":"A6B304BE-3633-4E45-9ED8-48ED97B1C5B7","state":"Shutdown","available":true,"runtime":"iOS 9.3"},{"name":"iPad Retina","udid":"C48EE6C6-8A8D-4A26-B253-77DF73DA03C1","state":"Shutdown","available":true,"runtime":"iOS 9.3"},{"name":"iPad Air","udid":"8D650329-590C-4581-B686-E70617CF938F","state":"Shutdown","available":true,"runtime":"iOS 9.3"},{"name":"iPad Air 2","udid":"93B6D9BF-9CAF-4015-B903-19EA47A9FED9","state":"Shutdown","available":true,"runtime":"iOS 9.3"},{"name":"iPad Pro","udid":"6723BB36-1615-4F22-A073-AA81E5D82758","state":"Shutdown","available":true,"runtime":"iOS 9.3"},{"name":"Apple TV 1080p","udid":"92B02225-BFE2-4820-B2F1-A224A0F0D211","state":"Shutdown","available":true,"runtime":"tvOS 9.2"},{"name":"Apple Watch - 38mm","udid":"6B0D9D07-BF95-46E9-9AC2-891371811CB3","state":"Shutdown","available":true,"runtime":"watchOS 2.2"},{"name":"Apple Watch - 42mm","udid":"E405D02A-5F5F-4312-BDEB-0AFE5329C1E8","state":"Shutdown","available":true,"runtime":"watchOS 2.2"}]
macaca-ios.js:220:12 [master] pid:834 Shutdown simulator 3D19B580-57B3-4A01-BEF7-769FE01810B0 failed Error: Command failed: /bin/sh -c xcrun simctl shutdown "3D19B580-57B3-4A01-BEF7-769FE01810B0"
An error was encountered processing the command (domain=com.apple.CoreSimulator.SimError, code=159):
Unable to shutdown device in current state: Shutdown
responseHandler.js:63:12 [master] pid:834 Send Error Respone to Client: Error: Simulator 3D19B580-57B3-4A01-BEF7-769FE01810B0 is not booted.
responseHandler.js:69:14 [master] pid:834 Error: Simulator 3D19B580-57B3-4A01-BEF7-769FE01810B0 is not booted.
at /usr/local/lib/node_modules/macaca-cli/node_modules/webdriver-server/node_modules/node-installer/node_modules/macaca-ios/lib/macaca-ios.js:237:20
Error: Simulator 3D19B580-57B3-4A01-BEF7-769FE01810B0 is not booted.
at /usr/local/lib/node_modules/macaca-cli/node_modules/webdriver-server/node_modules/node-installer/node_modules/macaca-ios/lib/macaca-ios.js:237:20
5) "before all" hook
responseHandler.js:24:12 [master] pid:834 Recieve HTTP Request from Client: method: DELETE url: /wd/hub/session, jsonBody: {}
responseHandler.js:32:14 [master] pid:834 Send HTTP Respone to Client: 405 Method Not Allowed
6) "after all" hook
0 passing (2m)
6 failing
1) macaca desktop sample "before all" hook:
[init({"autoAcceptAlerts":true,"platformName":"iOS","platformVersion":"9.3","deviceName":"iPhone 5s","app":"/Users/admin/Downloads/macaca-test-sample-master/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/webdriver-client/node_modules/macaca-wd/wd/lib/webdriver.js:134:15
at Request._callback (node_modules/webdriver-client/node_modules/macaca-wd/wd/lib/http-utils.js:87:7)
at Request.self.callback (node_modules/webdriver-client/node_modules/macaca-wd/node_modules/request/request.js:368:22)
at Request. (node_modules/webdriver-client/node_modules/macaca-wd/node_modules/request/request.js:1219:14)
at IncomingMessage. (node_modules/webdriver-client/node_modules/macaca-wd/node_modules/request/request.js:1167:12)
at endReadableNT (_stream_readable.js:913:12)
2) macaca desktop sample "after all" hook:
Error: [quit()] Unexpected data in simpleCallback.
at exports.newError (node_modules/webdriver-client/node_modules/macaca-wd/wd/lib/utils.js:139:13)
at null. (node_modules/webdriver-client/node_modules/macaca-wd/wd/lib/callbacks.js:42:12)
at cb (node_modules/webdriver-client/node_modules/macaca-wd/wd/lib/webdriver.js:165:22)
at node_modules/webdriver-client/node_modules/macaca-wd/wd/lib/webdriver.js:179:5
at Request._callback (node_modules/webdriver-client/node_modules/macaca-wd/wd/lib/http-utils.js:87:7)
at Request.self.callback (node_modules/webdriver-client/node_modules/macaca-wd/node_modules/request/request.js:368:22)
at Request. (node_modules/webdriver-client/node_modules/macaca-wd/node_modules/request/request.js:1219:14)
at IncomingMessage. (node_modules/webdriver-client/node_modules/macaca-wd/node_modules/request/request.js:1167:12)
at endReadableNT (_stream_readable.js:913:12)
3) macaca mobile sample "before all" hook:
[init({"autoAcceptAlerts":true,"platformName":"iOS","platformVersion":"9.3","deviceName":"iPhone 5s","app":"/Users/admin/Downloads/macaca-test-sample-master/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/webdriver-client/node_modules/macaca-wd/wd/lib/webdriver.js:134:15
at Request._callback (node_modules/webdriver-client/node_modules/macaca-wd/wd/lib/http-utils.js:87:7)
at Request.self.callback (node_modules/webdriver-client/node_modules/macaca-wd/node_modules/request/request.js:368:22)
at Request. (node_modules/webdriver-client/node_modules/macaca-wd/node_modules/request/request.js:1219:14)
at IncomingMessage. (node_modules/webdriver-client/node_modules/macaca-wd/node_modules/request/request.js:1167:12)
at endReadableNT (_stream_readable.js:913:12)
4) macaca mobile sample "after all" hook:
Error: [quit()] Unexpected data in simpleCallback.
at exports.newError (node_modules/webdriver-client/node_modules/macaca-wd/wd/lib/utils.js:139:13)
at null. (node_modules/webdriver-client/node_modules/macaca-wd/wd/lib/callbacks.js:42:12)
at cb (node_modules/webdriver-client/node_modules/macaca-wd/wd/lib/webdriver.js:165:22)
at node_modules/webdriver-client/node_modules/macaca-wd/wd/lib/webdriver.js:179:5
at Request._callback (node_modules/webdriver-client/node_modules/macaca-wd/wd/lib/http-utils.js:87:7)
at Request.self.callback (node_modules/webdriver-client/node_modules/macaca-wd/node_modules/request/request.js:368:22)
at Request. (node_modules/webdriver-client/node_modules/macaca-wd/node_modules/request/request.js:1219:14)
at IncomingMessage. (node_modules/webdriver-client/node_modules/macaca-wd/node_modules/request/request.js:1167:12)
at endReadableNT (_stream_readable.js:913:12)
5) macaca mobile sample "before all" hook:
[init({"autoAcceptAlerts":true,"platformName":"iOS","platformVersion":"9.3","deviceName":"iPhone 5s","app":"/Users/admin/Downloads/macaca-test-sample-master/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/webdriver-client/node_modules/macaca-wd/wd/lib/webdriver.js:134:15
at Request._callback (node_modules/webdriver-client/node_modules/macaca-wd/wd/lib/http-utils.js:87:7)
at Request.self.callback (node_modules/webdriver-client/node_modules/macaca-wd/node_modules/request/request.js:368:22)
at Request. (node_modules/webdriver-client/node_modules/macaca-wd/node_modules/request/request.js:1219:14)
at IncomingMessage. (node_modules/webdriver-client/node_modules/macaca-wd/node_modules/request/request.js:1167:12)
at endReadableNT (_stream_readable.js:913:12)
6) macaca mobile sample "after all" hook:
Error: [quit()] Unexpected data in simpleCallback.
at exports.newError (node_modules/webdriver-client/node_modules/macaca-wd/wd/lib/utils.js:139:13)
at null. (node_modules/webdriver-client/node_modules/macaca-wd/wd/lib/callbacks.js:42:12)
at cb (node_modules/webdriver-client/node_modules/macaca-wd/wd/lib/webdriver.js:165:22)
at node_modules/webdriver-client/node_modules/macaca-wd/wd/lib/webdriver.js:179:5
at Request._callback (node_modules/webdriver-client/node_modules/macaca-wd/wd/lib/http-utils.js:87:7)
at Request.self.callback (node_modules/webdriver-client/node_modules/macaca-wd/node_modules/request/request.js:368:22)
at Request. (node_modules/webdriver-client/node_modules/macaca-wd/node_modules/request/request.js:1219:14)
at IncomingMessage. (node_modules/webdriver-client/node_modules/macaca-wd/node_modules/request/request.js:1167:12)
at endReadableNT (_stream_readable.js:913:12)
Test completed!
admindeMBP:macaca-test-sample-master admin$ sudo macaca run --verbose
Password:
index.js:93:12 [master] pid:1144 webdriver server start with config:
{ port: 3456,
window: true,
ip: '192.168.1.38',
host: 'admindeMBP',
loaded_time: '2016-05-09 00:04:37' }
middlewares.js:30:10 [master] pid:1144 base middlewares attached
router.js:117:10 [master] pid:1144 router set
webdriver sdk launched
macaca desktop sample
responseHandler.js:24:12 [master] pid:1144 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/admin/Downloads/macaca-test-sample-master/app/ios-app-bootstrap.zip"}}
session.js:24:10 [master] pid:1144 Creating session, sessionId: 675b21a0-7ee6-4f6b-9886-dd810ccb94f6.
helper.js:205:12 [master] pid:1144 Unzipping local app form /Users/admin/Downloads/macaca-test-sample-master/app/ios-app-bootstrap.zip
Get bundleId xudafeng.ios-app-bootstrap from plist /tmp/ios-app-bootstrap.app/Info.plist
macaca-ios.js:181:10 [master] pid:1144 Get available devices [{"name":"iPhone 4s","udid":"BF868431-DB6D-49ED-AEC6-8BC2D47AD4AC","state":"Shutdown","available":true,"runtime":"iOS 9.3"},{"name":"iPhone 5","udid":"906647C3-3A02-4F54-A3CC-1BCE244EC56B","state":"Shutdown","available":true,"runtime":"iOS 9.3"},{"name":"iPhone 5s","udid":"3D19B580-57B3-4A01-BEF7-769FE01810B0","state":"Shutdown","available":true,"runtime":"iOS 9.3"},{"name":"iPhone 6","udid":"C7331FF1-A10C-4654-ADA0-144706809A41","state":"Shutdown","available":true,"runtime":"iOS 9.3"},{"name":"iPhone 6 Plus","udid":"D2CCD036-DB6B-46A4-80FA-5624711A6566","state":"Shutdown","available":true,"runtime":"iOS 9.3"},{"name":"iPhone 6s","udid":"4FAF9D44-E8D6-4CCD-8FB6-ED34F31D742C","state":"Shutdown","available":true,"runtime":"iOS 9.3"},{"name":"iPhone 6s Plus","udid":"EE75DEDB-97F7-42DD-AC64-1B7E3592CD28","state":"Shutdown","available":true,"runtime":"iOS 9.3"},{"name":"iPad 2","udid":"A6B304BE-3633-4E45-9ED8-48ED97B1C5B7","state":"Shutdown","available":true,"runtime":"iOS 9.3"},{"name":"iPad Retina","udid":"C48EE6C6-8A8D-4A26-B253-77DF73DA03C1","state":"Shutdown","available":true,"runtime":"iOS 9.3"},{"name":"iPad Air","udid":"8D650329-590C-4581-B686-E70617CF938F","state":"Shutdown","available":true,"runtime":"iOS 9.3"},{"name":"iPad Air 2","udid":"93B6D9BF-9CAF-4015-B903-19EA47A9FED9","state":"Shutdown","available":true,"runtime":"iOS 9.3"},{"name":"iPad Pro","udid":"6723BB36-1615-4F22-A073-AA81E5D82758","state":"Shutdown","available":true,"runtime":"iOS 9.3"},{"name":"Apple TV 1080p","udid":"92B02225-BFE2-4820-B2F1-A224A0F0D211","state":"Shutdown","available":true,"runtime":"tvOS 9.2"},{"name":"Apple Watch - 38mm","udid":"6B0D9D07-BF95-46E9-9AC2-891371811CB3","state":"Shutdown","available":true,"runtime":"watchOS 2.2"},{"name":"Apple Watch - 42mm","udid":"E405D02A-5F5F-4312-BDEB-0AFE5329C1E8","state":"Shutdown","available":true,"runtime":"watchOS 2.2"}]
macaca-ios.js:220:12 [master] pid:1144 Shutdown simulator 3D19B580-57B3-4A01-BEF7-769FE01810B0 failed Error: Command failed: /bin/sh -c xcrun simctl shutdown "3D19B580-57B3-4A01-BEF7-769FE01810B0"
An error was encountered processing the command (domain=com.apple.CoreSimulator.SimError, code=159):
Unable to shutdown device in current state: Shutdown
responseHandler.js:63:12 [master] pid:1144 Send Error Respone to Client: Error: Simulator 3D19B580-57B3-4A01-BEF7-769FE01810B0 is not booted.
responseHandler.js:69:14 [master] pid:1144 Error: Simulator 3D19B580-57B3-4A01-BEF7-769FE01810B0 is not booted.
at /usr/local/lib/node_modules/macaca-cli/node_modules/webdriver-server/node_modules/node-installer/node_modules/macaca-ios/lib/macaca-ios.js:237:20
Error: Simulator 3D19B580-57B3-4A01-BEF7-769FE01810B0 is not booted.
at /usr/local/lib/node_modules/macaca-cli/node_modules/webdriver-server/node_modules/node-installer/node_modules/macaca-ios/lib/macaca-ios.js:237:20
1) "before all" hook
responseHandler.js:24:12 [master] pid:1144 Recieve HTTP Request from Client: method: DELETE url: /wd/hub/session, jsonBody: {}
responseHandler.js:32:14 [master] pid:1144 Send HTTP Respone to Client: 405 Method Not Allowed
2) "after all" hook
macaca mobile sample
responseHandler.js:24:12 [master] pid:1144 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/admin/Downloads/macaca-test-sample-master/app/ios-app-bootstrap.zip"}}
session.js:24:10 [master] pid:1144 Creating session, sessionId: 33ac6dff-7682-4a11-97b7-4a32e7a3146b.
helper.js:205:12 [master] pid:1144 Unzipping local app form /Users/admin/Downloads/macaca-test-sample-master/app/ios-app-bootstrap.zip
Get bundleId xudafeng.ios-app-bootstrap from plist /tmp/ios-app-bootstrap.app/Info.plist
macaca-ios.js:181:10 [master] pid:1144 Get available devices [{"name":"iPhone 4s","udid":"BF868431-DB6D-49ED-AEC6-8BC2D47AD4AC","state":"Shutdown","available":true,"runtime":"iOS 9.3"},{"name":"iPhone 5","udid":"906647C3-3A02-4F54-A3CC-1BCE244EC56B","state":"Shutdown","available":true,"runtime":"iOS 9.3"},{"name":"iPhone 5s","udid":"3D19B580-57B3-4A01-BEF7-769FE01810B0","state":"Shutdown","available":true,"runtime":"iOS 9.3"},{"name":"iPhone 6","udid":"C7331FF1-A10C-4654-ADA0-144706809A41","state":"Shutdown","available":true,"runtime":"iOS 9.3"},{"name":"iPhone 6 Plus","udid":"D2CCD036-DB6B-46A4-80FA-5624711A6566","state":"Shutdown","available":true,"runtime":"iOS 9.3"},{"name":"iPhone 6s","udid":"4FAF9D44-E8D6-4CCD-8FB6-ED34F31D742C","state":"Shutdown","available":true,"runtime":"iOS 9.3"},{"name":"iPhone 6s Plus","udid":"EE75DEDB-97F7-42DD-AC64-1B7E3592CD28","state":"Shutdown","available":true,"runtime":"iOS 9.3"},{"name":"iPad 2","udid":"A6B304BE-3633-4E45-9ED8-48ED97B1C5B7","state":"Shutdown","available":true,"runtime":"iOS 9.3"},{"name":"iPad Retina","udid":"C48EE6C6-8A8D-4A26-B253-77DF73DA03C1","state":"Shutdown","available":true,"runtime":"iOS 9.3"},{"name":"iPad Air","udid":"8D650329-590C-4581-B686-E70617CF938F","state":"Shutdown","available":true,"runtime":"iOS 9.3"},{"name":"iPad Air 2","udid":"93B6D9BF-9CAF-4015-B903-19EA47A9FED9","state":"Shutdown","available":true,"runtime":"iOS 9.3"},{"name":"iPad Pro","udid":"6723BB36-1615-4F22-A073-AA81E5D82758","state":"Shutdown","available":true,"runtime":"iOS 9.3"},{"name":"Apple TV 1080p","udid":"92B02225-BFE2-4820-B2F1-A224A0F0D211","state":"Shutdown","available":true,"runtime":"tvOS 9.2"},{"name":"Apple Watch - 38mm","udid":"6B0D9D07-BF95-46E9-9AC2-891371811CB3","state":"Shutdown","available":true,"runtime":"watchOS 2.2"},{"name":"Apple Watch - 42mm","udid":"E405D02A-5F5F-4312-BDEB-0AFE5329C1E8","state":"Shutdown","available":true,"runtime":"watchOS 2.2"}]
macaca-ios.js:220:12 [master] pid:1144 Shutdown simulator 3D19B580-57B3-4A01-BEF7-769FE01810B0 failed Error: Command failed: /bin/sh -c xcrun simctl shutdown "3D19B580-57B3-4A01-BEF7-769FE01810B0"
An error was encountered processing the command (domain=com.apple.CoreSimulator.SimError, code=159):
Unable to shutdown device in current state: Shutdown
responseHandler.js:63:12 [master] pid:1144 Send Error Respone to Client: Error: Simulator 3D19B580-57B3-4A01-BEF7-769FE01810B0 is not booted.
responseHandler.js:69:14 [master] pid:1144 Error: Simulator 3D19B580-57B3-4A01-BEF7-769FE01810B0 is not booted.
at /usr/local/lib/node_modules/macaca-cli/node_modules/webdriver-server/node_modules/node-installer/node_modules/macaca-ios/lib/macaca-ios.js:237:20
Error: Simulator 3D19B580-57B3-4A01-BEF7-769FE01810B0 is not booted.
at /usr/local/lib/node_modules/macaca-cli/node_modules/webdriver-server/node_modules/node-installer/node_modules/macaca-ios/lib/macaca-ios.js:237:20
3) "before all" hook
responseHandler.js:24:12 [master] pid:1144 Recieve HTTP Request from Client: method: DELETE url: /wd/hub/session, jsonBody: {}
responseHandler.js:32:14 [master] pid:1144 Send HTTP Respone to Client: 405 Method Not Allowed
4) "after all" hook
macaca mobile sample
responseHandler.js:24:12 [master] pid:1144 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/admin/Downloads/macaca-test-sample-master/app/ios-app-bootstrap.zip"}}
session.js:24:10 [master] pid:1144 Creating session, sessionId: 86682e7d-603d-409b-ab70-cec84faac600.
helper.js:205:12 [master] pid:1144 Unzipping local app form /Users/admin/Downloads/macaca-test-sample-master/app/ios-app-bootstrap.zip
Get bundleId xudafeng.ios-app-bootstrap from plist /tmp/ios-app-bootstrap.app/Info.plist
macaca-ios.js:181:10 [master] pid:1144 Get available devices [{"name":"iPhone 4s","udid":"BF868431-DB6D-49ED-AEC6-8BC2D47AD4AC","state":"Shutdown","available":true,"runtime":"iOS 9.3"},{"name":"iPhone 5","udid":"906647C3-3A02-4F54-A3CC-1BCE244EC56B","state":"Shutdown","available":true,"runtime":"iOS 9.3"},{"name":"iPhone 5s","udid":"3D19B580-57B3-4A01-BEF7-769FE01810B0","state":"Shutdown","available":true,"runtime":"iOS 9.3"},{"name":"iPhone 6","udid":"C7331FF1-A10C-4654-ADA0-144706809A41","state":"Shutdown","available":true,"runtime":"iOS 9.3"},{"name":"iPhone 6 Plus","udid":"D2CCD036-DB6B-46A4-80FA-5624711A6566","state":"Shutdown","available":true,"runtime":"iOS 9.3"},{"name":"iPhone 6s","udid":"4FAF9D44-E8D6-4CCD-8FB6-ED34F31D742C","state":"Shutdown","available":true,"runtime":"iOS 9.3"},{"name":"iPhone 6s Plus","udid":"EE75DEDB-97F7-42DD-AC64-1B7E3592CD28","state":"Shutdown","available":true,"runtime":"iOS 9.3"},{"name":"iPad 2","udid":"A6B304BE-3633-4E45-9ED8-48ED97B1C5B7","state":"Shutdown","available":true,"runtime":"iOS 9.3"},{"name":"iPad Retina","udid":"C48EE6C6-8A8D-4A26-B253-77DF73DA03C1","state":"Shutdown","available":true,"runtime":"iOS 9.3"},{"name":"iPad Air","udid":"8D650329-590C-4581-B686-E70617CF938F","state":"Shutdown","available":true,"runtime":"iOS 9.3"},{"name":"iPad Air 2","udid":"93B6D9BF-9CAF-4015-B903-19EA47A9FED9","state":"Shutdown","available":true,"runtime":"iOS 9.3"},{"name":"iPad Pro","udid":"6723BB36-1615-4F22-A073-AA81E5D82758","state":"Shutdown","available":true,"runtime":"iOS 9.3"},{"name":"Apple TV 1080p","udid":"92B02225-BFE2-4820-B2F1-A224A0F0D211","state":"Shutdown","available":true,"runtime":"tvOS 9.2"},{"name":"Apple Watch - 38mm","udid":"6B0D9D07-BF95-46E9-9AC2-891371811CB3","state":"Shutdown","available":true,"runtime":"watchOS 2.2"},{"name":"Apple Watch - 42mm","udid":"E405D02A-5F5F-4312-BDEB-0AFE5329C1E8","state":"Shutdown","available":true,"runtime":"watchOS 2.2"}]
macaca-ios.js:220:12 [master] pid:1144 Shutdown simulator 3D19B580-57B3-4A01-BEF7-769FE01810B0 failed Error: Command failed: /bin/sh -c xcrun simctl shutdown "3D19B580-57B3-4A01-BEF7-769FE01810B0"
An error was encountered processing the command (domain=com.apple.CoreSimulator.SimError, code=159):
Unable to shutdown device in current state: Shutdown
responseHandler.js:63:12 [master] pid:1144 Send Error Respone to Client: Error: Simulator 3D19B580-57B3-4A01-BEF7-769FE01810B0 is not booted.
responseHandler.js:69:14 [master] pid:1144 Error: Simulator 3D19B580-57B3-4A01-BEF7-769FE01810B0 is not booted.
at /usr/local/lib/node_modules/macaca-cli/node_modules/webdriver-server/node_modules/node-installer/node_modules/macaca-ios/lib/macaca-ios.js:237:20
Error: Simulator 3D19B580-57B3-4A01-BEF7-769FE01810B0 is not booted.
at /usr/local/lib/node_modules/macaca-cli/node_modules/webdriver-server/node_modules/node-installer/node_modules/macaca-ios/lib/macaca-ios.js:237:20
5) "before all" hook
responseHandler.js:24:12 [master] pid:1144 Recieve HTTP Request from Client: method: DELETE url: /wd/hub/session, jsonBody: {}
responseHandler.js:32:14 [master] pid:1144 Send HTTP Respone to Client: 405 Method Not Allowed
6) "after all" hook
0 passing (2m)
6 failing
1) macaca desktop sample "before all" hook:
[init({"autoAcceptAlerts":true,"platformName":"iOS","platformVersion":"9.3","deviceName":"iPhone 5s","app":"/Users/admin/Downloads/macaca-test-sample-master/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/webdriver-client/node_modules/macaca-wd/wd/lib/webdriver.js:134:15
at Request._callback (node_modules/webdriver-client/node_modules/macaca-wd/wd/lib/http-utils.js:87:7)
at Request.self.callback (node_modules/webdriver-client/node_modules/macaca-wd/node_modules/request/request.js:368:22)
at Request. (node_modules/webdriver-client/node_modules/macaca-wd/node_modules/request/request.js:1219:14)
at IncomingMessage. (node_modules/webdriver-client/node_modules/macaca-wd/node_modules/request/request.js:1167:12)
at endReadableNT (_stream_readable.js:913:12)
2) macaca desktop sample "after all" hook:
Error: [quit()] Unexpected data in simpleCallback.
at exports.newError (node_modules/webdriver-client/node_modules/macaca-wd/wd/lib/utils.js:139:13)
at null. (node_modules/webdriver-client/node_modules/macaca-wd/wd/lib/callbacks.js:42:12)
at cb (node_modules/webdriver-client/node_modules/macaca-wd/wd/lib/webdriver.js:165:22)
at node_modules/webdriver-client/node_modules/macaca-wd/wd/lib/webdriver.js:179:5
at Request._callback (node_modules/webdriver-client/node_modules/macaca-wd/wd/lib/http-utils.js:87:7)
at Request.self.callback (node_modules/webdriver-client/node_modules/macaca-wd/node_modules/request/request.js:368:22)
at Request. (node_modules/webdriver-client/node_modules/macaca-wd/node_modules/request/request.js:1219:14)
at IncomingMessage. (node_modules/webdriver-client/node_modules/macaca-wd/node_modules/request/request.js:1167:12)
at endReadableNT (_stream_readable.js:913:12)
3) macaca mobile sample "before all" hook:
[init({"autoAcceptAlerts":true,"platformName":"iOS","platformVersion":"9.3","deviceName":"iPhone 5s","app":"/Users/admin/Downloads/macaca-test-sample-master/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/webdriver-client/node_modules/macaca-wd/wd/lib/webdriver.js:134:15
at Request._callback (node_modules/webdriver-client/node_modules/macaca-wd/wd/lib/http-utils.js:87:7)
at Request.self.callback (node_modules/webdriver-client/node_modules/macaca-wd/node_modules/request/request.js:368:22)
at Request. (node_modules/webdriver-client/node_modules/macaca-wd/node_modules/request/request.js:1219:14)
at IncomingMessage. (node_modules/webdriver-client/node_modules/macaca-wd/node_modules/request/request.js:1167:12)
at endReadableNT (_stream_readable.js:913:12)
4) macaca mobile sample "after all" hook:
Error: [quit()] Unexpected data in simpleCallback.
at exports.newError (node_modules/webdriver-client/node_modules/macaca-wd/wd/lib/utils.js:139:13)
at null. (node_modules/webdriver-client/node_modules/macaca-wd/wd/lib/callbacks.js:42:12)
at cb (node_modules/webdriver-client/node_modules/macaca-wd/wd/lib/webdriver.js:165:22)
at node_modules/webdriver-client/node_modules/macaca-wd/wd/lib/webdriver.js:179:5
at Request._callback (node_modules/webdriver-client/node_modules/macaca-wd/wd/lib/http-utils.js:87:7)
at Request.self.callback (node_modules/webdriver-client/node_modules/macaca-wd/node_modules/request/request.js:368:22)
at Request. (node_modules/webdriver-client/node_modules/macaca-wd/node_modules/request/request.js:1219:14)
at IncomingMessage. (node_modules/webdriver-client/node_modules/macaca-wd/node_modules/request/request.js:1167:12)
at endReadableNT (_stream_readable.js:913:12)
5) macaca mobile sample "before all" hook:
[init({"autoAcceptAlerts":true,"platformName":"iOS","platformVersion":"9.3","deviceName":"iPhone 5s","app":"/Users/admin/Downloads/macaca-test-sample-master/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/webdriver-client/node_modules/macaca-wd/wd/lib/webdriver.js:134:15
at Request._callback (node_modules/webdriver-client/node_modules/macaca-wd/wd/lib/http-utils.js:87:7)
at Request.self.callback (node_modules/webdriver-client/node_modules/macaca-wd/node_modules/request/request.js:368:22)
at Request. (node_modules/webdriver-client/node_modules/macaca-wd/node_modules/request/request.js:1219:14)
at IncomingMessage. (node_modules/webdriver-client/node_modules/macaca-wd/node_modules/request/request.js:1167:12)
at endReadableNT (_stream_readable.js:913:12)
6) macaca mobile sample "after all" hook:
Error: [quit()] Unexpected data in simpleCallback.
at exports.newError (node_modules/webdriver-client/node_modules/macaca-wd/wd/lib/utils.js:139:13)
at null. (node_modules/webdriver-client/node_modules/macaca-wd/wd/lib/callbacks.js:42:12)
at cb (node_modules/webdriver-client/node_modules/macaca-wd/wd/lib/webdriver.js:165:22)
at node_modules/webdriver-client/node_modules/macaca-wd/wd/lib/webdriver.js:179:5
at Request._callback (node_modules/webdriver-client/node_modules/macaca-wd/wd/lib/http-utils.js:87:7)
at Request.self.callback (node_modules/webdriver-client/node_modules/macaca-wd/node_modules/request/request.js:368:22)
at Request. (node_modules/webdriver-client/node_modules/macaca-wd/node_modules/request/request.js:1219:14)
at IncomingMessage. (node_modules/webdriver-client/node_modules/macaca-wd/node_modules/request/request.js:1167:12)
at endReadableNT (_stream_readable.js:913:12)
Test completed!
admindeMBP:macaca-test-sample-master admin$ sudo macaca run --verbose
Password:
index.js:93:12 [master] pid:1550 webdriver server start with config:
{ port: 3456,
window: true,
ip: '192.168.1.38',
host: 'admindeMBP',
loaded_time: '2016-05-09 00:10:11' }
middlewares.js:30:10 [master] pid:1550 base middlewares attached
router.js:117:10 [master] pid:1550 router set
webdriver sdk launched
macaca desktop sample
responseHandler.js:24:12 [master] pid:1550 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/admin/Downloads/macaca-test-sample-master/app/ios-app-bootstrap.zip"}}
session.js:24:10 [master] pid:1550 Creating session, sessionId: a804785b-f581-41cf-88f4-78015b1f3011.
helper.js:205:12 [master] pid:1550 Unzipping local app form /Users/admin/Downloads/macaca-test-sample-master/app/ios-app-bootstrap.zip
Get bundleId xudafeng.ios-app-bootstrap from plist /tmp/ios-app-bootstrap.app/Info.plist
macaca-ios.js:181:10 [master] pid:1550 Get available devices [{"name":"iPhone 4s","udid":"BF868431-DB6D-49ED-AEC6-8BC2D47AD4AC","state":"Shutdown","available":true,"runtime":"iOS 9.3"},{"name":"iPhone 5","udid":"906647C3-3A02-4F54-A3CC-1BCE244EC56B","state":"Shutdown","available":true,"runtime":"iOS 9.3"},{"name":"iPhone 5s","udid":"3D19B580-57B3-4A01-BEF7-769FE01810B0","state":"Shutdown","available":true,"runtime":"iOS 9.3"},{"name":"iPhone 6","udid":"C7331FF1-A10C-4654-ADA0-144706809A41","state":"Shutdown","available":true,"runtime":"iOS 9.3"},{"name":"iPhone 6 Plus","udid":"D2CCD036-DB6B-46A4-80FA-5624711A6566","state":"Shutdown","available":true,"runtime":"iOS 9.3"},{"name":"iPhone 6s","udid":"4FAF9D44-E8D6-4CCD-8FB6-ED34F31D742C","state":"Shutdown","available":true,"runtime":"iOS 9.3"},{"name":"iPhone 6s Plus","udid":"EE75DEDB-97F7-42DD-AC64-1B7E3592CD28","state":"Shutdown","available":true,"runtime":"iOS 9.3"},{"name":"iPad 2","udid":"A6B304BE-3633-4E45-9ED8-48ED97B1C5B7","state":"Shutdown","available":true,"runtime":"iOS 9.3"},{"name":"iPad Retina","udid":"C48EE6C6-8A8D-4A26-B253-77DF73DA03C1","state":"Shutdown","available":true,"runtime":"iOS 9.3"},{"name":"iPad Air","udid":"8D650329-590C-4581-B686-E70617CF938F","state":"Shutdown","available":true,"runtime":"iOS 9.3"},{"name":"iPad Air 2","udid":"93B6D9BF-9CAF-4015-B903-19EA47A9FED9","state":"Shutdown","available":true,"runtime":"iOS 9.3"},{"name":"iPad Pro","udid":"6723BB36-1615-4F22-A073-AA81E5D82758","state":"Shutdown","available":true,"runtime":"iOS 9.3"},{"name":"Apple TV 1080p","udid":"92B02225-BFE2-4820-B2F1-A224A0F0D211","state":"Shutdown","available":true,"runtime":"tvOS 9.2"},{"name":"Apple Watch - 38mm","udid":"6B0D9D07-BF95-46E9-9AC2-891371811CB3","state":"Shutdown","available":true,"runtime":"watchOS 2.2"},{"name":"Apple Watch - 42mm","udid":"E405D02A-5F5F-4312-BDEB-0AFE5329C1E8","state":"Shutdown","available":true,"runtime":"watchOS 2.2"}]
macaca-ios.js:220:12 [master] pid:1550 Shutdown simulator 3D19B580-57B3-4A01-BEF7-769FE01810B0 failed Error: Command failed: /bin/sh -c xcrun simctl shutdown "3D19B580-57B3-4A01-BEF7-769FE01810B0"
An error was encountered processing the command (domain=com.apple.CoreSimulator.SimError, code=159):
Unable to shutdown device in current state: Shutdown
responseHandler.js:63:12 [master] pid:1550 Send Error Respone to Client: Error: Simulator 3D19B580-57B3-4A01-BEF7-769FE01810B0 is not booted.
responseHandler.js:69:14 [master] pid:1550 Error: Simulator 3D19B580-57B3-4A01-BEF7-769FE01810B0 is not booted.
at /usr/local/lib/node_modules/macaca-cli/node_modules/webdriver-server/node_modules/node-installer/node_modules/macaca-ios/lib/macaca-ios.js:237:20
Error: Simulator 3D19B580-57B3-4A01-BEF7-769FE01810B0 is not booted.
at /usr/local/lib/node_modules/macaca-cli/node_modules/webdriver-server/node_modules/node-installer/node_modules/macaca-ios/lib/macaca-ios.js:237:20
1) "before all" hook
responseHandler.js:24:12 [master] pid:1550 Recieve HTTP Request from Client: method: DELETE url: /wd/hub/session, jsonBody: {}
responseHandler.js:32:14 [master] pid:1550 Send HTTP Respone to Client: 405 Method Not Allowed
2) "after all" hook
macaca mobile sample
responseHandler.js:24:12 [master] pid:1550 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/admin/Downloads/macaca-test-sample-master/app/ios-app-bootstrap.zip"}}
session.js:24:10 [master] pid:1550 Creating session, sessionId: 2c582845-c01f-4456-9494-3c6e4e6813df.
helper.js:205:12 [master] pid:1550 Unzipping local app form /Users/admin/Downloads/macaca-test-sample-master/app/ios-app-bootstrap.zip
Get bundleId xudafeng.ios-app-bootstrap from plist /tmp/ios-app-bootstrap.app/Info.plist
macaca-ios.js:181:10 [master] pid:1550 Get available devices [{"name":"iPhone 4s","udid":"BF868431-DB6D-49ED-AEC6-8BC2D47AD4AC","state":"Shutdown","available":true,"runtime":"iOS 9.3"},{"name":"iPhone 5","udid":"906647C3-3A02-4F54-A3CC-1BCE244EC56B","state":"Shutdown","available":true,"runtime":"iOS 9.3"},{"name":"iPhone 5s","udid":"3D19B580-57B3-4A01-BEF7-769FE01810B0","state":"Shutdown","available":true,"runtime":"iOS 9.3"},{"name":"iPhone 6","udid":"C7331FF1-A10C-4654-ADA0-144706809A41","state":"Shutdown","available":true,"runtime":"iOS 9.3"},{"name":"iPhone 6 Plus","udid":"D2CCD036-DB6B-46A4-80FA-5624711A6566","state":"Shutdown","available":true,"runtime":"iOS 9.3"},{"name":"iPhone 6s","udid":"4FAF9D44-E8D6-4CCD-8FB6-ED34F31D742C","state":"Shutdown","available":true,"runtime":"iOS 9.3"},{"name":"iPhone 6s Plus","udid":"EE75DEDB-97F7-42DD-AC64-1B7E3592CD28","state":"Shutdown","available":true,"runtime":"iOS 9.3"},{"name":"iPad 2","udid":"A6B304BE-3633-4E45-9ED8-48ED97B1C5B7","state":"Shutdown","available":true,"runtime":"iOS 9.3"},{"name":"iPad Retina","udid":"C48EE6C6-8A8D-4A26-B253-77DF73DA03C1","state":"Shutdown","available":true,"runtime":"iOS 9.3"},{"name":"iPad Air","udid":"8D650329-590C-4581-B686-E70617CF938F","state":"Shutdown","available":true,"runtime":"iOS 9.3"},{"name":"iPad Air 2","udid":"93B6D9BF-9CAF-4015-B903-19EA47A9FED9","state":"Shutdown","available":true,"runtime":"iOS 9.3"},{"name":"iPad Pro","udid":"6723BB36-1615-4F22-A073-AA81E5D82758","state":"Shutdown","available":true,"runtime":"iOS 9.3"},{"name":"Apple TV 1080p","udid":"92B02225-BFE2-4820-B2F1-A224A0F0D211","state":"Shutdown","available":true,"runtime":"tvOS 9.2"},{"name":"Apple Watch - 38mm","udid":"6B0D9D07-BF95-46E9-9AC2-891371811CB3","state":"Shutdown","available":true,"runtime":"watchOS 2.2"},{"name":"Apple Watch - 42mm","udid":"E405D02A-5F5F-4312-BDEB-0AFE5329C1E8","state":"Shutdown","available":true,"runtime":"watchOS 2.2"}]
macaca-ios.js:220:12 [master] pid:1550 Shutdown simulator 3D19B580-57B3-4A01-BEF7-769FE01810B0 failed Error: Command failed: /bin/sh -c xcrun simctl shutdown "3D19B580-57B3-4A01-BEF7-769FE01810B0"
An error was encountered processing the command (domain=com.apple.CoreSimulator.SimError, code=159):
Unable to shutdown device in current state: Shutdown
responseHandler.js:63:12 [master] pid:1550 Send Error Respone to Client: Error: Simulator 3D19B580-57B3-4A01-BEF7-769FE01810B0 is not booted.
responseHandler.js:69:14 [master] pid:1550 Error: Simulator 3D19B580-57B3-4A01-BEF7-769FE01810B0 is not booted.
at /usr/local/lib/node_modules/macaca-cli/node_modules/webdriver-server/node_modules/node-installer/node_modules/macaca-ios/lib/macaca-ios.js:237:20
Error: Simulator 3D19B580-57B3-4A01-BEF7-769FE01810B0 is not booted.
at /usr/local/lib/node_modules/macaca-cli/node_modules/webdriver-server/node_modules/node-installer/node_modules/macaca-ios/lib/macaca-ios.js:237:20
3) "before all" hook
responseHandler.js:24:12 [master] pid:1550 Recieve HTTP Request from Client: method: DELETE url: /wd/hub/session, jsonBody: {}
responseHandler.js:32:14 [master] pid:1550 Send HTTP Respone to Client: 405 Method Not Allowed
4) "after all" hook
macaca mobile sample
responseHandler.js:24:12 [master] pid:1550 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/admin/Downloads/macaca-test-sample-master/app/ios-app-bootstrap.zip"}}
session.js:24:10 [master] pid:1550 Creating session, sessionId: 58ace2c7-9611-4a63-bc96-293a432f10ee.
helper.js:205:12 [master] pid:1550 Unzipping local app form /Users/admin/Downloads/macaca-test-sample-master/app/ios-app-bootstrap.zip
Get bundleId xudafeng.ios-app-bootstrap from plist /tmp/ios-app-bootstrap.app/Info.plist
macaca-ios.js:181:10 [master] pid:1550 Get available devices [{"name":"iPhone 4s","udid":"BF868431-DB6D-49ED-AEC6-8BC2D47AD4AC","state":"Shutdown","available":true,"runtime":"iOS 9.3"},{"name":"iPhone 5","udid":"906647C3-3A02-4F54-A3CC-1BCE244EC56B","state":"Shutdown","available":true,"runtime":"iOS 9.3"},{"name":"iPhone 5s","udid":"3D19B580-57B3-4A01-BEF7-769FE01810B0","state":"Shutdown","available":true,"runtime":"iOS 9.3"},{"name":"iPhone 6","udid":"C7331FF1-A10C-4654-ADA0-144706809A41","state":"Shutdown","available":true,"runtime":"iOS 9.3"},{"name":"iPhone 6 Plus","udid":"D2CCD036-DB6B-46A4-80FA-5624711A6566","state":"Shutdown","available":true,"runtime":"iOS 9.3"},{"name":"iPhone 6s","udid":"4FAF9D44-E8D6-4CCD-8FB6-ED34F31D742C","state":"Shutdown","available":true,"runtime":"iOS 9.3"},{"name":"iPhone 6s Plus","udid":"EE75DEDB-97F7-42DD-AC64-1B7E3592CD28","state":"Shutdown","available":true,"runtime":"iOS 9.3"},{"name":"iPad 2","udid":"A6B304BE-3633-4E45-9ED8-48ED97B1C5B7","state":"Shutdown","available":true,"runtime":"iOS 9.3"},{"name":"iPad Retina","udid":"C48EE6C6-8A8D-4A26-B253-77DF73DA03C1","state":"Shutdown","available":true,"runtime":"iOS 9.3"},{"name":"iPad Air","udid":"8D650329-590C-4581-B686-E70617CF938F","state":"Shutdown","available":true,"runtime":"iOS 9.3"},{"name":"iPad Air 2","udid":"93B6D9BF-9CAF-4015-B903-19EA47A9FED9","state":"Shutdown","available":true,"runtime":"iOS 9.3"},{"name":"iPad Pro","udid":"6723BB36-1615-4F22-A073-AA81E5D82758","state":"Shutdown","available":true,"runtime":"iOS 9.3"},{"name":"Apple TV 1080p","udid":"92B02225-BFE2-4820-B2F1-A224A0F0D211","state":"Shutdown","available":true,"runtime":"tvOS 9.2"},{"name":"Apple Watch - 38mm","udid":"6B0D9D07-BF95-46E9-9AC2-891371811CB3","state":"Shutdown","available":true,"runtime":"watchOS 2.2"},{"name":"Apple Watch - 42mm","udid":"E405D02A-5F5F-4312-BDEB-0AFE5329C1E8","state":"Shutdown","available":true,"runtime":"watchOS 2.2"}]
macaca-ios.js:220:12 [master] pid:1550 Shutdown simulator 3D19B580-57B3-4A01-BEF7-769FE01810B0 failed Error: Command failed: /bin/sh -c xcrun simctl shutdown "3D19B580-57B3-4A01-BEF7-769FE01810B0"
An error was encountered processing the command (domain=com.apple.CoreSimulator.SimError, code=159):
Unable to shutdown device in current state: Shutdown
responseHandler.js:63:12 [master] pid:1550 Send Error Respone to Client: Error: Simulator 3D19B580-57B3-4A01-BEF7-769FE01810B0 is not booted.
responseHandler.js:69:14 [master] pid:1550 Error: Simulator 3D19B580-57B3-4A01-BEF7-769FE01810B0 is not booted.
at /usr/local/lib/node_modules/macaca-cli/node_modules/webdriver-server/node_modules/node-installer/node_modules/macaca-ios/lib/macaca-ios.js:237:20
Error: Simulator 3D19B580-57B3-4A01-BEF7-769FE01810B0 is not booted.
at /usr/local/lib/node_modules/macaca-cli/node_modules/webdriver-server/node_modules/node-installer/node_modules/macaca-ios/lib/macaca-ios.js:237:20
5) "before all" hook
responseHandler.js:24:12 [master] pid:1550 Recieve HTTP Request from Client: method: DELETE url: /wd/hub/session, jsonBody: {}
responseHandler.js:32:14 [master] pid:1550 Send HTTP Respone to Client: 405 Method Not Allowed
6) "after all" hook
0 passing (2m)
6 failing
1) macaca desktop sample "before all" hook:
[init({"autoAcceptAlerts":true,"platformName":"iOS","platformVersion":"9.3","deviceName":"iPhone 5s","app":"/Users/admin/Downloads/macaca-test-sample-master/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/webdriver-client/node_modules/macaca-wd/wd/lib/webdriver.js:134:15
at Request._callback (node_modules/webdriver-client/node_modules/macaca-wd/wd/lib/http-utils.js:87:7)
at Request.self.callback (node_modules/webdriver-client/node_modules/macaca-wd/node_modules/request/request.js:368:22)
at Request. (node_modules/webdriver-client/node_modules/macaca-wd/node_modules/request/request.js:1219:14)
at IncomingMessage. (node_modules/webdriver-client/node_modules/macaca-wd/node_modules/request/request.js:1167:12)
at endReadableNT (_stream_readable.js:913:12)
2) macaca desktop sample "after all" hook:
Error: [quit()] Unexpected data in simpleCallback.
at exports.newError (node_modules/webdriver-client/node_modules/macaca-wd/wd/lib/utils.js:139:13)
at null. (node_modules/webdriver-client/node_modules/macaca-wd/wd/lib/callbacks.js:42:12)
at cb (node_modules/webdriver-client/node_modules/macaca-wd/wd/lib/webdriver.js:165:22)
at node_modules/webdriver-client/node_modules/macaca-wd/wd/lib/webdriver.js:179:5
at Request._callback (node_modules/webdriver-client/node_modules/macaca-wd/wd/lib/http-utils.js:87:7)
at Request.self.callback (node_modules/webdriver-client/node_modules/macaca-wd/node_modules/request/request.js:368:22)
at Request. (node_modules/webdriver-client/node_modules/macaca-wd/node_modules/request/request.js:1219:14)
at IncomingMessage. (node_modules/webdriver-client/node_modules/macaca-wd/node_modules/request/request.js:1167:12)
at endReadableNT (_stream_readable.js:913:12)
3) macaca mobile sample "before all" hook:
[init({"autoAcceptAlerts":true,"platformName":"iOS","platformVersion":"9.3","deviceName":"iPhone 5s","app":"/Users/admin/Downloads/macaca-test-sample-master/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/webdriver-client/node_modules/macaca-wd/wd/lib/webdriver.js:134:15
at Request._callback (node_modules/webdriver-client/node_modules/macaca-wd/wd/lib/http-utils.js:87:7)
at Request.self.callback (node_modules/webdriver-client/node_modules/macaca-wd/node_modules/request/request.js:368:22)
at Request. (node_modules/webdriver-client/node_modules/macaca-wd/node_modules/request/request.js:1219:14)
at IncomingMessage. (node_modules/webdriver-client/node_modules/macaca-wd/node_modules/request/request.js:1167:12)
at endReadableNT (_stream_readable.js:913:12)
4) macaca mobile sample "after all" hook:
Error: [quit()] Unexpected data in simpleCallback.
at exports.newError (node_modules/webdriver-client/node_modules/macaca-wd/wd/lib/utils.js:139:13)
at null. (node_modules/webdriver-client/node_modules/macaca-wd/wd/lib/callbacks.js:42:12)
at cb (node_modules/webdriver-client/node_modules/macaca-wd/wd/lib/webdriver.js:165:22)
at node_modules/webdriver-client/node_modules/macaca-wd/wd/lib/webdriver.js:179:5
at Request._callback (node_modules/webdriver-client/node_modules/macaca-wd/wd/lib/http-utils.js:87:7)
at Request.self.callback (node_modules/webdriver-client/node_modules/macaca-wd/node_modules/request/request.js:368:22)
at Request. (node_modules/webdriver-client/node_modules/macaca-wd/node_modules/request/request.js:1219:14)
at IncomingMessage. (node_modules/webdriver-client/node_modules/macaca-wd/node_modules/request/request.js:1167:12)
at endReadableNT (_stream_readable.js:913:12)
5) macaca mobile sample "before all" hook:
[init({"autoAcceptAlerts":true,"platformName":"iOS","platformVersion":"9.3","deviceName":"iPhone 5s","app":"/Users/admin/Downloads/macaca-test-sample-master/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/webdriver-client/node_modules/macaca-wd/wd/lib/webdriver.js:134:15
at Request._callback (node_modules/webdriver-client/node_modules/macaca-wd/wd/lib/http-utils.js:87:7)
at Request.self.callback (node_modules/webdriver-client/node_modules/macaca-wd/node_modules/request/request.js:368:22)
at Request. (node_modules/webdriver-client/node_modules/macaca-wd/node_modules/request/request.js:1219:14)
at IncomingMessage. (node_modules/webdriver-client/node_modules/macaca-wd/node_modules/request/request.js:1167:12)
at endReadableNT (_stream_readable.js:913:12)
6) macaca mobile sample "after all" hook:
Error: [quit()] Unexpected data in simpleCallback.
at exports.newError (node_modules/webdriver-client/node_modules/macaca-wd/wd/lib/utils.js:139:13)
at null. (node_modules/webdriver-client/node_modules/macaca-wd/wd/lib/callbacks.js:42:12)
at cb (node_modules/webdriver-client/node_modules/macaca-wd/wd/lib/webdriver.js:165:22)
at node_modules/webdriver-client/node_modules/macaca-wd/wd/lib/webdriver.js:179:5
at Request._callback (node_modules/webdriver-client/node_modules/macaca-wd/wd/lib/http-utils.js:87:7)
at Request.self.callback (node_modules/webdriver-client/node_modules/macaca-wd/node_modules/request/request.js:368:22)
at Request. (node_modules/webdriver-client/node_modules/macaca-wd/node_modules/request/request.js:1219:14)
at IncomingMessage. (node_modules/webdriver-client/node_modules/macaca-wd/node_modules/request/request.js:1167:12)
at endReadableNT (_stream_readable.js:913:12)
Test completed!
admindeMBP:macaca-test-sample-master admin$ sudo macaca run --verbose
index.js:93:12 [master] pid:1810 webdriver server start with config:
{ port: 3456,
window: true,
ip: '192.168.1.38',
host: 'admindeMBP',
loaded_time: '2016-05-09 00:14:03' }
middlewares.js:30:10 [master] pid:1810 base middlewares attached
router.js:117:10 [master] pid:1810 router set
webdriver sdk launched
macaca desktop sample
responseHandler.js:24:12 [master] pid:1810 Recieve HTTP Request from Client: method: POST url: /wd/hub/session, jsonBody: {"desiredCapabilities":{"autoAcceptAlerts":true,"platformName":"iOS","platformVersion":"9.3","deviceName":"iPhone 6s Plus","app":"/Users/admin/Downloads/macaca-test-sample-master/app/ios-app-bootstrap.zip"}}
session.js:24:10 [master] pid:1810 Creating session, sessionId: c745cea3-7ee3-4cc1-b2e2-d05635605fa5.
helper.js:205:12 [master] pid:1810 Unzipping local app form /Users/admin/Downloads/macaca-test-sample-master/app/ios-app-bootstrap.zip
Get bundleId xudafeng.ios-app-bootstrap from plist /tmp/ios-app-bootstrap.app/Info.plist
macaca-ios.js:181:10 [master] pid:1810 Get available devices [{"name":"iPhone 4s","udid":"BF868431-DB6D-49ED-AEC6-8BC2D47AD4AC","state":"Shutdown","available":true,"runtime":"iOS 9.3"},{"name":"iPhone 5","udid":"906647C3-3A02-4F54-A3CC-1BCE244EC56B","state":"Shutdown","available":true,"runtime":"iOS 9.3"},{"name":"iPhone 5s","udid":"3D19B580-57B3-4A01-BEF7-769FE01810B0","state":"Shutdown","available":true,"runtime":"iOS 9.3"},{"name":"iPhone 6","udid":"C7331FF1-A10C-4654-ADA0-144706809A41","state":"Shutdown","available":true,"runtime":"iOS 9.3"},{"name":"iPhone 6 Plus","udid":"D2CCD036-DB6B-46A4-80FA-5624711A6566","state":"Shutdown","available":true,"runtime":"iOS 9.3"},{"name":"iPhone 6s","udid":"4FAF9D44-E8D6-4CCD-8FB6-ED34F31D742C","state":"Shutdown","available":true,"runtime":"iOS 9.3"},{"name":"iPhone 6s Plus","udid":"EE75DEDB-97F7-42DD-AC64-1B7E3592CD28","state":"Shutdown","available":true,"runtime":"iOS 9.3"},{"name":"iPad 2","udid":"A6B304BE-3633-4E45-9ED8-48ED97B1C5B7","state":"Shutdown","available":true,"runtime":"iOS 9.3"},{"name":"iPad Retina","udid":"C48EE6C6-8A8D-4A26-B253-77DF73DA03C1","state":"Shutdown","available":true,"runtime":"iOS 9.3"},{"name":"iPad Air","udid":"8D650329-590C-4581-B686-E70617CF938F","state":"Shutdown","available":true,"runtime":"iOS 9.3"},{"name":"iPad Air 2","udid":"93B6D9BF-9CAF-4015-B903-19EA47A9FED9","state":"Shutdown","available":true,"runtime":"iOS 9.3"},{"name":"iPad Pro","udid":"6723BB36-1615-4F22-A073-AA81E5D82758","state":"Shutdown","available":true,"runtime":"iOS 9.3"},{"name":"Apple TV 1080p","udid":"92B02225-BFE2-4820-B2F1-A224A0F0D211","state":"Shutdown","available":true,"runtime":"tvOS 9.2"},{"name":"Apple Watch - 38mm","udid":"6B0D9D07-BF95-46E9-9AC2-891371811CB3","state":"Shutdown","available":true,"runtime":"watchOS 2.2"},{"name":"Apple Watch - 42mm","udid":"E405D02A-5F5F-4312-BDEB-0AFE5329C1E8","state":"Shutdown","available":true,"runtime":"watchOS 2.2"}]
macaca-ios.js:220:12 [master] pid:1810 Shutdown simulator EE75DEDB-97F7-42DD-AC64-1B7E3592CD28 failed Error: Command failed: /bin/sh -c xcrun simctl shutdown "EE75DEDB-97F7-42DD-AC64-1B7E3592CD28"
An error was encountered processing the command (domain=com.apple.CoreSimulator.SimError, code=159):
Unable to shutdown device in current state: Shutdown
responseHandler.js:63:12 [master] pid:1810 Send Error Respone to Client: Error: Simulator EE75DEDB-97F7-42DD-AC64-1B7E3592CD28 is not booted.
responseHandler.js:69:14 [master] pid:1810 Error: Simulator EE75DEDB-97F7-42DD-AC64-1B7E3592CD28 is not booted.
at /usr/local/lib/node_modules/macaca-cli/node_modules/webdriver-server/node_modules/node-installer/node_modules/macaca-ios/lib/macaca-ios.js:237:20
Error: Simulator EE75DEDB-97F7-42DD-AC64-1B7E3592CD28 is not booted.
at /usr/local/lib/node_modules/macaca-cli/node_modules/webdriver-server/node_modules/node-installer/node_modules/macaca-ios/lib/macaca-ios.js:237:20
1) "before all" hook
responseHandler.js:24:12 [master] pid:1810 Recieve HTTP Request from Client: method: DELETE url: /wd/hub/session, jsonBody: {}
responseHandler.js:32:14 [master] pid:1810 Send HTTP Respone to Client: 405 Method Not Allowed
2) "after all" hook
macaca mobile sample
responseHandler.js:24:12 [master] pid:1810 Recieve HTTP Request from Client: method: POST url: /wd/hub/session, jsonBody: {"desiredCapabilities":{"autoAcceptAlerts":true,"platformName":"iOS","platformVersion":"9.3","deviceName":"iPhone 6s Plus","app":"/Users/admin/Downloads/macaca-test-sample-master/app/ios-app-bootstrap.zip"}}
session.js:24:10 [master] pid:1810 Creating session, sessionId: 9443e6b5-ff04-41b2-b50b-11f5bd81e73f.
helper.js:205:12 [master] pid:1810 Unzipping local app form /Users/admin/Downloads/macaca-test-sample-master/app/ios-app-bootstrap.zip
Get bundleId xudafeng.ios-app-bootstrap from plist /tmp/ios-app-bootstrap.app/Info.plist
macaca-ios.js:181:10 [master] pid:1810 Get available devices [{"name":"iPhone 4s","udid":"BF868431-DB6D-49ED-AEC6-8BC2D47AD4AC","state":"Shutdown","available":true,"runtime":"iOS 9.3"},{"name":"iPhone 5","udid":"906647C3-3A02-4F54-A3CC-1BCE244EC56B","state":"Shutdown","available":true,"runtime":"iOS 9.3"},{"name":"iPhone 5s","udid":"3D19B580-57B3-4A01-BEF7-769FE01810B0","state":"Shutdown","available":true,"runtime":"iOS 9.3"},{"name":"iPhone 6","udid":"C7331FF1-A10C-4654-ADA0-144706809A41","state":"Shutdown","available":true,"runtime":"iOS 9.3"},{"name":"iPhone 6 Plus","udid":"D2CCD036-DB6B-46A4-80FA-5624711A6566","state":"Shutdown","available":true,"runtime":"iOS 9.3"},{"name":"iPhone 6s","udid":"4FAF9D44-E8D6-4CCD-8FB6-ED34F31D742C","state":"Shutdown","available":true,"runtime":"iOS 9.3"},{"name":"iPhone 6s Plus","udid":"EE75DEDB-97F7-42DD-AC64-1B7E3592CD28","state":"Shutdown","available":true,"runtime":"iOS 9.3"},{"name":"iPad 2","udid":"A6B304BE-3633-4E45-9ED8-48ED97B1C5B7","state":"Shutdown","available":true,"runtime":"iOS 9.3"},{"name":"iPad Retina","udid":"C48EE6C6-8A8D-4A26-B253-77DF73DA03C1","state":"Shutdown","available":true,"runtime":"iOS 9.3"},{"name":"iPad Air","udid":"8D650329-590C-4581-B686-E70617CF938F","state":"Shutdown","available":true,"runtime":"iOS 9.3"},{"name":"iPad Air 2","udid":"93B6D9BF-9CAF-4015-B903-19EA47A9FED9","state":"Shutdown","available":true,"runtime":"iOS 9.3"},{"name":"iPad Pro","udid":"6723BB36-1615-4F22-A073-AA81E5D82758","state":"Shutdown","available":true,"runtime":"iOS 9.3"},{"name":"Apple TV 1080p","udid":"92B02225-BFE2-4820-B2F1-A224A0F0D211","state":"Shutdown","available":true,"runtime":"tvOS 9.2"},{"name":"Apple Watch - 38mm","udid":"6B0D9D07-BF95-46E9-9AC2-891371811CB3","state":"Shutdown","available":true,"runtime":"watchOS 2.2"},{"name":"Apple Watch - 42mm","udid":"E405D02A-5F5F-4312-BDEB-0AFE5329C1E8","state":"Shutdown","available":true,"runtime":"watchOS 2.2"}]
macaca-ios.js:220:12 [master] pid:1810 Shutdown simulator EE75DEDB-97F7-42DD-AC64-1B7E3592CD28 failed Error: Command failed: /bin/sh -c xcrun simctl shutdown "EE75DEDB-97F7-42DD-AC64-1B7E3592CD28"
An error was encountered processing the command (domain=com.apple.CoreSimulator.SimError, code=159):
Unable to shutdown device in current state: Shutdown
responseHandler.js:63:12 [master] pid:1810 Send Error Respone to Client: Error: Simulator EE75DEDB-97F7-42DD-AC64-1B7E3592CD28 is not booted.
responseHandler.js:69:14 [master] pid:1810 Error: Simulator EE75DEDB-97F7-42DD-AC64-1B7E3592CD28 is not booted.
at /usr/local/lib/node_modules/macaca-cli/node_modules/webdriver-server/node_modules/node-installer/node_modules/macaca-ios/lib/macaca-ios.js:237:20
at process._tickCallback (node.js:369:9)
Error: Simulator EE75DEDB-97F7-42DD-AC64-1B7E3592CD28 is not booted.
at /usr/local/lib/node_modules/macaca-cli/node_modules/webdriver-server/node_modules/node-installer/node_modules/macaca-ios/lib/macaca-ios.js:237:20
at process._tickCallback (node.js:369:9)
3) "before all" hook
responseHandler.js:24:12 [master] pid:1810 Recieve HTTP Request from Client: method: DELETE url: /wd/hub/session, jsonBody: {}
responseHandler.js:32:14 [master] pid:1810 Send HTTP Respone to Client: 405 Method Not Allowed
4) "after all" hook
macaca mobile sample
responseHandler.js:24:12 [master] pid:1810 Recieve HTTP Request from Client: method: POST url: /wd/hub/session, jsonBody: {"desiredCapabilities":{"autoAcceptAlerts":true,"platformName":"iOS","platformVersion":"9.3","deviceName":"iPhone 6s Plus","app":"/Users/admin/Downloads/macaca-test-sample-master/app/ios-app-bootstrap.zip"}}
session.js:24:10 [master] pid:1810 Creating session, sessionId: 9ce783bc-7f1c-47d1-b432-b718d875adce.
helper.js:205:12 [master] pid:1810 Unzipping local app form /Users/admin/Downloads/macaca-test-sample-master/app/ios-app-bootstrap.zip
Get bundleId xudafeng.ios-app-bootstrap from plist /tmp/ios-app-bootstrap.app/Info.plist
macaca-ios.js:181:10 [master] pid:1810 Get available devices [{"name":"iPhone 4s","udid":"BF868431-DB6D-49ED-AEC6-8BC2D47AD4AC","state":"Shutdown","available":true,"runtime":"iOS 9.3"},{"name":"iPhone 5","udid":"906647C3-3A02-4F54-A3CC-1BCE244EC56B","state":"Shutdown","available":true,"runtime":"iOS 9.3"},{"name":"iPhone 5s","udid":"3D19B580-57B3-4A01-BEF7-769FE01810B0","state":"Shutdown","available":true,"runtime":"iOS 9.3"},{"name":"iPhone 6","udid":"C7331FF1-A10C-4654-ADA0-144706809A41","state":"Shutdown","available":true,"runtime":"iOS 9.3"},{"name":"iPhone 6 Plus","udid":"D2CCD036-DB6B-46A4-80FA-5624711A6566","state":"Shutdown","available":true,"runtime":"iOS 9.3"},{"name":"iPhone 6s","udid":"4FAF9D44-E8D6-4CCD-8FB6-ED34F31D742C","state":"Shutdown","available":true,"runtime":"iOS 9.3"},{"name":"iPhone 6s Plus","udid":"EE75DEDB-97F7-42DD-AC64-1B7E3592CD28","state":"Shutdown","available":true,"runtime":"iOS 9.3"},{"name":"iPad 2","udid":"A6B304BE-3633-4E45-9ED8-48ED97B1C5B7","state":"Shutdown","available":true,"runtime":"iOS 9.3"},{"name":"iPad Retina","udid":"C48EE6C6-8A8D-4A26-B253-77DF73DA03C1","state":"Shutdown","available":true,"runtime":"iOS 9.3"},{"name":"iPad Air","udid":"8D650329-590C-4581-B686-E70617CF938F","state":"Shutdown","available":true,"runtime":"iOS 9.3"},{"name":"iPad Air 2","udid":"93B6D9BF-9CAF-4015-B903-19EA47A9FED9","state":"Shutdown","available":true,"runtime":"iOS 9.3"},{"name":"iPad Pro","udid":"6723BB36-1615-4F22-A073-AA81E5D82758","state":"Shutdown","available":true,"runtime":"iOS 9.3"},{"name":"Apple TV 1080p","udid":"92B02225-BFE2-4820-B2F1-A224A0F0D211","state":"Shutdown","available":true,"runtime":"tvOS 9.2"},{"name":"Apple Watch - 38mm","udid":"6B0D9D07-BF95-46E9-9AC2-891371811CB3","state":"Shutdown","available":true,"runtime":"watchOS 2.2"},{"name":"Apple Watch - 42mm","udid":"E405D02A-5F5F-4312-BDEB-0AFE5329C1E8","state":"Shutdown","available":true,"runtime":"watchOS 2.2"}]
macaca-ios.js:220:12 [master] pid:1810 Shutdown simulator EE75DEDB-97F7-42DD-AC64-1B7E3592CD28 failed Error: Command failed: /bin/sh -c xcrun simctl shutdown "EE75DEDB-97F7-42DD-AC64-1B7E3592CD28"
An error was encountered processing the command (domain=com.apple.CoreSimulator.SimError, code=159):
Unable to shutdown device in current state: Shutdown
responseHandler.js:63:12 [master] pid:1810 Send Error Respone to Client: Error: Simulator EE75DEDB-97F7-42DD-AC64-1B7E3592CD28 is not booted.
responseHandler.js:69:14 [master] pid:1810 Error: Simulator EE75DEDB-97F7-42DD-AC64-1B7E3592CD28 is not booted.
at /usr/local/lib/node_modules/macaca-cli/node_modules/webdriver-server/node_modules/node-installer/node_modules/macaca-ios/lib/macaca-ios.js:237:20
at process._tickCallback (node.js:369:9)
Error: Simulator EE75DEDB-97F7-42DD-AC64-1B7E3592CD28 is not booted.
at /usr/local/lib/node_modules/macaca-cli/node_modules/webdriver-server/node_modules/node-installer/node_modules/macaca-ios/lib/macaca-ios.js:237:20
at process._tickCallback (node.js:369:9)
5) "before all" hook
responseHandler.js:24:12 [master] pid:1810 Recieve HTTP Request from Client: method: DELETE url: /wd/hub/session, jsonBody: {}
responseHandler.js:32:14 [master] pid:1810 Send HTTP Respone to Client: 405 Method Not Allowed
6) "after all" hook
0 passing (2m)
6 failing
1) macaca desktop sample "before all" hook:
[init({"autoAcceptAlerts":true,"platformName":"iOS","platformVersion":"9.3","deviceName":"iPhone 6s Plus","app":"/Users/admin/Downloads/macaca-test-sample-master/app/ios-app-bootstrap.zip"})] The environment you requested was unavailable.
Error: [init({"autoAcceptAlerts":true,"platformName":"iOS","platformVersion":"9.3","deviceName":"iPhone 6s Plus","app":"app/ios-app-bootstrap.zip"})] The environment you requested was unavailable.
at node_modules/webdriver-client/node_modules/macaca-wd/wd/lib/webdriver.js:134:15
at Request._callback (node_modules/webdriver-client/node_modules/macaca-wd/wd/lib/http-utils.js:87:7)
at Request.self.callback (node_modules/webdriver-client/node_modules/macaca-wd/node_modules/request/request.js:368:22)
at Request. (node_modules/webdriver-client/node_modules/macaca-wd/node_modules/request/request.js:1219:14)
at IncomingMessage. (node_modules/webdriver-client/node_modules/macaca-wd/node_modules/request/request.js:1167:12)
at endReadableNT (_stream_readable.js:913:12)
2) macaca desktop sample "after all" hook:
Error: [quit()] Unexpected data in simpleCallback.
at exports.newError (node_modules/webdriver-client/node_modules/macaca-wd/wd/lib/utils.js:139:13)
at null. (node_modules/webdriver-client/node_modules/macaca-wd/wd/lib/callbacks.js:42:12)
at cb (node_modules/webdriver-client/node_modules/macaca-wd/wd/lib/webdriver.js:165:22)
at node_modules/webdriver-client/node_modules/macaca-wd/wd/lib/webdriver.js:179:5
at Request._callback (node_modules/webdriver-client/node_modules/macaca-wd/wd/lib/http-utils.js:87:7)
at Request.self.callback (node_modules/webdriver-client/node_modules/macaca-wd/node_modules/request/request.js:368:22)
at Request. (node_modules/webdriver-client/node_modules/macaca-wd/node_modules/request/request.js:1219:14)
at IncomingMessage. (node_modules/webdriver-client/node_modules/macaca-wd/node_modules/request/request.js:1167:12)
at endReadableNT (_stream_readable.js:913:12)
3) macaca mobile sample "before all" hook:
[init({"autoAcceptAlerts":true,"platformName":"iOS","platformVersion":"9.3","deviceName":"iPhone 6s Plus","app":"/Users/admin/Downloads/macaca-test-sample-master/app/ios-app-bootstrap.zip"})] The environment you requested was unavailable.
Error: [init({"autoAcceptAlerts":true,"platformName":"iOS","platformVersion":"9.3","deviceName":"iPhone 6s Plus","app":"app/ios-app-bootstrap.zip"})] The environment you requested was unavailable.
at node_modules/webdriver-client/node_modules/macaca-wd/wd/lib/webdriver.js:134:15
at Request._callback (node_modules/webdriver-client/node_modules/macaca-wd/wd/lib/http-utils.js:87:7)
at Request.self.callback (node_modules/webdriver-client/node_modules/macaca-wd/node_modules/request/request.js:368:22)
at Request. (node_modules/webdriver-client/node_modules/macaca-wd/node_modules/request/request.js:1219:14)
at IncomingMessage. (node_modules/webdriver-client/node_modules/macaca-wd/node_modules/request/request.js:1167:12)
at endReadableNT (_stream_readable.js:913:12)
4) macaca mobile sample "after all" hook:
Error: [quit()] Unexpected data in simpleCallback.
at exports.newError (node_modules/webdriver-client/node_modules/macaca-wd/wd/lib/utils.js:139:13)
at null. (node_modules/webdriver-client/node_modules/macaca-wd/wd/lib/callbacks.js:42:12)
at cb (node_modules/webdriver-client/node_modules/macaca-wd/wd/lib/webdriver.js:165:22)
at node_modules/webdriver-client/node_modules/macaca-wd/wd/lib/webdriver.js:179:5
at Request._callback (node_modules/webdriver-client/node_modules/macaca-wd/wd/lib/http-utils.js:87:7)
at Request.self.callback (node_modules/webdriver-client/node_modules/macaca-wd/node_modules/request/request.js:368:22)
at Request. (node_modules/webdriver-client/node_modules/macaca-wd/node_modules/request/request.js:1219:14)
at IncomingMessage. (node_modules/webdriver-client/node_modules/macaca-wd/node_modules/request/request.js:1167:12)
at endReadableNT (_stream_readable.js:913:12)
5) macaca mobile sample "before all" hook:
[init({"autoAcceptAlerts":true,"platformName":"iOS","platformVersion":"9.3","deviceName":"iPhone 6s Plus","app":"/Users/admin/Downloads/macaca-test-sample-master/app/ios-app-bootstrap.zip"})] The environment you requested was unavailable.
Error: [init({"autoAcceptAlerts":true,"platformName":"iOS","platformVersion":"9.3","deviceName":"iPhone 6s Plus","app":"app/ios-app-bootstrap.zip"})] The environment you requested was unavailable.
at node_modules/webdriver-client/node_modules/macaca-wd/wd/lib/webdriver.js:134:15
at Request._callback (node_modules/webdriver-client/node_modules/macaca-wd/wd/lib/http-utils.js:87:7)
at Request.self.callback (node_modules/webdriver-client/node_modules/macaca-wd/node_modules/request/request.js:368:22)
at Request. (node_modules/webdriver-client/node_modules/macaca-wd/node_modules/request/request.js:1219:14)
at IncomingMessage. (node_modules/webdriver-client/node_modules/macaca-wd/node_modules/request/request.js:1167:12)
at endReadableNT (_stream_readable.js:913:12)
6) macaca mobile sample "after all" hook:
Error: [quit()] Unexpected data in simpleCallback.
at exports.newError (node_modules/webdriver-client/node_modules/macaca-wd/wd/lib/utils.js:139:13)
at null. (node_modules/webdriver-client/node_modules/macaca-wd/wd/lib/callbacks.js:42:12)
at cb (node_modules/webdriver-client/node_modules/macaca-wd/wd/lib/webdriver.js:165:22)
at node_modules/webdriver-client/node_modules/macaca-wd/wd/lib/webdriver.js:179:5
at Request._callback (node_modules/webdriver-client/node_modules/macaca-wd/wd/lib/http-utils.js:87:7)
at Request.self.callback (node_modules/webdriver-client/node_modules/macaca-wd/node_modules/request/request.js:368:22)
at Request. (node_modules/webdriver-client/node_modules/macaca-wd/node_modules/request/request.js:1219:14)
at IncomingMessage. (node_modules/webdriver-client/node_modules/macaca-wd/node_modules/request/request.js:1167:12)
at endReadableNT (_stream_readable.js:913:12)
npm ERR! Error: EACCES: permission denied, rmdir '/usr/local/lib/node_modules/macaca-cli'
npm ERR! at Error (native)
npm ERR! { [Error: EACCES: permission denied, rmdir '/usr/local/lib/node_modules/macaca-cli']
npm ERR! errno: -13,
npm ERR! code: 'EACCES',
npm ERR! syscall: 'rmdir',
npm ERR! path: '/usr/local/lib/node_modules/macaca-cli' }
npm ERR!
npm ERR! Please try running this command again as root/Administrator.
npm ERR! error rolling back Error: EACCES: permission denied, rmdir '/usr/local/lib/node_modules/macaca-cli'
npm ERR! error rolling back at Error (native)
npm ERR! error rolling back { [Error: EACCES: permission denied, rmdir '/usr/local/lib/node_modules/macaca-cli']
npm ERR! error rolling back errno: -13,
npm ERR! error rolling back code: 'EACCES',
npm ERR! error rolling back syscall: 'rmdir',
npm ERR! error rolling back path: '/usr/local/lib/node_modules/macaca-cli' }
npm ERR! Please include the following file with any support request:
npm ERR! /Users/admin/Downloads/macaca-test-sample-master/npm-debug.log
admindeMBP:macaca-test-sample-master admin$ npm i -g macaca-cli
npm ERR! Darwin 15.4.0
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "i" "-g" "macaca-cli"
npm ERR! node v4.4.4
npm ERR! npm v2.15.1
npm ERR! path /usr/local/lib/node_modules/macaca-cli/.config.json
npm ERR! code EACCES
npm ERR! errno -13
npm ERR! syscall unlink
npm ERR! Error: EACCES: permission denied, unlink '/usr/local/lib/node_modules/macaca-cli/.config.json'
npm ERR! at Error (native)
npm ERR! { [Error: EACCES: permission denied, unlink '/usr/local/lib/node_modules/macaca-cli/.config.json']
npm ERR! errno: -13,
npm ERR! code: 'EACCES',
npm ERR! syscall: 'unlink',
npm ERR! path: '/usr/local/lib/node_modules/macaca-cli/.config.json' }
npm ERR!
npm ERR! Please try running this command again as root/Administrator.
npm ERR! error rolling back Error: EACCES: permission denied, unlink '/usr/local/lib/node_modules/macaca-cli/.config.json'
npm ERR! error rolling back at Error (native)
npm ERR! error rolling back { [Error: EACCES: permission denied, unlink '/usr/local/lib/node_modules/macaca-cli/.config.json']
npm ERR! error rolling back errno: -13,
npm ERR! error rolling back code: 'EACCES',
npm ERR! error rolling back syscall: 'unlink',
npm ERR! error rolling back path: '/usr/local/lib/node_modules/macaca-cli/.config.json' }
npm ERR! Please include the following file with any support request:
npm ERR! /Users/admin/Downloads/macaca-test-sample-master/npm-debug.log
admindeMBP:macaca-test-sample-master admin$ npm i -g macaca-cli
npm ERR! Darwin 15.4.0
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "i" "-g" "macaca-cli"
npm ERR! node v4.4.4
npm ERR! npm v2.15.1
npm ERR! path /usr/local/lib/node_modules/macaca-cli/bin/macaca-cli
npm ERR! code EACCES
npm ERR! errno -13
npm ERR! syscall unlink
npm ERR! Error: EACCES: permission denied, unlink '/usr/local/lib/node_modules/macaca-cli/bin/macaca-cli'
npm ERR! at Error (native)
npm ERR! { [Error: EACCES: permission denied, unlink '/usr/local/lib/node_modules/macaca-cli/bin/macaca-cli']
npm ERR! errno: -13,
npm ERR! code: 'EACCES',
npm ERR! syscall: 'unlink',
npm ERR! path: '/usr/local/lib/node_modules/macaca-cli/bin/macaca-cli' }
npm ERR!
npm ERR! Please try running this command again as root/Administrator.
npm ERR! error rolling back Error: EACCES: permission denied, unlink '/usr/local/lib/node_modules/macaca-cli/bin/macaca-cli'
npm ERR! error rolling back at Error (native)
npm ERR! error rolling back { [Error: EACCES: permission denied, unlink '/usr/local/lib/node_modules/macaca-cli/bin/macaca-cli']
npm ERR! error rolling back errno: -13,
npm ERR! error rolling back code: 'EACCES',
npm ERR! error rolling back syscall: 'unlink',
npm ERR! error rolling back path: '/usr/local/lib/node_modules/macaca-cli/bin/macaca-cli' }
npm ERR! Please include the following file with any support request:
npm ERR! /Users/admin/Downloads/macaca-test-sample-master/npm-debug.log
admindeMBP:macaca-test-sample-master admin$ sudo chmod R 777 /usr/local/lib/node_modules
Password:
chmod: Invalid file mode: R
admindeMBP:macaca-test-sample-master admin$ sudo chmod -R 777 /usr/local/lib/node_modules
admindeMBP:macaca-test-sample-master admin$ npm i -g macaca-cli
npm WARN deprecated jade@0.26.3: Jade has been renamed to pug, please install the latest version of pug instead of jade
npm WARN deprecated graceful-fs@2.0.3: graceful-fs v3.0.0 and before will fail on node releases >= v7.0. Please update to graceful-fs@^4.0.0 as soon as possible. Use 'npm ls graceful-fs' to find it in the tree.
index.js:93:12 [master] pid:2280 webdriver server start with config:
{ port: 3456,
window: true,
ip: '192.168.1.38',
host: 'admindeMBP',
loaded_time: '2016-05-09 00:28:57' }
middlewares.js:30:10 [master] pid:2280 base middlewares attached
router.js:117:10 [master] pid:2280 router set
webdriver sdk launched
macaca desktop sample
responseHandler.js:24:12 [master] pid:2280 Recieve HTTP Request from Client: method: POST url: /wd/hub/session, jsonBody: {"desiredCapabilities":{"autoAcceptAlerts":true,"platformName":"iOS","platformVersion":"9.3","deviceName":"iPhone 6s Plus","app":"/Users/admin/Downloads/macaca-test-sample-master/app/ios-app-bootstrap.zip"}}
session.js:24:10 [master] pid:2280 Creating session, sessionId: 60c55cae-a5fa-434e-88fd-e866aaa768f4.
macaca-ios is installing for the first time with args: ["install","macaca-ios","--registry=https://registry.npmjs.org/"]
helper.js:205:12 [master] pid:2280 Unzipping local app form /Users/admin/Downloads/macaca-test-sample-master/app/ios-app-bootstrap.zip
Get bundleId xudafeng.ios-app-bootstrap from plist /var/folders/dh/fvsjmhs56jx_yn2j4hdzwhym0000gn/T/ios-app-bootstrap.app/Info.plist
macaca-ios.js:181:10 [master] pid:2280 Get available devices [{"name":"iPhone 4s","udid":"C5590B3A-7571-425C-9CC9-92C0997EB0DB","state":"Shutdown","available":true,"runtime":"iOS 9.3"},{"name":"iPhone 5","udid":"440FC1A8-D843-4136-B233-659F632D6C2E","state":"Shutdown","available":true,"runtime":"iOS 9.3"},{"name":"iPhone 5s","udid":"6F898BC1-B45A-4CE1-9A9C-B720FB1DEBCD","state":"Shutdown","available":true,"runtime":"iOS 9.3"},{"name":"iPhone 6","udid":"D0464A88-230B-41BE-803D-13FCD27EBAC0","state":"Shutdown","available":true,"runtime":"iOS 9.3"},{"name":"iPhone 6 Plus","udid":"D379E69D-2D45-4AA9-B23E-C5E7DA1EA3FB","state":"Shutdown","available":true,"runtime":"iOS 9.3"},{"name":"iPhone 6s","udid":"9F00E9A0-6C8F-4061-B4F6-1EA9F4FA852C","state":"Shutdown","available":true,"runtime":"iOS 9.3"},{"name":"iPhone 6s Plus","udid":"2B47D1C8-0E80-4820-8000-0509B7DC01CF","state":"Booted","available":true,"runtime":"iOS 9.3"},{"name":"iPad 2","udid":"970D52B4-08EF-4FC5-8FC5-2A4D731EEB53","state":"Shutdown","available":true,"runtime":"iOS 9.3"},{"name":"iPad Retina","udid":"B23C8F64-968F-4BAC-B40C-772F3A3BA2B7","state":"Shutdown","available":true,"runtime":"iOS 9.3"},{"name":"iPad Air","udid":"79A9E064-7F63-4F9B-9083-105CC436F8C6","state":"Shutdown","available":true,"runtime":"iOS 9.3"},{"name":"iPad Air 2","udid":"43303CBD-5C14-41D1-8FA4-85D1E74E688E","state":"Shutdown","available":true,"runtime":"iOS 9.3"},{"name":"iPad Pro","udid":"F8446078-97E1-4924-9306-1B6B3AE605F9","state":"Shutdown","available":true,"runtime":"iOS 9.3"},{"name":"Apple TV 1080p","udid":"C5EC5A2A-3AF4-4412-98FA-352B2F5A624C","state":"Shutdown","available":true,"runtime":"tvOS 9.2"},{"name":"Apple Watch - 38mm","udid":"C1E12FD1-B082-4FFE-9860-E468A0F276F5","state":"Shutdown","available":true,"runtime":"watchOS 2.2"},{"name":"Apple Watch - 42mm","udid":"57D8E2CB-15DA-454B-934C-8465CA2AC0C7","state":"Shutdown","available":true,"runtime":"watchOS 2.2"}]
macaca-ios.js:220:12 [master] pid:2280 Shutdown simulator 2B47D1C8-0E80-4820-8000-0509B7DC01CF failed Error: Command failed: /bin/sh -c xcrun simctl shutdown "2B47D1C8-0E80-4820-8000-0509B7DC01CF"
An error was encountered processing the command (domain=com.apple.CoreSimulator.SimError, code=159):
Unable to shutdown device in current state: Shutdown
responseHandler.js:63:12 [master] pid:2280 Send Error Respone to Client: Error: Command failed: /bin/sh -c open -a Simulator --args -CurrentDeviceUDID "2B47D1C8-0E80-4820-8000-0509B7DC01CF"
The application /Users/admin/.Trash/Xcode 下午11.37.50.app/Contents/Developer/Applications/Simulator.app cannot be opened because it is in the Trash.
responseHandler.js:69:14 [master] pid:2280 Error: Command failed: /bin/sh -c open -a Simulator --args -CurrentDeviceUDID "2B47D1C8-0E80-4820-8000-0509B7DC01CF"
The application /Users/admin/.Trash/Xcode 下午11.37.50.app/Contents/Developer/Applications/Simulator.app cannot be opened because it is in the Trash.
at ChildProcess.exithandler (child_process.js:213:12)
at emitTwo (events.js:87:13)
at ChildProcess.emit (events.js:172:7)
at maybeClose (internal/child_process.js:827:16)
at Socket.<anonymous> (internal/child_process.js:319:11)
at emitOne (events.js:77:13)
at Socket.emit (events.js:169:7)
at Pipe._onclose (net.js:477:12)
Error: Command failed: /bin/sh -c open -a Simulator --args -CurrentDeviceUDID "2B47D1C8-0E80-4820-8000-0509B7DC01CF"
The application /Users/admin/.Trash/Xcode 下午11.37.50.app/Contents/Developer/Applications/Simulator.app cannot be opened because it is in the Trash.
at ChildProcess.exithandler (child_process.js:213:12)
at emitTwo (events.js:87:13)
at ChildProcess.emit (events.js:172:7)
at maybeClose (internal/child_process.js:827:16)
at Socket.<anonymous> (internal/child_process.js:319:11)
at emitOne (events.js:77:13)
at Socket.emit (events.js:169:7)
at Pipe._onclose (net.js:477:12)
1) "before all" hook
responseHandler.js:24:12 [master] pid:2280 Recieve HTTP Request from Client: method: DELETE url: /wd/hub/session, jsonBody: {}
responseHandler.js:32:14 [master] pid:2280 Send HTTP Respone to Client: 405 Method Not Allowed
2) "after all" hook
macaca mobile sample
responseHandler.js:24:12 [master] pid:2280 Recieve HTTP Request from Client: method: POST url: /wd/hub/session, jsonBody: {"desiredCapabilities":{"autoAcceptAlerts":true,"platformName":"iOS","platformVersion":"9.3","deviceName":"iPhone 6s Plus","app":"/Users/admin/Downloads/macaca-test-sample-master/app/ios-app-bootstrap.zip"}}
session.js:24:10 [master] pid:2280 Creating session, sessionId: cbb671c1-34cd-43d1-9856-64e167110ee6.
helper.js:205:12 [master] pid:2280 Unzipping local app form /Users/admin/Downloads/macaca-test-sample-master/app/ios-app-bootstrap.zip
Get bundleId xudafeng.ios-app-bootstrap from plist /var/folders/dh/fvsjmhs56jx_yn2j4hdzwhym0000gn/T/ios-app-bootstrap.app/Info.plist
macaca-ios.js:181:10 [master] pid:2280 Get available devices [{"name":"iPhone 4s","udid":"C5590B3A-7571-425C-9CC9-92C0997EB0DB","state":"Shutdown","available":true,"runtime":"iOS 9.3"},{"name":"iPhone 5","udid":"440FC1A8-D843-4136-B233-659F632D6C2E","state":"Shutdown","available":true,"runtime":"iOS 9.3"},{"name":"iPhone 5s","udid":"6F898BC1-B45A-4CE1-9A9C-B720FB1DEBCD","state":"Shutdown","available":true,"runtime":"iOS 9.3"},{"name":"iPhone 6","udid":"D0464A88-230B-41BE-803D-13FCD27EBAC0","state":"Shutdown","available":true,"runtime":"iOS 9.3"},{"name":"iPhone 6 Plus","udid":"D379E69D-2D45-4AA9-B23E-C5E7DA1EA3FB","state":"Shutdown","available":true,"runtime":"iOS 9.3"},{"name":"iPhone 6s","udid":"9F00E9A0-6C8F-4061-B4F6-1EA9F4FA852C","state":"Shutdown","available":true,"runtime":"iOS 9.3"},{"name":"iPhone 6s Plus","udid":"2B47D1C8-0E80-4820-8000-0509B7DC01CF","state":"Shutdown","available":true,"runtime":"iOS 9.3"},{"name":"iPad 2","udid":"970D52B4-08EF-4FC5-8FC5-2A4D731EEB53","state":"Shutdown","available":true,"runtime":"iOS 9.3"},{"name":"iPad Retina","udid":"B23C8F64-968F-4BAC-B40C-772F3A3BA2B7","state":"Shutdown","available":true,"runtime":"iOS 9.3"},{"name":"iPad Air","udid":"79A9E064-7F63-4F9B-9083-105CC436F8C6","state":"Shutdown","available":true,"runtime":"iOS 9.3"},{"name":"iPad Air 2","udid":"43303CBD-5C14-41D1-8FA4-85D1E74E688E","state":"Shutdown","available":true,"runtime":"iOS 9.3"},{"name":"iPad Pro","udid":"F8446078-97E1-4924-9306-1B6B3AE605F9","state":"Shutdown","available":true,"runtime":"iOS 9.3"},{"name":"Apple TV 1080p","udid":"C5EC5A2A-3AF4-4412-98FA-352B2F5A624C","state":"Shutdown","available":true,"runtime":"tvOS 9.2"},{"name":"Apple Watch - 38mm","udid":"C1E12FD1-B082-4FFE-9860-E468A0F276F5","state":"Shutdown","available":true,"runtime":"watchOS 2.2"},{"name":"Apple Watch - 42mm","udid":"57D8E2CB-15DA-454B-934C-8465CA2AC0C7","state":"Shutdown","available":true,"runtime":"watchOS 2.2"}]
macaca-ios.js:214:12 [master] pid:2280 Kill simulator failed Error: Command failed: /bin/sh -c killAll Simulator
No matching processes belonging to you were found
macaca-ios.js:220:12 [master] pid:2280 Shutdown simulator 2B47D1C8-0E80-4820-8000-0509B7DC01CF failed Error: Command failed: /bin/sh -c xcrun simctl shutdown "2B47D1C8-0E80-4820-8000-0509B7DC01CF"
An error was encountered processing the command (domain=com.apple.CoreSimulator.SimError, code=159):
Unable to shutdown device in current state: Shutdown
responseHandler.js:63:12 [master] pid:2280 Send Error Respone to Client: Error: Simulator 2B47D1C8-0E80-4820-8000-0509B7DC01CF is not booted.
responseHandler.js:69:14 [master] pid:2280 Error: Simulator 2B47D1C8-0E80-4820-8000-0509B7DC01CF is not booted.
at /usr/local/lib/node_modules/macaca-cli/node_modules/webdriver-server/node_modules/node-installer/node_modules/macaca-ios/lib/macaca-ios.js:237:20
Error: Simulator 2B47D1C8-0E80-4820-8000-0509B7DC01CF is not booted.
at /usr/local/lib/node_modules/macaca-cli/node_modules/webdriver-server/node_modules/node-installer/node_modules/macaca-ios/lib/macaca-ios.js:237:20
3) "before all" hook
responseHandler.js:24:12 [master] pid:2280 Recieve HTTP Request from Client: method: DELETE url: /wd/hub/session, jsonBody: {}
responseHandler.js:32:14 [master] pid:2280 Send HTTP Respone to Client: 405 Method Not Allowed
4) "after all" hook
macaca mobile sample
responseHandler.js:24:12 [master] pid:2280 Recieve HTTP Request from Client: method: POST url: /wd/hub/session, jsonBody: {"desiredCapabilities":{"autoAcceptAlerts":true,"platformName":"iOS","platformVersion":"9.3","deviceName":"iPhone 6s Plus","app":"/Users/admin/Downloads/macaca-test-sample-master/app/ios-app-bootstrap.zip"}}
session.js:24:10 [master] pid:2280 Creating session, sessionId: fe95615d-7d0a-47bd-baf3-353dbe583cef.
helper.js:205:12 [master] pid:2280 Unzipping local app form /Users/admin/Downloads/macaca-test-sample-master/app/ios-app-bootstrap.zip
Get bundleId xudafeng.ios-app-bootstrap from plist /var/folders/dh/fvsjmhs56jx_yn2j4hdzwhym0000gn/T/ios-app-bootstrap.app/Info.plist
macaca-ios.js:181:10 [master] pid:2280 Get available devices [{"name":"iPhone 4s","udid":"C5590B3A-7571-425C-9CC9-92C0997EB0DB","state":"Shutdown","available":true,"runtime":"iOS 9.3"},{"name":"iPhone 5","udid":"440FC1A8-D843-4136-B233-659F632D6C2E","state":"Shutdown","available":true,"runtime":"iOS 9.3"},{"name":"iPhone 5s","udid":"6F898BC1-B45A-4CE1-9A9C-B720FB1DEBCD","state":"Shutdown","available":true,"runtime":"iOS 9.3"},{"name":"iPhone 6","udid":"D0464A88-230B-41BE-803D-13FCD27EBAC0","state":"Shutdown","available":true,"runtime":"iOS 9.3"},{"name":"iPhone 6 Plus","udid":"D379E69D-2D45-4AA9-B23E-C5E7DA1EA3FB","state":"Shutdown","available":true,"runtime":"iOS 9.3"},{"name":"iPhone 6s","udid":"9F00E9A0-6C8F-4061-B4F6-1EA9F4FA852C","state":"Shutdown","available":true,"runtime":"iOS 9.3"},{"name":"iPhone 6s Plus","udid":"2B47D1C8-0E80-4820-8000-0509B7DC01CF","state":"Shutdown","available":true,"runtime":"iOS 9.3"},{"name":"iPad 2","udid":"970D52B4-08EF-4FC5-8FC5-2A4D731EEB53","state":"Shutdown","available":true,"runtime":"iOS 9.3"},{"name":"iPad Retina","udid":"B23C8F64-968F-4BAC-B40C-772F3A3BA2B7","state":"Shutdown","available":true,"runtime":"iOS 9.3"},{"name":"iPad Air","udid":"79A9E064-7F63-4F9B-9083-105CC436F8C6","state":"Shutdown","available":true,"runtime":"iOS 9.3"},{"name":"iPad Air 2","udid":"43303CBD-5C14-41D1-8FA4-85D1E74E688E","state":"Shutdown","available":true,"runtime":"iOS 9.3"},{"name":"iPad Pro","udid":"F8446078-97E1-4924-9306-1B6B3AE605F9","state":"Shutdown","available":true,"runtime":"iOS 9.3"},{"name":"Apple TV 1080p","udid":"C5EC5A2A-3AF4-4412-98FA-352B2F5A624C","state":"Shutdown","available":true,"runtime":"tvOS 9.2"},{"name":"Apple Watch - 38mm","udid":"C1E12FD1-B082-4FFE-9860-E468A0F276F5","state":"Shutdown","available":true,"runtime":"watchOS 2.2"},{"name":"Apple Watch - 42mm","udid":"57D8E2CB-15DA-454B-934C-8465CA2AC0C7","state":"Shutdown","available":true,"runtime":"watchOS 2.2"}]
macaca-ios.js:220:12 [master] pid:2280 Shutdown simulator 2B47D1C8-0E80-4820-8000-0509B7DC01CF failed Error: Command failed: /bin/sh -c xcrun simctl shutdown "2B47D1C8-0E80-4820-8000-0509B7DC01CF"
An error was encountered processing the command (domain=com.apple.CoreSimulator.SimError, code=159):
Unable to shutdown device in current state: Shutdown
xctest-client.js:219:14 [master] pid:2280 2016-05-09 00:30:52.172 xcodebuild[2388:55853] IDETestOperationsObserverDebug: Writing diagnostic log for test session to:
/Users/admin/Library/Developer/Xcode/DerivedData/WebDriverAgent-awzftkcqdhbxwscoabxyxnwjqjqc/Logs/Test/91FF6D11-9426-4D2A-A199-FCD8EF978F98/Session-2016-05-09_00:30:52-9PsVwI.log
xctest-client.js:219:14 [master] pid:2280 2016-05-09 00:33:28.810 xcodebuild[2565:58580] IDETestOperationsObserverDebug: Writing diagnostic log for test session to:
/Users/admin/Library/Developer/Xcode/DerivedData/WebDriverAgent-awzftkcqdhbxwscoabxyxnwjqjqc/Logs/Test/948613DA-1C01-4DBC-A9EF-CD1632271AEF/Session-2016-05-09_00:33:28-P86QnB.log
xctest-client.js:219:14 [master] pid:2280 2016-05-09 00:34:21.427 xcodebuild[2565:58580] DVTAssertions: Warning in /Library/Caches/com.apple.xbs/Sources/IDEXcode3ProjectSupport/IDEXcode3ProjectSupport-10150/Xcode3Core/LegacyProjects/Frameworks/DevToolsCore/DevToolsCore/SpecificationTypes/BuiltInSpecifications/Compilers/XCGccMakefileDependencies.mm:90
Details: Failed to read dependencies. Could not find colon in /Users/admin/Library/Developer/Xcode/DerivedData/WebDriverAgent-awzftkcqdhbxwscoabxyxnwjqjqc/Build/Intermediates/WebDriverAgent.build/Debug-iphonesimulator/XCTWebDriverAgentLib.build/Objects-normal/x86_64/FBElement.d''. Contents (0..100):<>''
Function: void XCGccMakefileDependenciesParsePathsFromRuleFile(NSString strong, void (^strong)(NSString __strong))
Thread: <NSThread: 0x7fc8223fbf30>{number = 9, name = (null)}
Please file a bug at http://bugreport.apple.com with this warning message and any useful information you can provide.
responseHandler.js:24:12 [master] pid:2280 Recieve HTTP Request from Client: method: POST url: /wd/hub/session, jsonBody: {"desiredCapabilities":{"autoAcceptAlerts":true,"platformName":"iOS","platformVersion":"9.3","deviceName":"iPhone 6s Plus","app":"/Users/admin/Downloads/macaca-test-sample-master/app/ios-app-bootstrap.zip"}}
session.js:24:10 [master] pid:2280 Creating session, sessionId: 0a862139-4bc5-4489-b308-6d00dc6c2bb9.
helper.js:205:12 [master] pid:2280 Unzipping local app form /Users/admin/Downloads/macaca-test-sample-master/app/ios-app-bootstrap.zip
Get bundleId xudafeng.ios-app-bootstrap from plist /var/folders/dh/fvsjmhs56jx_yn2j4hdzwhym0000gn/T/ios-app-bootstrap.app/Info.plist
macaca-ios.js:181:10 [master] pid:2280 Get available devices [{"name":"iPhone 4s","udid":"C5590B3A-7571-425C-9CC9-92C0997EB0DB","state":"Shutdown","available":true,"runtime":"iOS 9.3"},{"name":"iPhone 5","udid":"440FC1A8-D843-4136-B233-659F632D6C2E","state":"Shutdown","available":true,"runtime":"iOS 9.3"},{"name":"iPhone 5s","udid":"6F898BC1-B45A-4CE1-9A9C-B720FB1DEBCD","state":"Shutdown","available":true,"runtime":"iOS 9.3"},{"name":"iPhone 6","udid":"D0464A88-230B-41BE-803D-13FCD27EBAC0","state":"Shutdown","available":true,"runtime":"iOS 9.3"},{"name":"iPhone 6 Plus","udid":"D379E69D-2D45-4AA9-B23E-C5E7DA1EA3FB","state":"Shutdown","available":true,"runtime":"iOS 9.3"},{"name":"iPhone 6s","udid":"9F00E9A0-6C8F-4061-B4F6-1EA9F4FA852C","state":"Shutdown","available":true,"runtime":"iOS 9.3"},{"name":"iPhone 6s Plus","udid":"2B47D1C8-0E80-4820-8000-0509B7DC01CF","state":"Booted","available":true,"runtime":"iOS 9.3"},{"name":"iPad 2","udid":"970D52B4-08EF-4FC5-8FC5-2A4D731EEB53","state":"Shutdown","available":true,"runtime":"iOS 9.3"},{"name":"iPad Retina","udid":"B23C8F64-968F-4BAC-B40C-772F3A3BA2B7","state":"Shutdown","available":true,"runtime":"iOS 9.3"},{"name":"iPad Air","udid":"79A9E064-7F63-4F9B-9083-105CC436F8C6","state":"Shutdown","available":true,"runtime":"iOS 9.3"},{"name":"iPad Air 2","udid":"43303CBD-5C14-41D1-8FA4-85D1E74E688E","state":"Shutdown","available":true,"runtime":"iOS 9.3"},{"name":"iPad Pro","udid":"F8446078-97E1-4924-9306-1B6B3AE605F9","state":"Shutdown","available":true,"runtime":"iOS 9.3"},{"name":"Apple TV 1080p","udid":"C5EC5A2A-3AF4-4412-98FA-352B2F5A624C","state":"Shutdown","available":true,"runtime":"tvOS 9.2"},{"name":"Apple Watch - 38mm","udid":"C1E12FD1-B082-4FFE-9860-E468A0F276F5","state":"Shutdown","available":true,"runtime":"watchOS 2.2"},{"name":"Apple Watch - 42mm","udid":"57D8E2CB-15DA-454B-934C-8465CA2AC0C7","state":"Shutdown","available":true,"runtime":"watchOS 2.2"}]
agent path: /usr/local/lib/node_modules/macaca-cli/node_modules/webdriver-server/node_modules/node-installer/node_modules/macaca-ios/node_modules/xctest-client/node_modules/webdriveragent/WebDriverAgent/WebDriverAgent.xcworkspace
macaca-ios.js:131:10 [master] pid:2280 {
"bundleId": "xudafeng.ios-app-bootstrap",
"platformName": "iOS",
"platformVersion": "9.3",
"app": "/var/folders/dh/fvsjmhs56jx_yn2j4hdzwhym0000gn/T/ios-app-bootstrap.app/"
}
xctest-client.js:246:12 [master] pid:2280 xcode version: 7.3.1
xctest-client.js:150:16 [master] pid:2280 tail: /Users/admin/Library/Logs/CoreSimulator/2B47D1C8-0E80-4820-8000-0509B7DC01CF/system.log: No such file or directory
xctest-client.js:158:16 [master] pid:2280 bootstrap exit with code: 1, signal: null
responseHandler.js:63:12 [master] pid:2280 Send Error Respone to Client: undefined
InternalServerError: Internal Server Error
at Object.module.exports.throw (/usr/local/lib/node_modules/macaca-cli/node_modules/webdriver-server/node_modules/koa/lib/context.js:91:23)
at Object.module.exports (/usr/local/lib/node_modules/macaca-cli/node_modules/webdriver-server/lib/server/responseHandler.js:66:17)
at throw (native)
at onRejected (/usr/local/lib/node_modules/macaca-cli/node_modules/co/index.js:81:24)
at process._tickCallback (node.js:369:9)
5) "before all" hook
responseHandler.js:24:12 [master] pid:2280 Recieve HTTP Request from Client: method: DELETE url: /wd/hub/session, jsonBody: {}
responseHandler.js:32:14 [master] pid:2280 Send HTTP Respone to Client: 405 Method Not Allowed
6) "after all" hook
0 passing (6m)
6 failing
1) macaca desktop sample "before all" hook:
[init({"autoAcceptAlerts":true,"platformName":"iOS","platformVersion":"9.3","deviceName":"iPhone 6s Plus","app":"/Users/admin/Downloads/macaca-test-sample-master/app/ios-app-bootstrap.zip"})] The environment you requested was unavailable.
Error: [init({"autoAcceptAlerts":true,"platformName":"iOS","platformVersion":"9.3","deviceName":"iPhone 6s Plus","app":"app/ios-app-bootstrap.zip"})] The environment you requested was unavailable.
at node_modules/webdriver-client/node_modules/macaca-wd/wd/lib/webdriver.js:134:15
at Request._callback (node_modules/webdriver-client/node_modules/macaca-wd/wd/lib/http-utils.js:87:7)
at Request.self.callback (node_modules/webdriver-client/node_modules/macaca-wd/node_modules/request/request.js:368:22)
at Request. (node_modules/webdriver-client/node_modules/macaca-wd/node_modules/request/request.js:1219:14)
at IncomingMessage. (node_modules/webdriver-client/node_modules/macaca-wd/node_modules/request/request.js:1167:12)
at endReadableNT (_stream_readable.js:913:12)
2) macaca desktop sample "after all" hook:
Error: [quit()] Unexpected data in simpleCallback.
at exports.newError (node_modules/webdriver-client/node_modules/macaca-wd/wd/lib/utils.js:139:13)
at null. (node_modules/webdriver-client/node_modules/macaca-wd/wd/lib/callbacks.js:42:12)
at cb (node_modules/webdriver-client/node_modules/macaca-wd/wd/lib/webdriver.js:165:22)
at node_modules/webdriver-client/node_modules/macaca-wd/wd/lib/webdriver.js:179:5
at Request._callback (node_modules/webdriver-client/node_modules/macaca-wd/wd/lib/http-utils.js:87:7)
at Request.self.callback (node_modules/webdriver-client/node_modules/macaca-wd/node_modules/request/request.js:368:22)
at Request. (node_modules/webdriver-client/node_modules/macaca-wd/node_modules/request/request.js:1219:14)
at IncomingMessage. (node_modules/webdriver-client/node_modules/macaca-wd/node_modules/request/request.js:1167:12)
at endReadableNT (_stream_readable.js:913:12)
3) macaca mobile sample "before all" hook:
[init({"autoAcceptAlerts":true,"platformName":"iOS","platformVersion":"9.3","deviceName":"iPhone 6s Plus","app":"/Users/admin/Downloads/macaca-test-sample-master/app/ios-app-bootstrap.zip"})] The environment you requested was unavailable.
Error: [init({"autoAcceptAlerts":true,"platformName":"iOS","platformVersion":"9.3","deviceName":"iPhone 6s Plus","app":"app/ios-app-bootstrap.zip"})] The environment you requested was unavailable.
at node_modules/webdriver-client/node_modules/macaca-wd/wd/lib/webdriver.js:134:15
at Request._callback (node_modules/webdriver-client/node_modules/macaca-wd/wd/lib/http-utils.js:87:7)
at Request.self.callback (node_modules/webdriver-client/node_modules/macaca-wd/node_modules/request/request.js:368:22)
at Request. (node_modules/webdriver-client/node_modules/macaca-wd/node_modules/request/request.js:1219:14)
at IncomingMessage. (node_modules/webdriver-client/node_modules/macaca-wd/node_modules/request/request.js:1167:12)
at endReadableNT (_stream_readable.js:913:12)
4) macaca mobile sample "after all" hook:
Error: [quit()] Unexpected data in simpleCallback.
at exports.newError (node_modules/webdriver-client/node_modules/macaca-wd/wd/lib/utils.js:139:13)
at null. (node_modules/webdriver-client/node_modules/macaca-wd/wd/lib/callbacks.js:42:12)
at cb (node_modules/webdriver-client/node_modules/macaca-wd/wd/lib/webdriver.js:165:22)
at node_modules/webdriver-client/node_modules/macaca-wd/wd/lib/webdriver.js:179:5
at Request._callback (node_modules/webdriver-client/node_modules/macaca-wd/wd/lib/http-utils.js:87:7)
at Request.self.callback (node_modules/webdriver-client/node_modules/macaca-wd/node_modules/request/request.js:368:22)
at Request. (node_modules/webdriver-client/node_modules/macaca-wd/node_modules/request/request.js:1219:14)
at IncomingMessage. (node_modules/webdriver-client/node_modules/macaca-wd/node_modules/request/request.js:1167:12)
at endReadableNT (_stream_readable.js:913:12)
5) macaca mobile sample "before all" hook:
[init({"autoAcceptAlerts":true,"platformName":"iOS","platformVersion":"9.3","deviceName":"iPhone 6s Plus","app":"/Users/admin/Downloads/macaca-test-sample-master/app/ios-app-bootstrap.zip"})] The environment you requested was unavailable.
Error: [init({"autoAcceptAlerts":true,"platformName":"iOS","platformVersion":"9.3","deviceName":"iPhone 6s Plus","app":"app/ios-app-bootstrap.zip"})] The environment you requested was unavailable.
at node_modules/webdriver-client/node_modules/macaca-wd/wd/lib/webdriver.js:134:15
at Request._callback (node_modules/webdriver-client/node_modules/macaca-wd/wd/lib/http-utils.js:87:7)
at Request.self.callback (node_modules/webdriver-client/node_modules/macaca-wd/node_modules/request/request.js:368:22)
at Request. (node_modules/webdriver-client/node_modules/macaca-wd/node_modules/request/request.js:1219:14)
at IncomingMessage. (node_modules/webdriver-client/node_modules/macaca-wd/node_modules/request/request.js:1167:12)
at endReadableNT (_stream_readable.js:913:12)
6) macaca mobile sample "after all" hook:
Error: [quit()] Unexpected data in simpleCallback.
at exports.newError (node_modules/webdriver-client/node_modules/macaca-wd/wd/lib/utils.js:139:13)
at null. (node_modules/webdriver-client/node_modules/macaca-wd/wd/lib/callbacks.js:42:12)
at cb (node_modules/webdriver-client/node_modules/macaca-wd/wd/lib/webdriver.js:165:22)
at node_modules/webdriver-client/node_modules/macaca-wd/wd/lib/webdriver.js:179:5
at Request._callback (node_modules/webdriver-client/node_modules/macaca-wd/wd/lib/http-utils.js:87:7)
at Request.self.callback (node_modules/webdriver-client/node_modules/macaca-wd/node_modules/request/request.js:368:22)
at Request. (node_modules/webdriver-client/node_modules/macaca-wd/node_modules/request/request.js:1219:14)
at IncomingMessage. (node_modules/webdriver-client/node_modules/macaca-wd/node_modules/request/request.js:1167:12)
at endReadableNT (_stream_readable.js:913:12)
Test completed!
admindeMBP:macaca-test-sample-master admin$
admindeMBP:macaca-test-sample-master admin$
admindeMBP:macaca-test-sample-master admin$ sudo chown -R admin /usr/local
Password:
admindeMBP:macaca-test-sample-master admin$ macaca run --verbose
index.js:93:12 [master] pid:3226 webdriver server start with config:
{ port: 3456,
window: true,
ip: '0.0.0.0',
host: 'admindeMacBook-Pro.local',
loaded_time: '2016-05-09 10:16:27' }
middlewares.js:30:10 [master] pid:3226 base middlewares attached
router.js:117:10 [master] pid:3226 router set
webdriver sdk launched
macaca desktop sample
responseHandler.js:24:12 [master] pid:3226 Recieve HTTP Request from Client: method: POST url: /wd/hub/session, jsonBody: {"desiredCapabilities":{"autoAcceptAlerts":true,"platformName":"iOS","platformVersion":"9.3","deviceName":"iPhone 6s Plus","app":"/Users/admin/Downloads/macaca-test-sample-master/app/ios-app-bootstrap.zip"}}
session.js:24:10 [master] pid:3226 Creating session, sessionId: ffbf9fe3-b171-44c5-b268-33201703d766.
helper.js:205:12 [master] pid:3226 Unzipping local app form /Users/admin/Downloads/macaca-test-sample-master/app/ios-app-bootstrap.zip
Get bundleId xudafeng.ios-app-bootstrap from plist /var/folders/dh/fvsjmhs56jx_yn2j4hdzwhym0000gn/T/ios-app-bootstrap.app/Info.plist
macaca-ios.js:181:10 [master] pid:3226 Get available devices [{"name":"iPhone 4s","udid":"C5590B3A-7571-425C-9CC9-92C0997EB0DB","state":"Shutdown","available":true,"runtime":"iOS 9.3"},{"name":"iPhone 5","udid":"440FC1A8-D843-4136-B233-659F632D6C2E","state":"Shutdown","available":true,"runtime":"iOS 9.3"},{"name":"iPhone 5s","udid":"6F898BC1-B45A-4CE1-9A9C-B720FB1DEBCD","state":"Shutdown","available":true,"runtime":"iOS 9.3"},{"name":"iPhone 6","udid":"D0464A88-230B-41BE-803D-13FCD27EBAC0","state":"Shutdown","available":true,"runtime":"iOS 9.3"},{"name":"iPhone 6 Plus","udid":"D379E69D-2D45-4AA9-B23E-C5E7DA1EA3FB","state":"Shutdown","available":true,"runtime":"iOS 9.3"},{"name":"iPhone 6s","udid":"9F00E9A0-6C8F-4061-B4F6-1EA9F4FA852C","state":"Shutdown","available":true,"runtime":"iOS 9.3"},{"name":"iPhone 6s Plus","udid":"2B47D1C8-0E80-4820-8000-0509B7DC01CF","state":"Booted","available":true,"runtime":"iOS 9.3"},{"name":"iPad 2","udid":"970D52B4-08EF-4FC5-8FC5-2A4D731EEB53","state":"Shutdown","available":true,"runtime":"iOS 9.3"},{"name":"iPad Retina","udid":"B23C8F64-968F-4BAC-B40C-772F3A3BA2B7","state":"Shutdown","available":true,"runtime":"iOS 9.3"},{"name":"iPad Air","udid":"79A9E064-7F63-4F9B-9083-105CC436F8C6","state":"Shutdown","available":true,"runtime":"iOS 9.3"},{"name":"iPad Air 2","udid":"43303CBD-5C14-41D1-8FA4-85D1E74E688E","state":"Shutdown","available":true,"runtime":"iOS 9.3"},{"name":"iPad Pro","udid":"F8446078-97E1-4924-9306-1B6B3AE605F9","state":"Shutdown","available":true,"runtime":"iOS 9.3"},{"name":"Apple TV 1080p","udid":"C5EC5A2A-3AF4-4412-98FA-352B2F5A624C","state":"Shutdown","available":true,"runtime":"tvOS 9.2"},{"name":"Apple Watch - 38mm","udid":"C1E12FD1-B082-4FFE-9860-E468A0F276F5","state":"Shutdown","available":true,"runtime":"watchOS 2.2"},{"name":"Apple Watch - 42mm","udid":"57D8E2CB-15DA-454B-934C-8465CA2AC0C7","state":"Shutdown","available":true,"runtime":"watchOS 2.2"}]
macaca-ios.js:220:12 [master] pid:3226 Shutdown simulator 2B47D1C8-0E80-4820-8000-0509B7DC01CF failed Error: Command failed: /bin/sh -c xcrun simctl shutdown "2B47D1C8-0E80-4820-8000-0509B7DC01CF"
An error was encountered processing the command (domain=com.apple.CoreSimulator.SimError, code=159):
Unable to shutdown device in current state: Shutdown
InternalServerError: Internal Server Error
at Object.module.exports.throw (/usr/local/lib/node_modules/macaca-cli/node_modules/webdriver-server/node_modules/koa/lib/context.js:91:23)
at Object.module.exports (/usr/local/lib/node_modules/macaca-cli/node_modules/webdriver-server/lib/server/responseHandler.js:66:17)
at throw (native)
at onRejected (/usr/local/lib/node_modules/macaca-cli/node_modules/co/index.js:81:24)
at process._tickCallback (node.js:369:9)
xctest-client.js:150:16 [master] pid:3226 tail: /Users/admin/Library/Logs/CoreSimulator/2B47D1C8-0E80-4820-8000-0509B7DC01CF/system.log: No such file or directory
1) "before all" hook
responseHandler.js:24:12 [master] pid:3226 Recieve HTTP Request from Client: method: DELETE url: /wd/hub/session, jsonBody: {}
responseHandler.js:32:14 [master] pid:3226 Send HTTP Respone to Client: 405 Method Not Allowed
2) "after all" hook
xctest-client.js:219:14 [master] pid:3226 2016-05-09 10:17:40.250 xcodebuild[3364:70209] IDETestOperationsObserverDebug: Writing diagnostic log for test session to:
/Users/admin/Library/Developer/Xcode/DerivedData/WebDriverAgent-awzftkcqdhbxwscoabxyxnwjqjqc/Logs/Test/22503484-3171-43D3-AB81-8121D232E8D7/Session-2016-05-09_10:17:40-rWpoQ0.log
xctest-client.js:219:14 [master] pid:3226 2016-05-09 10:17:40.251 xcodebuild[3277:70309] IDETestOperationsObserverDebug: Writing diagnostic log for test session to:
/Users/admin/Library/Developer/Xcode/DerivedData/WebDriverAgent-awzftkcqdhbxwscoabxyxnwjqjqc/Logs/Test/837D7BD5-39AA-4B1F-95F4-C79136DE6C3D/Session-2016-05-09_10:17:40-MAAoxR.log
xctest-client.js:219:14 [master] pid:3226
Testing failed:
Command /bin/sh failed with exit code 1
\ TEST FAILED **
xctest-client.js:219:14 [master] pid:3226
The following build commands failed:
PhaseScriptExecution Copy\ Pods\ Resources /Users/admin/Library/Developer/Xcode/DerivedData/WebDriverAgent-awzftkcqdhbxwscoabxyxnwjqjqc/Build/Intermediates/WebDriverAgent.build/Debug-iphonesimulator/XCTUITestRunner.build/Script-84E99BA5A11D6EF368DAFB3C.sh
(1 failure)
xctest-client.js:227:14 [master] pid:3226 xctest client exit with code: 65, signal: null
responseHandler.js:24:12 [master] pid:3226 Recieve HTTP Request from Client: method: POST url: /wd/hub/session, jsonBody: {"desiredCapabilities":{"autoAcceptAlerts":true,"platformName":"iOS","platformVersion":"9.3","deviceName":"iPhone 6s Plus","app":"/Users/admin/Downloads/macaca-test-sample-master/app/ios-app-bootstrap.zip"}}
session.js:24:10 [master] pid:3226 Creating session, sessionId: 669d34d9-f40a-4327-82cc-476c98a5298b.
helper.js:205:12 [master] pid:3226 Unzipping local app form /Users/admin/Downloads/macaca-test-sample-master/app/ios-app-bootstrap.zip
Get bundleId xudafeng.ios-app-bootstrap from plist /var/folders/dh/fvsjmhs56jx_yn2j4hdzwhym0000gn/T/ios-app-bootstrap.app/Info.plist
macaca-ios.js:181:10 [master] pid:3226 Get available devices [{"name":"iPhone 4s","udid":"C5590B3A-7571-425C-9CC9-92C0997EB0DB","state":"Shutdown","available":true,"runtime":"iOS 9.3"},{"name":"iPhone 5","udid":"440FC1A8-D843-4136-B233-659F632D6C2E","state":"Shutdown","available":true,"runtime":"iOS 9.3"},{"name":"iPhone 5s","udid":"6F898BC1-B45A-4CE1-9A9C-B720FB1DEBCD","state":"Shutdown","available":true,"runtime":"iOS 9.3"},{"name":"iPhone 6","udid":"D0464A88-230B-41BE-803D-13FCD27EBAC0","state":"Shutdown","available":true,"runtime":"iOS 9.3"},{"name":"iPhone 6 Plus","udid":"D379E69D-2D45-4AA9-B23E-C5E7DA1EA3FB","state":"Shutdown","available":true,"runtime":"iOS 9.3"},{"name":"iPhone 6s","udid":"9F00E9A0-6C8F-4061-B4F6-1EA9F4FA852C","state":"Shutdown","available":true,"runtime":"iOS 9.3"},{"name":"iPhone 6s Plus","udid":"2B47D1C8-0E80-4820-8000-0509B7DC01CF","state":"Booted","available":true,"runtime":"iOS 9.3"},{"name":"iPad 2","udid":"970D52B4-08EF-4FC5-8FC5-2A4D731EEB53","state":"Shutdown","available":true,"runtime":"iOS 9.3"},{"name":"iPad Retina","udid":"B23C8F64-968F-4BAC-B40C-772F3A3BA2B7","state":"Shutdown","available":true,"runtime":"iOS 9.3"},{"name":"iPad Air","udid":"79A9E064-7F63-4F9B-9083-105CC436F8C6","state":"Shutdown","available":true,"runtime":"iOS 9.3"},{"name":"iPad Air 2","udid":"43303CBD-5C14-41D1-8FA4-85D1E74E688E","state":"Shutdown","available":true,"runtime":"iOS 9.3"},{"name":"iPad Pro","udid":"F8446078-97E1-4924-9306-1B6B3AE605F9","state":"Shutdown","available":true,"runtime":"iOS 9.3"},{"name":"Apple TV 1080p","udid":"C5EC5A2A-3AF4-4412-98FA-352B2F5A624C","state":"Shutdown","available":true,"runtime":"tvOS 9.2"},{"name":"Apple Watch - 38mm","udid":"C1E12FD1-B082-4FFE-9860-E468A0F276F5","state":"Shutdown","available":true,"runtime":"watchOS 2.2"},{"name":"Apple Watch - 42mm","udid":"57D8E2CB-15DA-454B-934C-8465CA2AC0C7","state":"Shutdown","available":true,"runtime":"watchOS 2.2"}]
xctest-client.js:219:14 [master] pid:3226 \ TEST FAILED **
xctest-client.js:219:14 [master] pid:3226 2016-05-09 10:21:45.569 xcodebuild[3663:74912] IDETestOperationsObserverDebug: Writing diagnostic log for test session to:
/Users/admin/Library/Developer/Xcode/DerivedData/WebDriverAgent-awzftkcqdhbxwscoabxyxnwjqjqc/Logs/Test/19C16D3E-87FF-40AD-AC82-33D51CF06CF9/Session-2016-05-09_10:21:45-kmFUwp.log
3) "before all" hook
responseHandler.js:24:12 [master] pid:3226 Recieve HTTP Request from Client: method: DELETE url: /wd/hub/session, jsonBody: {}
responseHandler.js:32:14 [master] pid:3226 Send HTTP Respone to Client: 405 Method Not Allowed
4) "after all" hook
InternalServerError: Internal Server Error
at Object.module.exports.throw (/usr/local/lib/node_modules/macaca-cli/node_modules/webdriver-server/node_modules/koa/lib/context.js:91:23)
at Object.module.exports (/usr/local/lib/node_modules/macaca-cli/node_modules/webdriver-server/lib/server/responseHandler.js:66:17)
at throw (native)
at onRejected (/usr/local/lib/node_modules/macaca-cli/node_modules/co/index.js:81:24)
at process._tickCallback (node.js:369:9)
xctest-client.js:150:16 [master] pid:3226 tail: /Users/admin/Library/Logs/CoreSimulator/2B47D1C8-0E80-4820-8000-0509B7DC01CF/system.log: No such file or directory
5) "before all" hook
responseHandler.js:24:12 [master] pid:3226 Recieve HTTP Request from Client: method: DELETE url: /wd/hub/session, jsonBody: {}
responseHandler.js:32:14 [master] pid:3226 Send HTTP Respone to Client: 405 Method Not Allowed
6) "after all" hook
0 passing (6m)
6 failing
1) macaca desktop sample "before all" hook:
[init({"autoAcceptAlerts":true,"platformName":"iOS","platformVersion":"9.3","deviceName":"iPhone 6s Plus","app":"/Users/admin/Downloads/macaca-test-sample-master/app/ios-app-bootstrap.zip"})] The environment you requested was unavailable.
Error: [init({"autoAcceptAlerts":true,"platformName":"iOS","platformVersion":"9.3","deviceName":"iPhone 6s Plus","app":"app/ios-app-bootstrap.zip"})] The environment you requested was unavailable.
at node_modules/webdriver-client/node_modules/macaca-wd/wd/lib/webdriver.js:134:15
at Request._callback (node_modules/webdriver-client/node_modules/macaca-wd/wd/lib/http-utils.js:87:7)
at Request.self.callback (node_modules/webdriver-client/node_modules/macaca-wd/node_modules/request/request.js:368:22)
at Request. (node_modules/webdriver-client/node_modules/macaca-wd/node_modules/request/request.js:1219:14)
at IncomingMessage. (node_modules/webdriver-client/node_modules/macaca-wd/node_modules/request/request.js:1167:12)
at endReadableNT (_stream_readable.js:913:12)
2) macaca desktop sample "after all" hook:
Error: [quit()] Unexpected data in simpleCallback.
at exports.newError (node_modules/webdriver-client/node_modules/macaca-wd/wd/lib/utils.js:139:13)
at null. (node_modules/webdriver-client/node_modules/macaca-wd/wd/lib/callbacks.js:42:12)
at cb (node_modules/webdriver-client/node_modules/macaca-wd/wd/lib/webdriver.js:165:22)
at node_modules/webdriver-client/node_modules/macaca-wd/wd/lib/webdriver.js:179:5
at Request._callback (node_modules/webdriver-client/node_modules/macaca-wd/wd/lib/http-utils.js:87:7)
at Request.self.callback (node_modules/webdriver-client/node_modules/macaca-wd/node_modules/request/request.js:368:22)
at Request. (node_modules/webdriver-client/node_modules/macaca-wd/node_modules/request/request.js:1219:14)
at IncomingMessage. (node_modules/webdriver-client/node_modules/macaca-wd/node_modules/request/request.js:1167:12)
at endReadableNT (_stream_readable.js:913:12)
3) macaca mobile sample "before all" hook:
Error: timeout of 300000ms exceeded. Ensure the done() callback is being called in this test.
4) macaca mobile sample "after all" hook:
Error: [quit()] Unexpected data in simpleCallback.
at exports.newError (node_modules/webdriver-client/node_modules/macaca-wd/wd/lib/utils.js:139:13)
at null. (node_modules/webdriver-client/node_modules/macaca-wd/wd/lib/callbacks.js:42:12)
at cb (node_modules/webdriver-client/node_modules/macaca-wd/wd/lib/webdriver.js:165:22)
at node_modules/webdriver-client/node_modules/macaca-wd/wd/lib/webdriver.js:179:5
at Request._callback (node_modules/webdriver-client/node_modules/macaca-wd/wd/lib/http-utils.js:87:7)
at Request.self.callback (node_modules/webdriver-client/node_modules/macaca-wd/node_modules/request/request.js:368:22)
at Request. (node_modules/webdriver-client/node_modules/macaca-wd/node_modules/request/request.js:1219:14)
at IncomingMessage. (node_modules/webdriver-client/node_modules/macaca-wd/node_modules/request/request.js:1167:12)
at endReadableNT (_stream_readable.js:913:12)
5) macaca mobile sample "before all" hook:
[init({"autoAcceptAlerts":true,"platformName":"iOS","platformVersion":"9.3","deviceName":"iPhone 6s Plus","app":"/Users/admin/Downloads/macaca-test-sample-master/app/ios-app-bootstrap.zip"})] The environment you requested was unavailable.
Error: [init({"autoAcceptAlerts":true,"platformName":"iOS","platformVersion":"9.3","deviceName":"iPhone 6s Plus","app":"app/ios-app-bootstrap.zip"})] The environment you requested was unavailable.
at node_modules/webdriver-client/node_modules/macaca-wd/wd/lib/webdriver.js:134:15
at Request._callback (node_modules/webdriver-client/node_modules/macaca-wd/wd/lib/http-utils.js:87:7)
at Request.self.callback (node_modules/webdriver-client/node_modules/macaca-wd/node_modules/request/request.js:368:22)
at Request. (node_modules/webdriver-client/node_modules/macaca-wd/node_modules/request/request.js:1219:14)
at IncomingMessage. (node_modules/webdriver-client/node_modules/macaca-wd/node_modules/request/request.js:1167:12)
at endReadableNT (_stream_readable.js:913:12)
6) macaca mobile sample "after all" hook:
Error: [quit()] Unexpected data in simpleCallback.
at exports.newError (node_modules/webdriver-client/node_modules/macaca-wd/wd/lib/utils.js:139:13)
at null. (node_modules/webdriver-client/node_modules/macaca-wd/wd/lib/callbacks.js:42:12)
at cb (node_modules/webdriver-client/node_modules/macaca-wd/wd/lib/webdriver.js:165:22)
at node_modules/webdriver-client/node_modules/macaca-wd/wd/lib/webdriver.js:179:5
at Request._callback (node_modules/webdriver-client/node_modules/macaca-wd/wd/lib/http-utils.js:87:7)
at Request.self.callback (node_modules/webdriver-client/node_modules/macaca-wd/node_modules/request/request.js:368:22)
at Request. (node_modules/webdriver-client/node_modules/macaca-wd/node_modules/request/request.js:1219:14)
at IncomingMessage. (node_modules/webdriver-client/node_modules/macaca-wd/node_modules/request/request.js:1167:12)
at endReadableNT (_stream_readable.js:913:12)
Test completed!
admindeMBP:macaca-test-sample-master admin$ clean
-bash: clean: command not found
admindeMBP:macaca-test-sample-master admin$ clear
admindeMBP:macaca-test-sample-master admin$ macaca run --verbose
index.js:93:12 [master] pid:3874 webdriver server start with config:
{ port: 3456,
window: true,
ip: '0.0.0.0',
host: 'admindeMacBook-Pro.local',
loaded_time: '2016-05-09 10:29:19' }
middlewares.js:30:10 [master] pid:3874 base middlewares attached
router.js:117:10 [master] pid:3874 router set
webdriver sdk launched
macaca desktop sample
responseHandler.js:24:12 [master] pid:3874 Recieve HTTP Request from Client: method: POST url: /wd/hub/session, jsonBody: {"desiredCapabilities":{"autoAcceptAlerts":true,"platformName":"iOS","platformVersion":"9.3","deviceName":"iPhone 6s Plus","app":"/Users/admin/Downloads/macaca-test-sample-master/app/ios-app-bootstrap.zip"}}
session.js:24:10 [master] pid:3874 Creating session, sessionId: 295b5f1d-2553-46a0-b662-158a66de3c26.
helper.js:205:12 [master] pid:3874 Unzipping local app form /Users/admin/Downloads/macaca-test-sample-master/app/ios-app-bootstrap.zip
Get bundleId xudafeng.ios-app-bootstrap from plist /var/folders/dh/fvsjmhs56jx_yn2j4hdzwhym0000gn/T/ios-app-bootstrap.app/Info.plist
macaca-ios.js:181:10 [master] pid:3874 Get available devices [{"name":"iPhone 4s","udid":"C5590B3A-7571-425C-9CC9-92C0997EB0DB","state":"Shutdown","available":true,"runtime":"iOS 9.3"},{"name":"iPhone 5","udid":"440FC1A8-D843-4136-B233-659F632D6C2E","state":"Shutdown","available":true,"runtime":"iOS 9.3"},{"name":"iPhone 5s","udid":"6F898BC1-B45A-4CE1-9A9C-B720FB1DEBCD","state":"Shutdown","available":true,"runtime":"iOS 9.3"},{"name":"iPhone 6","udid":"D0464A88-230B-41BE-803D-13FCD27EBAC0","state":"Shutdown","available":true,"runtime":"iOS 9.3"},{"name":"iPhone 6 Plus","udid":"D379E69D-2D45-4AA9-B23E-C5E7DA1EA3FB","state":"Shutdown","available":true,"runtime":"iOS 9.3"},{"name":"iPhone 6s","udid":"9F00E9A0-6C8F-4061-B4F6-1EA9F4FA852C","state":"Shutdown","available":true,"runtime":"iOS 9.3"},{"name":"iPhone 6s Plus","udid":"2B47D1C8-0E80-4820-8000-0509B7DC01CF","state":"Booted","available":true,"runtime":"iOS 9.3"},{"name":"iPad 2","udid":"970D52B4-08EF-4FC5-8FC5-2A4D731EEB53","state":"Shutdown","available":true,"runtime":"iOS 9.3"},{"name":"iPad Retina","udid":"B23C8F64-968F-4BAC-B40C-772F3A3BA2B7","state":"Shutdown","available":true,"runtime":"iOS 9.3"},{"name":"iPad Air","udid":"79A9E064-7F63-4F9B-9083-105CC436F8C6","state":"Shutdown","available":true,"runtime":"iOS 9.3"},{"name":"iPad Air 2","udid":"43303CBD-5C14-41D1-8FA4-85D1E74E688E","state":"Shutdown","available":true,"runtime":"iOS 9.3"},{"name":"iPad Pro","udid":"F8446078-97E1-4924-9306-1B6B3AE605F9","state":"Shutdown","available":true,"runtime":"iOS 9.3"},{"name":"Apple TV 1080p","udid":"C5EC5A2A-3AF4-4412-98FA-352B2F5A624C","state":"Shutdown","available":true,"runtime":"tvOS 9.2"},{"name":"Apple Watch - 38mm","udid":"C1E12FD1-B082-4FFE-9860-E468A0F276F5","state":"Shutdown","available":true,"runtime":"watchOS 2.2"},{"name":"Apple Watch - 42mm","udid":"57D8E2CB-15DA-454B-934C-8465CA2AC0C7","state":"Shutdown","available":true,"runtime":"watchOS 2.2"}]
macaca-ios.js:220:12 [master] pid:3874 Shutdown simulator 2B47D1C8-0E80-4820-8000-0509B7DC01CF failed Error: Command failed: /bin/sh -c xcrun simctl shutdown "2B47D1C8-0E80-4820-8000-0509B7DC01CF"
An error was encountered processing the command (domain=com.apple.CoreSimulator.SimError, code=159):
Unable to shutdown device in current state: Shutdown
xctest-client.js:158:16 [master] pid:3874 bootstrap exit with code: 1, signal: null
responseHandler.js:63:12 [master] pid:3874 Send Error Respone to Client: undefined
InternalServerError: Internal Server Error
at Object.module.exports.throw (/usr/local/lib/node_modules/macaca-cli/node_modules/webdriver-server/node_modules/koa/lib/context.js:91:23)
at Object.module.exports (/usr/local/lib/node_modules/macaca-cli/node_modules/webdriver-server/lib/server/responseHandler.js:66:17)
at throw (native)
at onRejected (/usr/local/lib/node_modules/macaca-cli/node_modules/co/index.js:81:24)
at process._tickCallback (node.js:369:9)
1) "before all" hook
responseHandler.js:24:12 [master] pid:3874 Recieve HTTP Request from Client: method: DELETE url: /wd/hub/session, jsonBody: {}
responseHandler.js:32:14 [master] pid:3874 Send HTTP Respone to Client: 405 Method Not Allowed
2) "after all" hook
xctest-client.js:219:14 [master] pid:3874 2016-05-09 10:30:14.408 xcodebuild[3925:79259] IDETestOperationsObserverDebug: Writing diagnostic log for test session to:
/Users/admin/Library/Developer/Xcode/DerivedData/WebDriverAgent-awzftkcqdhbxwscoabxyxnwjqjqc/Logs/Test/9B1987F9-BAF5-4BCB-8DDE-2205ABFA298E/Session-2016-05-09_10:30:14-uyD1wL.log
xctest-client.js:219:14 [master] pid:3874 2016-05-09 10:30:14.518 xcodebuild[3998:79296] IDETestOperationsObserverDebug: Writing diagnostic log for test session to:
/Users/admin/Library/Developer/Xcode/DerivedData/WebDriverAgent-awzftkcqdhbxwscoabxyxnwjqjqc/Logs/Test/836399FA-CA7F-4FCC-A785-4E69258A4E59/Session-2016-05-09_10:30:14-JGYAyo.log
2016-05-09 10:30:14.518 xcodebuild[3998:79175] [MT] IDETestOperationsObserverDebug: (F03C2448-B740-498C-8183-7B7F881DD5F3) Beginning test session F03C2448-B740-498C-8183-7B7F881DD5F3 with Xcode 7D1014 on target <DVTiPhoneSimulator: 0x7feaac598df0> {
SimDevice: SimDevice : iPhone 6s Plus (2B47D1C8-0E80-4820-8000-0509B7DC01CF) : state={ Booted } deviceType={ SimDeviceType : com.apple.CoreSimulator.SimDeviceType.iPhone-6s-Plus } runtime={ SimRuntime : 9.3 (13E230) - com.apple.CoreSimulator.SimRuntime.iOS-9-3 }
} (9.3 (13E230))
responseHandler.js:24:12 [master] pid:3874 Recieve HTTP Request from Client: method: POST url: /wd/hub/session, jsonBody: {"desiredCapabilities":{"autoAcceptAlerts":true,"platformName":"iOS","platformVersion":"9.3","deviceName":"iPhone 6s Plus","app":"/Users/admin/Downloads/macaca-test-sample-master/app/ios-app-bootstrap.zip"}}
session.js:24:10 [master] pid:3874 Creating session, sessionId: dedef3a8-9b81-46f3-922b-7f7cf281173d.
helper.js:205:12 [master] pid:3874 Unzipping local app form /Users/admin/Downloads/macaca-test-sample-master/app/ios-app-bootstrap.zip
Get bundleId xudafeng.ios-app-bootstrap from plist /var/folders/dh/fvsjmhs56jx_yn2j4hdzwhym0000gn/T/ios-app-bootstrap.app/Info.plist
macaca-ios.js:181:10 [master] pid:3874 Get available devices [{"name":"iPhone 4s","udid":"C5590B3A-7571-425C-9CC9-92C0997EB0DB","state":"Shutdown","available":true,"runtime":"iOS 9.3"},{"name":"iPhone 5","udid":"440FC1A8-D843-4136-B233-659F632D6C2E","state":"Shutdown","available":true,"runtime":"iOS 9.3"},{"name":"iPhone 5s","udid":"6F898BC1-B45A-4CE1-9A9C-B720FB1DEBCD","state":"Shutdown","available":true,"runtime":"iOS 9.3"},{"name":"iPhone 6","udid":"D0464A88-230B-41BE-803D-13FCD27EBAC0","state":"Shutdown","available":true,"runtime":"iOS 9.3"},{"name":"iPhone 6 Plus","udid":"D379E69D-2D45-4AA9-B23E-C5E7DA1EA3FB","state":"Shutdown","available":true,"runtime":"iOS 9.3"},{"name":"iPhone 6s","udid":"9F00E9A0-6C8F-4061-B4F6-1EA9F4FA852C","state":"Shutdown","available":true,"runtime":"iOS 9.3"},{"name":"iPhone 6s Plus","udid":"2B47D1C8-0E80-4820-8000-0509B7DC01CF","state":"Booted","available":true,"runtime":"iOS 9.3"},{"name":"iPad 2","udid":"970D52B4-08EF-4FC5-8FC5-2A4D731EEB53","state":"Shutdown","available":true,"runtime":"iOS 9.3"},{"name":"iPad Retina","udid":"B23C8F64-968F-4BAC-B40C-772F3A3BA2B7","state":"Shutdown","available":true,"runtime":"iOS 9.3"},{"name":"iPad Air","udid":"79A9E064-7F63-4F9B-9083-105CC436F8C6","state":"Shutdown","available":true,"runtime":"iOS 9.3"},{"name":"iPad Air 2","udid":"43303CBD-5C14-41D1-8FA4-85D1E74E688E","state":"Shutdown","available":true,"runtime":"iOS 9.3"},{"name":"iPad Pro","udid":"F8446078-97E1-4924-9306-1B6B3AE605F9","state":"Shutdown","available":true,"runtime":"iOS 9.3"},{"name":"Apple TV 1080p","udid":"C5EC5A2A-3AF4-4412-98FA-352B2F5A624C","state":"Shutdown","available":true,"runtime":"tvOS 9.2"},{"name":"Apple Watch - 38mm","udid":"C1E12FD1-B082-4FFE-9860-E468A0F276F5","state":"Shutdown","available":true,"runtime":"watchOS 2.2"},{"name":"Apple Watch - 42mm","udid":"57D8E2CB-15DA-454B-934C-8465CA2AC0C7","state":"Shutdown","available":true,"runtime":"watchOS 2.2"}]
xctest-client.js:219:14 [master] pid:3874
Testing failed:
xctest-client.js:219:14 [master] pid:3874 Rm: /usr/local/lib/node_modules/macaca-cli/node_modules/webdriver-server/node_modules/node-installer/node_modules/macaca-ios/node_modules/xctest-client/node_modules/webdriveragent/WebDriverAgent/Resources/WebDriverAgent.bundle: No such file or directory
Command /bin/sh emitted errors but did not return a nonzero exit code to indicate failure
\ TEST FAILED **
xctest-client.js:219:14 [master] pid:3874 Test target XCTUITestRunner encountered an error (Early unexpected exit, operation never finished bootstrapping - no restart will be attempted)
\ TEST FAILED **
xctest-client.js:219:14 [master] pid:3874 2016-05-09 10:32:30.881 xcodebuild[4165:81947] IDETestOperationsObserverDebug: Writing diagnostic log for test session to:
/Users/admin/Library/Developer/Xcode/DerivedData/WebDriverAgent-awzftkcqdhbxwscoabxyxnwjqjqc/Logs/Test/CF218D8B-3CC9-496C-8512-4E60ADA0C0F2/Session-2016-05-09_10:32:30-3mcrPc.log
responseHandler.js:24:12 [master] pid:3874 Recieve HTTP Request from Client: method: POST url: /wd/hub/session, jsonBody: {"desiredCapabilities":{"autoAcceptAlerts":true,"platformName":"iOS","platformVersion":"9.3","deviceName":"iPhone 6s Plus","app":"/Users/admin/Downloads/macaca-test-sample-master/app/ios-app-bootstrap.zip"}}
session.js:24:10 [master] pid:3874 Creating session, sessionId: 31975fb8-1b8c-492f-b803-e9e2bd9d3213.
helper.js:205:12 [master] pid:3874 Unzipping local app form /Users/admin/Downloads/macaca-test-sample-master/app/ios-app-bootstrap.zip
Get bundleId xudafeng.ios-app-bootstrap from plist /var/folders/dh/fvsjmhs56jx_yn2j4hdzwhym0000gn/T/ios-app-bootstrap.app/Info.plist
proxy.js:67:14 [master] pid:3874 Proxy: /session:POST to http://:8100/session:POST with body: {"desiredCapabilities":{"bundleId":"xudafeng.ios-app-bootstrap","platformName":"iOS","platformVersion":"9.3","app":"/var/folders/dh/fvsjmhs56jx_yn2j4hdzwhym0000gn/T/ios-app-bootstrap.app/"}}
macaca-ios.js:181:10 [master] pid:3874 Get available devices [{"name":"iPhone 4s","udid":"C5590B3A-7571-425C-9CC9-92C0997EB0DB","state":"Shutdown","available":true,"runtime":"iOS 9.3"},{"name":"iPhone 5","udid":"440FC1A8-D843-4136-B233-659F632D6C2E","state":"Shutdown","available":true,"runtime":"iOS 9.3"},{"name":"iPhone 5s","udid":"6F898BC1-B45A-4CE1-9A9C-B720FB1DEBCD","state":"Shutdown","available":true,"runtime":"iOS 9.3"},{"name":"iPhone 6","udid":"D0464A88-230B-41BE-803D-13FCD27EBAC0","state":"Shutdown","available":true,"runtime":"iOS 9.3"},{"name":"iPhone 6 Plus","udid":"D379E69D-2D45-4AA9-B23E-C5E7DA1EA3FB","state":"Shutdown","available":true,"runtime":"iOS 9.3"},{"name":"iPhone 6s","udid":"9F00E9A0-6C8F-4061-B4F6-1EA9F4FA852C","state":"Shutdown","available":true,"runtime":"iOS 9.3"},{"name":"iPhone 6s Plus","udid":"2B47D1C8-0E80-4820-8000-0509B7DC01CF","state":"Booted","available":true,"runtime":"iOS 9.3"},{"name":"iPad 2","udid":"970D52B4-08EF-4FC5-8FC5-2A4D731EEB53","state":"Shutdown","available":true,"runtime":"iOS 9.3"},{"name":"iPad Retina","udid":"B23C8F64-968F-4BAC-B40C-772F3A3BA2B7","state":"Shutdown","available":true,"runtime":"iOS 9.3"},{"name":"iPad Air","udid":"79A9E064-7F63-4F9B-9083-105CC436F8C6","state":"Shutdown","available":true,"runtime":"iOS 9.3"},{"name":"iPad Air 2","udid":"43303CBD-5C14-41D1-8FA4-85D1E74E688E","state":"Shutdown","available":true,"runtime":"iOS 9.3"},{"name":"iPad Pro","udid":"F8446078-97E1-4924-9306-1B6B3AE605F9","state":"Shutdown","available":true,"runtime":"iOS 9.3"},{"name":"Apple TV 1080p","udid":"C5EC5A2A-3AF4-4412-98FA-352B2F5A624C","state":"Shutdown","available":true,"runtime":"tvOS 9.2"},{"name":"Apple Watch - 38mm","udid":"C1E12FD1-B082-4FFE-9860-E468A0F276F5","state":"Shutdown","available":true,"runtime":"watchOS 2.2"},{"name":"Apple Watch - 42mm","udid":"57D8E2CB-15DA-454B-934C-8465CA2AC0C7","state":"Shutdown","available":true,"runtime":"watchOS 2.2"}]
proxy.js:71:18 [master] pid:3874 xctest client proxy error with: Error: socket hang up
/usr/local/lib/node_modules/macaca-cli/node_modules/webdriver-server/node_modules/node-installer/node_modules/macaca-ios/node_modules/xlogger/lib/xlogger.js:162
throw new Error(res);
^
Error: >> proxy.js:71:18 [master] pid:3874 xctest client proxy error with: Error: socket hang up
at Logger.error (/usr/local/lib/node_modules/macaca-cli/node_modules/webdriver-server/node_modules/node-installer/node_modules/macaca-ios/node_modules/xlogger/lib/xlogger.js:162:9)
at Request._callback (/usr/local/lib/node_modules/macaca-cli/node_modules/webdriver-server/node_modules/node-installer/node_modules/macaca-ios/node_modules/xctest-client/lib/proxy.js:71:18)
at self.callback (/usr/local/lib/node_modules/macaca-cli/node_modules/webdriver-server/node_modules/node-installer/node_modules/macaca-ios/node_modules/xctest-client/node_modules/request/request.js:199:22)
at emitOne (events.js:77:13)
at Request.emit (events.js:169:7)
at Request.onRequestError (/usr/local/lib/node_modules/macaca-cli/node_modules/webdriver-server/node_modules/node-installer/node_modules/macaca-ios/node_modules/xctest-client/node_modules/request/request.js:821:8)
at emitOne (events.js:77:13)
at ClientRequest.emit (events.js:169:7)
at Socket.socketOnEnd (_http_client.js:292:9)
at emitNone (events.js:72:20)
at Socket.emit (events.js:166:7)
at endReadableNT (_stream_readable.js:913:12)
at nextTickCallbackWith2Args (node.js:442:9)
at process._tickCallback (node.js:356:17)
admindeMBP:macaca-test-sample-master admin$
`
Macaca Version: 1.0.24 Macaca Doctor: Node.js checklist:
node env: /usr/local/bin/node node version: v4.4.4
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_proxyAndroid checklist:
Platform: Mac OSX 10.11.4
以下是log
`Last login: Sun May 8 22:30:30 on ttys000 admindeMBP:~ admin$ xcodebuild -showsdks xcrun: error: invalid active developer path (/Applications/Xcode.app/Contents/Developer), missing xcrun at: /Applications/Xcode.app/Contents/Developer/usr/bin/xcrun admindeMBP:~ admin$ xcode-select --print-path /Applications/Xcode.app/Contents/Developer admindeMBP:~ admin$ xcode-select xcode-select: error: no command option given Usage: xcode-select [options]
Print or change the path to the active developer directory. This directory controls which tools are used for the Xcode command line tools (for example, xcodebuild) as well as the BSD development commands (such as cc and make).
Options: -h, --help print this help message and exit -p, --print-path print the path of the active developer directory -s, --switch set the path for the active developer directory
--install open a dialog for installation of the command line developer tools
-v, --version print the xcode-select version
-r, --reset reset to the default command line tools path
admindeMBP:~ admin$ xcode-select -v
xcode-select version 2343.
admindeMBP:~ admin$ xcode-select -install
xcode-select: error: invalid argument '-install'
Usage: xcode-select [options]
Print or change the path to the active developer directory. This directory controls which tools are used for the Xcode command line tools (for example, xcodebuild) as well as the BSD development commands (such as cc and make).
Options: -h, --help print this help message and exit -p, --print-path print the path of the active developer directory -s, --switch set the path for the active developer directory
--install open a dialog for installation of the command line developer tools
-v, --version print the xcode-select version
-r, --reset reset to the default command line tools path
admindeMBP:~ admin$ xcode-select --install
xcode-select: error: command line tools are already installed, use "Software Update" to install updates
admindeMBP:~ admin$ pwd
/Users/admin
admindeMBP:~ admin$ cd ~/Downloads/
admindeMBP:Downloads admin$ ls
Sublime Text Build 3103.dmg node-v4.4.4.pkg
googlechrome_46.0.2490.71.1450163790.dmg node-v4.4.4.pkg.download
macaca-test-sample-master
admindeMBP:Downloads admin$ cd macaca-test-sample-master/
admindeMBP:macaca-test-sample-master admin$ ls
HISTORY.md Makefile app macaca-test package.json
LICENSE README.md index.js node_modules
admindeMBP:macaca-test-sample-master admin$ macaca run --verbose
Error: EACCES: permission denied, open '/usr/local/lib/node_modules/macaca-cli/node_modules/webdriver-server/logs/digest-2016_05_08.log' at Error (native) admindeMBP:macaca-test-sample-master admin$ sudo macaca run --verbose Password:
Error: Command failed: /bin/sh -c xcrun --sdk iphonesimulator --show-sdk-version xcrun: error: invalid active developer path (/Applications/Xcode.app/Contents/Developer), missing xcrun at: /Applications/Xcode.app/Contents/Developer/usr/bin/xcrun
Error: Command failed: /bin/sh -c xcrun --sdk iphonesimulator --show-sdk-version xcrun: error: invalid active developer path (/Applications/Xcode.app/Contents/Developer), missing xcrun at: /Applications/Xcode.app/Contents/Developer/usr/bin/xcrun
Error: Command failed: /bin/sh -c xcrun --sdk iphonesimulator --show-sdk-version xcrun: error: invalid active developer path (/Applications/Xcode.app/Contents/Developer), missing xcrun at: /Applications/Xcode.app/Contents/Developer/usr/bin/xcrun
2) macaca desktop sample "after all" hook: Error: [quit()] Unexpected data in simpleCallback. at exports.newError (node_modules/webdriver-client/node_modules/macaca-wd/wd/lib/utils.js:139:13) at null. (node_modules/webdriver-client/node_modules/macaca-wd/wd/lib/callbacks.js:42:12)
at cb (node_modules/webdriver-client/node_modules/macaca-wd/wd/lib/webdriver.js:165:22)
at node_modules/webdriver-client/node_modules/macaca-wd/wd/lib/webdriver.js:179:5
at Request._callback (node_modules/webdriver-client/node_modules/macaca-wd/wd/lib/http-utils.js:87:7)
at Request.self.callback (node_modules/webdriver-client/node_modules/macaca-wd/node_modules/request/request.js:368:22)
at Request. (node_modules/webdriver-client/node_modules/macaca-wd/node_modules/request/request.js:1219:14)
at IncomingMessage. (node_modules/webdriver-client/node_modules/macaca-wd/node_modules/request/request.js:1167:12)
at endReadableNT (_stream_readable.js:913:12)
3) macaca mobile sample "before all" hook: [init({"autoAcceptAlerts":true,"platformName":"iOS","platformVersion":"9.3","deviceName":"iPhone 5s","app":"/Users/admin/Downloads/macaca-test-sample-master/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/webdriver-client/node_modules/macaca-wd/wd/lib/webdriver.js:134:15 at Request._callback (node_modules/webdriver-client/node_modules/macaca-wd/wd/lib/http-utils.js:87:7) at Request.self.callback (node_modules/webdriver-client/node_modules/macaca-wd/node_modules/request/request.js:368:22) at Request. (node_modules/webdriver-client/node_modules/macaca-wd/node_modules/request/request.js:1219:14)
at IncomingMessage. (node_modules/webdriver-client/node_modules/macaca-wd/node_modules/request/request.js:1167:12)
at endReadableNT (_stream_readable.js:913:12)
4) macaca mobile sample "after all" hook: Error: [quit()] Unexpected data in simpleCallback. at exports.newError (node_modules/webdriver-client/node_modules/macaca-wd/wd/lib/utils.js:139:13) at null. (node_modules/webdriver-client/node_modules/macaca-wd/wd/lib/callbacks.js:42:12)
at cb (node_modules/webdriver-client/node_modules/macaca-wd/wd/lib/webdriver.js:165:22)
at node_modules/webdriver-client/node_modules/macaca-wd/wd/lib/webdriver.js:179:5
at Request._callback (node_modules/webdriver-client/node_modules/macaca-wd/wd/lib/http-utils.js:87:7)
at Request.self.callback (node_modules/webdriver-client/node_modules/macaca-wd/node_modules/request/request.js:368:22)
at Request. (node_modules/webdriver-client/node_modules/macaca-wd/node_modules/request/request.js:1219:14)
at IncomingMessage. (node_modules/webdriver-client/node_modules/macaca-wd/node_modules/request/request.js:1167:12)
at endReadableNT (_stream_readable.js:913:12)
5) macaca mobile sample "before all" hook: [init({"autoAcceptAlerts":true,"platformName":"iOS","platformVersion":"9.3","deviceName":"iPhone 5s","app":"/Users/admin/Downloads/macaca-test-sample-master/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/webdriver-client/node_modules/macaca-wd/wd/lib/webdriver.js:134:15 at Request._callback (node_modules/webdriver-client/node_modules/macaca-wd/wd/lib/http-utils.js:87:7) at Request.self.callback (node_modules/webdriver-client/node_modules/macaca-wd/node_modules/request/request.js:368:22) at Request. (node_modules/webdriver-client/node_modules/macaca-wd/node_modules/request/request.js:1219:14)
at IncomingMessage. (node_modules/webdriver-client/node_modules/macaca-wd/node_modules/request/request.js:1167:12)
at endReadableNT (_stream_readable.js:913:12)
6) macaca mobile sample "after all" hook: Error: [quit()] Unexpected data in simpleCallback. at exports.newError (node_modules/webdriver-client/node_modules/macaca-wd/wd/lib/utils.js:139:13) at null. (node_modules/webdriver-client/node_modules/macaca-wd/wd/lib/callbacks.js:42:12)
at cb (node_modules/webdriver-client/node_modules/macaca-wd/wd/lib/webdriver.js:165:22)
at node_modules/webdriver-client/node_modules/macaca-wd/wd/lib/webdriver.js:179:5
at Request._callback (node_modules/webdriver-client/node_modules/macaca-wd/wd/lib/http-utils.js:87:7)
at Request.self.callback (node_modules/webdriver-client/node_modules/macaca-wd/node_modules/request/request.js:368:22)
at Request. (node_modules/webdriver-client/node_modules/macaca-wd/node_modules/request/request.js:1219:14)
at IncomingMessage. (node_modules/webdriver-client/node_modules/macaca-wd/node_modules/request/request.js:1167:12)
at endReadableNT (_stream_readable.js:913:12)
Error: Command failed: /bin/sh -c open -a Simulator --args -CurrentDeviceUDID "3D19B580-57B3-4A01-BEF7-769FE01810B0" The application /Users/admin/.Trash/Xcode 下午11.37.50.app/Contents/Developer/Applications/Simulator.app cannot be opened because it is in the Trash.
macaca mobile sample
Error: Simulator 3D19B580-57B3-4A01-BEF7-769FE01810B0 is not booted. at /usr/local/lib/node_modules/macaca-cli/node_modules/webdriver-server/node_modules/node-installer/node_modules/macaca-ios/lib/macaca-ios.js:237:20 at process._tickCallback (node.js:369:9)
Error: Simulator 3D19B580-57B3-4A01-BEF7-769FE01810B0 is not booted. at /usr/local/lib/node_modules/macaca-cli/node_modules/webdriver-server/node_modules/node-installer/node_modules/macaca-ios/lib/macaca-ios.js:237:20
Error: Simulator 3D19B580-57B3-4A01-BEF7-769FE01810B0 is not booted. at /usr/local/lib/node_modules/macaca-cli/node_modules/webdriver-server/node_modules/node-installer/node_modules/macaca-ios/lib/macaca-ios.js:237:20
macaca mobile sample
Error: Simulator 3D19B580-57B3-4A01-BEF7-769FE01810B0 is not booted. at /usr/local/lib/node_modules/macaca-cli/node_modules/webdriver-server/node_modules/node-installer/node_modules/macaca-ios/lib/macaca-ios.js:237:20
Error: Simulator 3D19B580-57B3-4A01-BEF7-769FE01810B0 is not booted. at /usr/local/lib/node_modules/macaca-cli/node_modules/webdriver-server/node_modules/node-installer/node_modules/macaca-ios/lib/macaca-ios.js:237:20
1) macaca desktop sample "before all" hook: [init({"autoAcceptAlerts":true,"platformName":"iOS","platformVersion":"9.3","deviceName":"iPhone 5s","app":"/Users/admin/Downloads/macaca-test-sample-master/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/webdriver-client/node_modules/macaca-wd/wd/lib/webdriver.js:134:15 at Request._callback (node_modules/webdriver-client/node_modules/macaca-wd/wd/lib/http-utils.js:87:7) at Request.self.callback (node_modules/webdriver-client/node_modules/macaca-wd/node_modules/request/request.js:368:22) at Request. (node_modules/webdriver-client/node_modules/macaca-wd/node_modules/request/request.js:1219:14)
at IncomingMessage. (node_modules/webdriver-client/node_modules/macaca-wd/node_modules/request/request.js:1167:12)
at endReadableNT (_stream_readable.js:913:12)
2) macaca desktop sample "after all" hook: Error: [quit()] Unexpected data in simpleCallback. at exports.newError (node_modules/webdriver-client/node_modules/macaca-wd/wd/lib/utils.js:139:13) at null. (node_modules/webdriver-client/node_modules/macaca-wd/wd/lib/callbacks.js:42:12)
at cb (node_modules/webdriver-client/node_modules/macaca-wd/wd/lib/webdriver.js:165:22)
at node_modules/webdriver-client/node_modules/macaca-wd/wd/lib/webdriver.js:179:5
at Request._callback (node_modules/webdriver-client/node_modules/macaca-wd/wd/lib/http-utils.js:87:7)
at Request.self.callback (node_modules/webdriver-client/node_modules/macaca-wd/node_modules/request/request.js:368:22)
at Request. (node_modules/webdriver-client/node_modules/macaca-wd/node_modules/request/request.js:1219:14)
at IncomingMessage. (node_modules/webdriver-client/node_modules/macaca-wd/node_modules/request/request.js:1167:12)
at endReadableNT (_stream_readable.js:913:12)
3) macaca mobile sample "before all" hook: [init({"autoAcceptAlerts":true,"platformName":"iOS","platformVersion":"9.3","deviceName":"iPhone 5s","app":"/Users/admin/Downloads/macaca-test-sample-master/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/webdriver-client/node_modules/macaca-wd/wd/lib/webdriver.js:134:15 at Request._callback (node_modules/webdriver-client/node_modules/macaca-wd/wd/lib/http-utils.js:87:7) at Request.self.callback (node_modules/webdriver-client/node_modules/macaca-wd/node_modules/request/request.js:368:22) at Request. (node_modules/webdriver-client/node_modules/macaca-wd/node_modules/request/request.js:1219:14)
at IncomingMessage. (node_modules/webdriver-client/node_modules/macaca-wd/node_modules/request/request.js:1167:12)
at endReadableNT (_stream_readable.js:913:12)
4) macaca mobile sample "after all" hook: Error: [quit()] Unexpected data in simpleCallback. at exports.newError (node_modules/webdriver-client/node_modules/macaca-wd/wd/lib/utils.js:139:13) at null. (node_modules/webdriver-client/node_modules/macaca-wd/wd/lib/callbacks.js:42:12)
at cb (node_modules/webdriver-client/node_modules/macaca-wd/wd/lib/webdriver.js:165:22)
at node_modules/webdriver-client/node_modules/macaca-wd/wd/lib/webdriver.js:179:5
at Request._callback (node_modules/webdriver-client/node_modules/macaca-wd/wd/lib/http-utils.js:87:7)
at Request.self.callback (node_modules/webdriver-client/node_modules/macaca-wd/node_modules/request/request.js:368:22)
at Request. (node_modules/webdriver-client/node_modules/macaca-wd/node_modules/request/request.js:1219:14)
at IncomingMessage. (node_modules/webdriver-client/node_modules/macaca-wd/node_modules/request/request.js:1167:12)
at endReadableNT (_stream_readable.js:913:12)
5) macaca mobile sample "before all" hook: [init({"autoAcceptAlerts":true,"platformName":"iOS","platformVersion":"9.3","deviceName":"iPhone 5s","app":"/Users/admin/Downloads/macaca-test-sample-master/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/webdriver-client/node_modules/macaca-wd/wd/lib/webdriver.js:134:15 at Request._callback (node_modules/webdriver-client/node_modules/macaca-wd/wd/lib/http-utils.js:87:7) at Request.self.callback (node_modules/webdriver-client/node_modules/macaca-wd/node_modules/request/request.js:368:22) at Request. (node_modules/webdriver-client/node_modules/macaca-wd/node_modules/request/request.js:1219:14)
at IncomingMessage. (node_modules/webdriver-client/node_modules/macaca-wd/node_modules/request/request.js:1167:12)
at endReadableNT (_stream_readable.js:913:12)
Error: Simulator 3D19B580-57B3-4A01-BEF7-769FE01810B0 is not booted. at /usr/local/lib/node_modules/macaca-cli/node_modules/webdriver-server/node_modules/node-installer/node_modules/macaca-ios/lib/macaca-ios.js:237:20
Error: Simulator 3D19B580-57B3-4A01-BEF7-769FE01810B0 is not booted. at /usr/local/lib/node_modules/macaca-cli/node_modules/webdriver-server/node_modules/node-installer/node_modules/macaca-ios/lib/macaca-ios.js:237:20
macaca mobile sample
Error: Simulator 3D19B580-57B3-4A01-BEF7-769FE01810B0 is not booted. at /usr/local/lib/node_modules/macaca-cli/node_modules/webdriver-server/node_modules/node-installer/node_modules/macaca-ios/lib/macaca-ios.js:237:20
3) macaca mobile sample "before all" hook: [init({"autoAcceptAlerts":true,"platformName":"iOS","platformVersion":"9.3","deviceName":"iPhone 5s","app":"/Users/admin/Downloads/macaca-test-sample-master/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/webdriver-client/node_modules/macaca-wd/wd/lib/webdriver.js:134:15 at Request._callback (node_modules/webdriver-client/node_modules/macaca-wd/wd/lib/http-utils.js:87:7) at Request.self.callback (node_modules/webdriver-client/node_modules/macaca-wd/node_modules/request/request.js:368:22) at Request. (node_modules/webdriver-client/node_modules/macaca-wd/node_modules/request/request.js:1219:14)
at IncomingMessage. (node_modules/webdriver-client/node_modules/macaca-wd/node_modules/request/request.js:1167:12)
at endReadableNT (_stream_readable.js:913:12)
4) macaca mobile sample "after all" hook: Error: [quit()] Unexpected data in simpleCallback. at exports.newError (node_modules/webdriver-client/node_modules/macaca-wd/wd/lib/utils.js:139:13) at null. (node_modules/webdriver-client/node_modules/macaca-wd/wd/lib/callbacks.js:42:12)
at cb (node_modules/webdriver-client/node_modules/macaca-wd/wd/lib/webdriver.js:165:22)
at node_modules/webdriver-client/node_modules/macaca-wd/wd/lib/webdriver.js:179:5
at Request._callback (node_modules/webdriver-client/node_modules/macaca-wd/wd/lib/http-utils.js:87:7)
at Request.self.callback (node_modules/webdriver-client/node_modules/macaca-wd/node_modules/request/request.js:368:22)
at Request. (node_modules/webdriver-client/node_modules/macaca-wd/node_modules/request/request.js:1219:14)
at IncomingMessage. (node_modules/webdriver-client/node_modules/macaca-wd/node_modules/request/request.js:1167:12)
at endReadableNT (_stream_readable.js:913:12)
5) macaca mobile sample "before all" hook: [init({"autoAcceptAlerts":true,"platformName":"iOS","platformVersion":"9.3","deviceName":"iPhone 5s","app":"/Users/admin/Downloads/macaca-test-sample-master/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/webdriver-client/node_modules/macaca-wd/wd/lib/webdriver.js:134:15 at Request._callback (node_modules/webdriver-client/node_modules/macaca-wd/wd/lib/http-utils.js:87:7) at Request.self.callback (node_modules/webdriver-client/node_modules/macaca-wd/node_modules/request/request.js:368:22) at Request. (node_modules/webdriver-client/node_modules/macaca-wd/node_modules/request/request.js:1219:14)
at IncomingMessage. (node_modules/webdriver-client/node_modules/macaca-wd/node_modules/request/request.js:1167:12)
at endReadableNT (_stream_readable.js:913:12)
Error: Simulator EE75DEDB-97F7-42DD-AC64-1B7E3592CD28 is not booted. at /usr/local/lib/node_modules/macaca-cli/node_modules/webdriver-server/node_modules/node-installer/node_modules/macaca-ios/lib/macaca-ios.js:237:20
Error: Simulator EE75DEDB-97F7-42DD-AC64-1B7E3592CD28 is not booted. at /usr/local/lib/node_modules/macaca-cli/node_modules/webdriver-server/node_modules/node-installer/node_modules/macaca-ios/lib/macaca-ios.js:237:20 at process._tickCallback (node.js:369:9)
macaca mobile sample
Error: Simulator EE75DEDB-97F7-42DD-AC64-1B7E3592CD28 is not booted. at /usr/local/lib/node_modules/macaca-cli/node_modules/webdriver-server/node_modules/node-installer/node_modules/macaca-ios/lib/macaca-ios.js:237:20 at process._tickCallback (node.js:369:9)
1) macaca desktop sample "before all" hook: [init({"autoAcceptAlerts":true,"platformName":"iOS","platformVersion":"9.3","deviceName":"iPhone 6s Plus","app":"/Users/admin/Downloads/macaca-test-sample-master/app/ios-app-bootstrap.zip"})] The environment you requested was unavailable. Error: [init({"autoAcceptAlerts":true,"platformName":"iOS","platformVersion":"9.3","deviceName":"iPhone 6s Plus","app":"app/ios-app-bootstrap.zip"})] The environment you requested was unavailable. at node_modules/webdriver-client/node_modules/macaca-wd/wd/lib/webdriver.js:134:15 at Request._callback (node_modules/webdriver-client/node_modules/macaca-wd/wd/lib/http-utils.js:87:7) at Request.self.callback (node_modules/webdriver-client/node_modules/macaca-wd/node_modules/request/request.js:368:22) at Request. (node_modules/webdriver-client/node_modules/macaca-wd/node_modules/request/request.js:1219:14)
at IncomingMessage. (node_modules/webdriver-client/node_modules/macaca-wd/node_modules/request/request.js:1167:12)
at endReadableNT (_stream_readable.js:913:12)
2) macaca desktop sample "after all" hook: Error: [quit()] Unexpected data in simpleCallback. at exports.newError (node_modules/webdriver-client/node_modules/macaca-wd/wd/lib/utils.js:139:13) at null. (node_modules/webdriver-client/node_modules/macaca-wd/wd/lib/callbacks.js:42:12)
at cb (node_modules/webdriver-client/node_modules/macaca-wd/wd/lib/webdriver.js:165:22)
at node_modules/webdriver-client/node_modules/macaca-wd/wd/lib/webdriver.js:179:5
at Request._callback (node_modules/webdriver-client/node_modules/macaca-wd/wd/lib/http-utils.js:87:7)
at Request.self.callback (node_modules/webdriver-client/node_modules/macaca-wd/node_modules/request/request.js:368:22)
at Request. (node_modules/webdriver-client/node_modules/macaca-wd/node_modules/request/request.js:1219:14)
at IncomingMessage. (node_modules/webdriver-client/node_modules/macaca-wd/node_modules/request/request.js:1167:12)
at endReadableNT (_stream_readable.js:913:12)
3) macaca mobile sample "before all" hook: [init({"autoAcceptAlerts":true,"platformName":"iOS","platformVersion":"9.3","deviceName":"iPhone 6s Plus","app":"/Users/admin/Downloads/macaca-test-sample-master/app/ios-app-bootstrap.zip"})] The environment you requested was unavailable. Error: [init({"autoAcceptAlerts":true,"platformName":"iOS","platformVersion":"9.3","deviceName":"iPhone 6s Plus","app":"app/ios-app-bootstrap.zip"})] The environment you requested was unavailable. at node_modules/webdriver-client/node_modules/macaca-wd/wd/lib/webdriver.js:134:15 at Request._callback (node_modules/webdriver-client/node_modules/macaca-wd/wd/lib/http-utils.js:87:7) at Request.self.callback (node_modules/webdriver-client/node_modules/macaca-wd/node_modules/request/request.js:368:22) at Request. (node_modules/webdriver-client/node_modules/macaca-wd/node_modules/request/request.js:1219:14)
at IncomingMessage. (node_modules/webdriver-client/node_modules/macaca-wd/node_modules/request/request.js:1167:12)
at endReadableNT (_stream_readable.js:913:12)
4) macaca mobile sample "after all" hook: Error: [quit()] Unexpected data in simpleCallback. at exports.newError (node_modules/webdriver-client/node_modules/macaca-wd/wd/lib/utils.js:139:13) at null. (node_modules/webdriver-client/node_modules/macaca-wd/wd/lib/callbacks.js:42:12)
at cb (node_modules/webdriver-client/node_modules/macaca-wd/wd/lib/webdriver.js:165:22)
at node_modules/webdriver-client/node_modules/macaca-wd/wd/lib/webdriver.js:179:5
at Request._callback (node_modules/webdriver-client/node_modules/macaca-wd/wd/lib/http-utils.js:87:7)
at Request.self.callback (node_modules/webdriver-client/node_modules/macaca-wd/node_modules/request/request.js:368:22)
at Request. (node_modules/webdriver-client/node_modules/macaca-wd/node_modules/request/request.js:1219:14)
at IncomingMessage. (node_modules/webdriver-client/node_modules/macaca-wd/node_modules/request/request.js:1167:12)
at endReadableNT (_stream_readable.js:913:12)
5) macaca mobile sample "before all" hook: [init({"autoAcceptAlerts":true,"platformName":"iOS","platformVersion":"9.3","deviceName":"iPhone 6s Plus","app":"/Users/admin/Downloads/macaca-test-sample-master/app/ios-app-bootstrap.zip"})] The environment you requested was unavailable. Error: [init({"autoAcceptAlerts":true,"platformName":"iOS","platformVersion":"9.3","deviceName":"iPhone 6s Plus","app":"app/ios-app-bootstrap.zip"})] The environment you requested was unavailable. at node_modules/webdriver-client/node_modules/macaca-wd/wd/lib/webdriver.js:134:15 at Request._callback (node_modules/webdriver-client/node_modules/macaca-wd/wd/lib/http-utils.js:87:7) at Request.self.callback (node_modules/webdriver-client/node_modules/macaca-wd/node_modules/request/request.js:368:22) at Request. (node_modules/webdriver-client/node_modules/macaca-wd/node_modules/request/request.js:1219:14)
at IncomingMessage. (node_modules/webdriver-client/node_modules/macaca-wd/node_modules/request/request.js:1167:12)
at endReadableNT (_stream_readable.js:913:12)
Error: EACCES: permission denied, open '/usr/local/lib/node_modules/macaca-cli/node_modules/webdriver-server/logs/digest-2016_05_09.log' at Error (native) admindeMBP:macaca-test-sample-master admin$ npm i -g macaca-cli npm ERR! Darwin 15.4.0 npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "i" "-g" "macaca-cli" npm ERR! node v4.4.4 npm ERR! npm v2.15.1 npm ERR! path /usr/local/lib/node_modules/macaca-cli npm ERR! code EACCES npm ERR! errno -13 npm ERR! syscall rmdir
npm ERR! Error: EACCES: permission denied, rmdir '/usr/local/lib/node_modules/macaca-cli' npm ERR! at Error (native) npm ERR! { [Error: EACCES: permission denied, rmdir '/usr/local/lib/node_modules/macaca-cli'] npm ERR! errno: -13, npm ERR! code: 'EACCES', npm ERR! syscall: 'rmdir', npm ERR! path: '/usr/local/lib/node_modules/macaca-cli' } npm ERR! npm ERR! Please try running this command again as root/Administrator. npm ERR! error rolling back Error: EACCES: permission denied, rmdir '/usr/local/lib/node_modules/macaca-cli' npm ERR! error rolling back at Error (native) npm ERR! error rolling back { [Error: EACCES: permission denied, rmdir '/usr/local/lib/node_modules/macaca-cli'] npm ERR! error rolling back errno: -13, npm ERR! error rolling back code: 'EACCES', npm ERR! error rolling back syscall: 'rmdir', npm ERR! error rolling back path: '/usr/local/lib/node_modules/macaca-cli' }
npm ERR! Please include the following file with any support request: npm ERR! /Users/admin/Downloads/macaca-test-sample-master/npm-debug.log admindeMBP:macaca-test-sample-master admin$ npm i -g macaca-cli npm ERR! Darwin 15.4.0 npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "i" "-g" "macaca-cli" npm ERR! node v4.4.4 npm ERR! npm v2.15.1 npm ERR! path /usr/local/lib/node_modules/macaca-cli/.config.json npm ERR! code EACCES npm ERR! errno -13 npm ERR! syscall unlink
npm ERR! Error: EACCES: permission denied, unlink '/usr/local/lib/node_modules/macaca-cli/.config.json' npm ERR! at Error (native) npm ERR! { [Error: EACCES: permission denied, unlink '/usr/local/lib/node_modules/macaca-cli/.config.json'] npm ERR! errno: -13, npm ERR! code: 'EACCES', npm ERR! syscall: 'unlink', npm ERR! path: '/usr/local/lib/node_modules/macaca-cli/.config.json' } npm ERR! npm ERR! Please try running this command again as root/Administrator. npm ERR! error rolling back Error: EACCES: permission denied, unlink '/usr/local/lib/node_modules/macaca-cli/.config.json' npm ERR! error rolling back at Error (native) npm ERR! error rolling back { [Error: EACCES: permission denied, unlink '/usr/local/lib/node_modules/macaca-cli/.config.json'] npm ERR! error rolling back errno: -13, npm ERR! error rolling back code: 'EACCES', npm ERR! error rolling back syscall: 'unlink', npm ERR! error rolling back path: '/usr/local/lib/node_modules/macaca-cli/.config.json' }
npm ERR! Please include the following file with any support request: npm ERR! /Users/admin/Downloads/macaca-test-sample-master/npm-debug.log admindeMBP:macaca-test-sample-master admin$ npm i -g macaca-cli npm ERR! Darwin 15.4.0 npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "i" "-g" "macaca-cli" npm ERR! node v4.4.4 npm ERR! npm v2.15.1 npm ERR! path /usr/local/lib/node_modules/macaca-cli/bin/macaca-cli npm ERR! code EACCES npm ERR! errno -13 npm ERR! syscall unlink
npm ERR! Error: EACCES: permission denied, unlink '/usr/local/lib/node_modules/macaca-cli/bin/macaca-cli' npm ERR! at Error (native) npm ERR! { [Error: EACCES: permission denied, unlink '/usr/local/lib/node_modules/macaca-cli/bin/macaca-cli'] npm ERR! errno: -13, npm ERR! code: 'EACCES', npm ERR! syscall: 'unlink', npm ERR! path: '/usr/local/lib/node_modules/macaca-cli/bin/macaca-cli' } npm ERR! npm ERR! Please try running this command again as root/Administrator. npm ERR! error rolling back Error: EACCES: permission denied, unlink '/usr/local/lib/node_modules/macaca-cli/bin/macaca-cli' npm ERR! error rolling back at Error (native) npm ERR! error rolling back { [Error: EACCES: permission denied, unlink '/usr/local/lib/node_modules/macaca-cli/bin/macaca-cli'] npm ERR! error rolling back errno: -13, npm ERR! error rolling back code: 'EACCES', npm ERR! error rolling back syscall: 'unlink', npm ERR! error rolling back path: '/usr/local/lib/node_modules/macaca-cli/bin/macaca-cli' }
npm ERR! Please include the following file with any support request: npm ERR! /Users/admin/Downloads/macaca-test-sample-master/npm-debug.log admindeMBP:macaca-test-sample-master admin$ sudo chmod R 777 /usr/local/lib/node_modules Password: chmod: Invalid file mode: R admindeMBP:macaca-test-sample-master admin$ sudo chmod -R 777 /usr/local/lib/node_modules admindeMBP:macaca-test-sample-master admin$ npm i -g macaca-cli npm WARN deprecated jade@0.26.3: Jade has been renamed to pug, please install the latest version of pug instead of jade npm WARN deprecated graceful-fs@2.0.3: graceful-fs v3.0.0 and before will fail on node releases >= v7.0. Please update to graceful-fs@^4.0.0 as soon as possible. Use 'npm ls graceful-fs' to find it in the tree.
/usr/local/lib/node_modules/macaca-cli/node_modules/webdriver-server/node_modules/node-installer/installer.config.json write success /usr/local/bin/macaca -> /usr/local/lib/node_modules/macaca-cli/bin/macaca-cli
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@888@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@0Lt111111tL0@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@0GCLCG8@01ii1fLCGGGGCC8@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@80GLfCfL0@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@80GCLLfttttt1i1tfffLCG08@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@8GLti;;;;;;;;;;;;;;;;;;;;;;;;itfC0@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@8Cti;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;i1LG8@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@0L1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1L0@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@8L1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;if0@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@880088@@@@0t;;;;;;;;;;;itLCG0000GCLt1;;;;itfCGG000GCLf1;;;;;;;;;;;;1C8@@@80008@@@@@@@@@@@ @@@@@@8Cti;;;;;;itLt;;;;;;;;;;tC8@@@@@@@@@@@@@@8GC0@@@@@@@@@@@@@@8Gfi;;;;;;;;;;;t1i;;;;;i1fG8@@@@@@ @@@@0t;;;;;;;;;;;;;;;;;;;;;;L8@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@C1;;;;;;;;;;;;;;;;;;;;;if8@@@@ @@@L;;;;;;;;;;;;;;;;;;;;;;t8@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@C;;;;;;;;;;;;;;;;;;;;;;iG@@@ @@L;;;;;;;;;;;;;;;;;;;;;;L@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@0;;;;;;;;;;;;;;;;;;;;;;;0@@ @8;;;;;;;;;;;;;;;;;;;;;;f@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@G;;;;;;;;;;;;;;;;;;;;;;1@@ @G;;;;;;;;;;;;;;;;;;;;;;8@@@@@@@@@8CfLG@@@@@@@@@@@@@@@@@8CfLC@@@@@@@@@@@@@t;;;;;;;;;;;;;;;;;;;;;i@@ @8;;;;;;;;;;;;;;;;;;;;;t@@@@@@@@@G;;;;;t@@@@@@@@@@@@@@@8i;;;;i8@@@@@@@@@@@G;;;;;;;;;;;;;;;;;;;;;1@@ @@L;;;;;;;;;;;;;;;;;;;;t@@@@@@@@@G;;;;;1@@@@@@@@@@@@@@@8;;;;;i8@@@@@@@@@@@G;;;;;;;;;;;;;;;;;;;;;0@@ @@@L;;;;;;;;;;;;;;;;;;;i@@@@@@@@@@0LtfC@@@@@@@@@@@@@@@@@8LffC8@@@@@@@@@@@@L;;;;;;;;;;;;;;;;;;;iG@@@ @@@@0t;;;;;;;;;;;;;;;;;;C@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@8;;;;;;;;;;;;;;;;;;;f8@@@@ @@@@@@0Lti;;;;;;;;;;;;;;i8@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@Ci;;;;;;;;;;;;;;1fC8@@@@@@ @@@@@@@@@@1;;;;;;;;;;;fG@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@Gt;;;;;;;;;;;i@@@@@@@@@@ @@@@@@@@@@t;;;;;;;;;f8@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@01;;;;;;;;;i@@@@@@@@@@ @@@@@@@@@@L;;;;;;;;G@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@f;;;;;;;;t@@@@@@@@@@ @@@@@@@@@@0;;;;;;;0@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@1;;;;;;;C@@@@@@@@@@ @@@@@@@@@@@1;;;;;t@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@G;;;;;;i8@@@@@@@@@@ @@@@@@@@@@@0;;;;;L@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@;;;;;;C@@@@@@@@@@@ @@@@@@@@@@@@f;;;;f@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@i;;;;t@@@@@@@@@@@@ @@@@@@@@@@@@@t;;;i@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@8;;;;i8@@@@@@@@@@@@ @@@@@@@@@@@@@@t;;;t@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@t;;;i8@@@@@@@@@@@@@ @@@@@@@@@@@@@@@f;;;t8@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@8t;;;t8@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@Gi;;iG@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@Gi;;;L@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@8f;;;tG@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@8C1;;;t0@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@0t;;;ifG8@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@0Cti;;;tG@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@0fi;;;;tLG8@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@80Cti;;;;;f0@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@8Gt;;;;;;itfLC008@@@@@@@@@@@@@@@@@@880GCLt1;;;;;;;tC8@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@8Gf1;;;;;;;;;;ii11ttfffLffftt11ii;;;;;;;;;;itC8@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@8Gfti;;;;;;;;;;;;;;;;;;;;;;;;;;;;;i1fC0@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@8GCLt11i;;;;;;;;;;;;;ii1tfCG0@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@8880000000888@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Macaca was successfully installed!
Run
macaca -h
for further help.macaca-cli@1.0.24 /usr/local/lib/node_modules/macaca-cli ├── macaca-logo@0.1.3 ├── co@4.6.0 ├── commander@2.8.1 (graceful-readlink@1.0.1) ├── ansi-to-html@0.3.0 (entities@1.1.1) ├── detect-port@0.1.4 (ipv4@0.0.4) ├── cli-table@0.3.1 (colors@1.0.3) ├── should@8.3.1 (should-type@0.2.0, should-equal@0.7.2, should-format@0.3.2) ├── chalk@1.1.3 (ansi-styles@2.2.1, escape-string-regexp@1.0.5, supports-color@2.0.0, has-ansi@2.0.0, strip-ansi@3.0.1) ├── mocha@2.4.5 (escape-string-regexp@1.0.2, commander@2.3.0, diff@1.4.0, growl@1.8.1, supports-color@1.2.0, debug@2.2.0, mkdirp@0.5.1, jade@0.26.3, glob@3.2.3) ├── npm-update@1.0.2 (co-request@0.2.1) ├── macaca-utils@0.1.8 (xutil@1.0.1) ├── xlogger@1.0.2 (xutil@1.0.1) ├── webdriver-server@1.0.40 (commander@2.0.0, webdriver-dfn-error-code@1.0.3, adm-zip@0.4.7, node-installer@1.0.4, temp@0.8.3, boom@3.1.3, koa-router@5.4.0, koa-bodyparser@2.0.1, koa@1.1.2, sync-request@3.0.1, xutil@1.0.1) └── macaca-doctor@1.0.2 (java-util@0.1.0, ios-utils@1.0.0) admindeMBP:macaca-test-sample-master admin$ pwd /Users/admin/Downloads/macaca-test-sample-master admindeMBP:macaca-test-sample-master admin$ macaca run --verbose
\ loading...
macaca-ios@1.0.29 node_modules/macaca-ios ├── co@4.6.0 ├── driver-base@0.1.1 ├── webdriver-dfn-error-code@1.0.3 ├── xctest-client@1.0.9 (webdriveragent@1.0.11, request@2.69.0) ├── macaca-utils@0.1.8 (xutil@1.0.1) ├── xlogger@1.0.2 (chalk@1.1.3, xutil@1.0.1) ├── ios-utils@1.0.0 (bplist-parser@0.1.1, xutil@1.0.1) ├── ios-simulator@1.0.7 (xutil@1.0.1, plist@1.2.0) └── remote-debugger@1.0.7 (node-ios-webkit-debug-proxy@1.0.0, selenium-atoms@1.0.0, ws@1.0.1, xutil@1.0.1, request-promise@2.0.1)
install macaca-ios success
Error: Command failed: /bin/sh -c open -a Simulator --args -CurrentDeviceUDID "2B47D1C8-0E80-4820-8000-0509B7DC01CF" The application /Users/admin/.Trash/Xcode 下午11.37.50.app/Contents/Developer/Applications/Simulator.app cannot be opened because it is in the Trash.
macaca mobile sample
Error: Simulator 2B47D1C8-0E80-4820-8000-0509B7DC01CF is not booted. at /usr/local/lib/node_modules/macaca-cli/node_modules/webdriver-server/node_modules/node-installer/node_modules/macaca-ios/lib/macaca-ios.js:237:20
InternalServerError: Internal Server Error at Object.module.exports.throw (/usr/local/lib/node_modules/macaca-cli/node_modules/webdriver-server/node_modules/koa/lib/context.js:91:23) at Object.module.exports (/usr/local/lib/node_modules/macaca-cli/node_modules/webdriver-server/lib/server/responseHandler.js:66:17) at throw (native) at onRejected (/usr/local/lib/node_modules/macaca-cli/node_modules/co/index.js:81:24) at process._tickCallback (node.js:369:9)
3) macaca mobile sample "before all" hook: [init({"autoAcceptAlerts":true,"platformName":"iOS","platformVersion":"9.3","deviceName":"iPhone 6s Plus","app":"/Users/admin/Downloads/macaca-test-sample-master/app/ios-app-bootstrap.zip"})] The environment you requested was unavailable. Error: [init({"autoAcceptAlerts":true,"platformName":"iOS","platformVersion":"9.3","deviceName":"iPhone 6s Plus","app":"app/ios-app-bootstrap.zip"})] The environment you requested was unavailable. at node_modules/webdriver-client/node_modules/macaca-wd/wd/lib/webdriver.js:134:15 at Request._callback (node_modules/webdriver-client/node_modules/macaca-wd/wd/lib/http-utils.js:87:7) at Request.self.callback (node_modules/webdriver-client/node_modules/macaca-wd/node_modules/request/request.js:368:22) at Request. (node_modules/webdriver-client/node_modules/macaca-wd/node_modules/request/request.js:1219:14)
at IncomingMessage. (node_modules/webdriver-client/node_modules/macaca-wd/node_modules/request/request.js:1167:12)
at endReadableNT (_stream_readable.js:913:12)
4) macaca mobile sample "after all" hook: Error: [quit()] Unexpected data in simpleCallback. at exports.newError (node_modules/webdriver-client/node_modules/macaca-wd/wd/lib/utils.js:139:13) at null. (node_modules/webdriver-client/node_modules/macaca-wd/wd/lib/callbacks.js:42:12)
at cb (node_modules/webdriver-client/node_modules/macaca-wd/wd/lib/webdriver.js:165:22)
at node_modules/webdriver-client/node_modules/macaca-wd/wd/lib/webdriver.js:179:5
at Request._callback (node_modules/webdriver-client/node_modules/macaca-wd/wd/lib/http-utils.js:87:7)
at Request.self.callback (node_modules/webdriver-client/node_modules/macaca-wd/node_modules/request/request.js:368:22)
at Request. (node_modules/webdriver-client/node_modules/macaca-wd/node_modules/request/request.js:1219:14)
at IncomingMessage. (node_modules/webdriver-client/node_modules/macaca-wd/node_modules/request/request.js:1167:12)
at endReadableNT (_stream_readable.js:913:12)
5) macaca mobile sample "before all" hook: [init({"autoAcceptAlerts":true,"platformName":"iOS","platformVersion":"9.3","deviceName":"iPhone 6s Plus","app":"/Users/admin/Downloads/macaca-test-sample-master/app/ios-app-bootstrap.zip"})] The environment you requested was unavailable. Error: [init({"autoAcceptAlerts":true,"platformName":"iOS","platformVersion":"9.3","deviceName":"iPhone 6s Plus","app":"app/ios-app-bootstrap.zip"})] The environment you requested was unavailable. at node_modules/webdriver-client/node_modules/macaca-wd/wd/lib/webdriver.js:134:15 at Request._callback (node_modules/webdriver-client/node_modules/macaca-wd/wd/lib/http-utils.js:87:7) at Request.self.callback (node_modules/webdriver-client/node_modules/macaca-wd/node_modules/request/request.js:368:22) at Request. (node_modules/webdriver-client/node_modules/macaca-wd/node_modules/request/request.js:1219:14)
at IncomingMessage. (node_modules/webdriver-client/node_modules/macaca-wd/node_modules/request/request.js:1167:12)
at endReadableNT (_stream_readable.js:913:12)
InternalServerError: Internal Server Error at Object.module.exports.throw (/usr/local/lib/node_modules/macaca-cli/node_modules/webdriver-server/node_modules/koa/lib/context.js:91:23) at Object.module.exports (/usr/local/lib/node_modules/macaca-cli/node_modules/webdriver-server/lib/server/responseHandler.js:66:17) at throw (native) at onRejected (/usr/local/lib/node_modules/macaca-cli/node_modules/co/index.js:81:24) at process._tickCallback (node.js:369:9)
macaca mobile sample
InternalServerError: Internal Server Error at Object.module.exports.throw (/usr/local/lib/node_modules/macaca-cli/node_modules/webdriver-server/node_modules/koa/lib/context.js:91:23) at Object.module.exports (/usr/local/lib/node_modules/macaca-cli/node_modules/webdriver-server/lib/server/responseHandler.js:66:17) at throw (native) at onRejected (/usr/local/lib/node_modules/macaca-cli/node_modules/co/index.js:81:24) at process._tickCallback (node.js:369:9)
0 passing (6m) 6 failing
2) macaca desktop sample "after all" hook: Error: [quit()] Unexpected data in simpleCallback. at exports.newError (node_modules/webdriver-client/node_modules/macaca-wd/wd/lib/utils.js:139:13) at null. (node_modules/webdriver-client/node_modules/macaca-wd/wd/lib/callbacks.js:42:12)
at cb (node_modules/webdriver-client/node_modules/macaca-wd/wd/lib/webdriver.js:165:22)
at node_modules/webdriver-client/node_modules/macaca-wd/wd/lib/webdriver.js:179:5
at Request._callback (node_modules/webdriver-client/node_modules/macaca-wd/wd/lib/http-utils.js:87:7)
at Request.self.callback (node_modules/webdriver-client/node_modules/macaca-wd/node_modules/request/request.js:368:22)
at Request. (node_modules/webdriver-client/node_modules/macaca-wd/node_modules/request/request.js:1219:14)
at IncomingMessage. (node_modules/webdriver-client/node_modules/macaca-wd/node_modules/request/request.js:1167:12)
at endReadableNT (_stream_readable.js:913:12)
3) macaca mobile sample "before all" hook: Error: timeout of 300000ms exceeded. Ensure the done() callback is being called in this test.
5) macaca mobile sample "before all" hook: [init({"autoAcceptAlerts":true,"platformName":"iOS","platformVersion":"9.3","deviceName":"iPhone 6s Plus","app":"/Users/admin/Downloads/macaca-test-sample-master/app/ios-app-bootstrap.zip"})] The environment you requested was unavailable. Error: [init({"autoAcceptAlerts":true,"platformName":"iOS","platformVersion":"9.3","deviceName":"iPhone 6s Plus","app":"app/ios-app-bootstrap.zip"})] The environment you requested was unavailable. at node_modules/webdriver-client/node_modules/macaca-wd/wd/lib/webdriver.js:134:15 at Request._callback (node_modules/webdriver-client/node_modules/macaca-wd/wd/lib/http-utils.js:87:7) at Request.self.callback (node_modules/webdriver-client/node_modules/macaca-wd/node_modules/request/request.js:368:22) at Request. (node_modules/webdriver-client/node_modules/macaca-wd/node_modules/request/request.js:1219:14)
at IncomingMessage. (node_modules/webdriver-client/node_modules/macaca-wd/node_modules/request/request.js:1167:12)
at endReadableNT (_stream_readable.js:913:12)
6) macaca mobile sample "after all" hook: Error: [quit()] Unexpected data in simpleCallback. at exports.newError (node_modules/webdriver-client/node_modules/macaca-wd/wd/lib/utils.js:139:13) at null. (node_modules/webdriver-client/node_modules/macaca-wd/wd/lib/callbacks.js:42:12)
at cb (node_modules/webdriver-client/node_modules/macaca-wd/wd/lib/webdriver.js:165:22)
at node_modules/webdriver-client/node_modules/macaca-wd/wd/lib/webdriver.js:179:5
at Request._callback (node_modules/webdriver-client/node_modules/macaca-wd/wd/lib/http-utils.js:87:7)
at Request.self.callback (node_modules/webdriver-client/node_modules/macaca-wd/node_modules/request/request.js:368:22)
at Request. (node_modules/webdriver-client/node_modules/macaca-wd/node_modules/request/request.js:1219:14)
at IncomingMessage. (node_modules/webdriver-client/node_modules/macaca-wd/node_modules/request/request.js:1167:12)
at endReadableNT (_stream_readable.js:913:12)
admindeMBP:macaca-test-sample-master admin$ macaca run --verbose
InternalServerError: Internal Server Error at Object.module.exports.throw (/usr/local/lib/node_modules/macaca-cli/node_modules/webdriver-server/node_modules/koa/lib/context.js:91:23) at Object.module.exports (/usr/local/lib/node_modules/macaca-cli/node_modules/webdriver-server/lib/server/responseHandler.js:66:17) at throw (native) at onRejected (/usr/local/lib/node_modules/macaca-cli/node_modules/co/index.js:81:24) at process._tickCallback (node.js:369:9)
macaca mobile sample
Error: >> proxy.js:71:18 [master] pid:3874 xctest client proxy error with: Error: socket hang up at Logger.error (/usr/local/lib/node_modules/macaca-cli/node_modules/webdriver-server/node_modules/node-installer/node_modules/macaca-ios/node_modules/xlogger/lib/xlogger.js:162:9) at Request._callback (/usr/local/lib/node_modules/macaca-cli/node_modules/webdriver-server/node_modules/node-installer/node_modules/macaca-ios/node_modules/xctest-client/lib/proxy.js:71:18) at self.callback (/usr/local/lib/node_modules/macaca-cli/node_modules/webdriver-server/node_modules/node-installer/node_modules/macaca-ios/node_modules/xctest-client/node_modules/request/request.js:199:22) at emitOne (events.js:77:13) at Request.emit (events.js:169:7) at Request.onRequestError (/usr/local/lib/node_modules/macaca-cli/node_modules/webdriver-server/node_modules/node-installer/node_modules/macaca-ios/node_modules/xctest-client/node_modules/request/request.js:821:8) at emitOne (events.js:77:13) at ClientRequest.emit (events.js:169:7) at Socket.socketOnEnd (_http_client.js:292:9) at emitNone (events.js:72:20) at Socket.emit (events.js:166:7) at endReadableNT (_stream_readable.js:913:12) at nextTickCallbackWith2Args (node.js:442:9) at process._tickCallback (node.js:356:17) admindeMBP:macaca-test-sample-master admin$ `