Appium parallel execution on Android and iOS (Multiple iOS and Android)

Всем привет,
Пытаюсь создать проект для параллельного тестирования iOS, Android. Я создал Selenium Grid. подконнектил Андроид nodes. C Android все работает. C iOS не получается.Кто то может сталкивался как настроить проект что бы в одном было iOS и Android. и вcе запускалось параллельно. 1 iOS и 1 Android это не проблема. Надо чтоб было болше чем 1 iOS и болше чем 1 Android on real devices, no emulators.
Нашел вот ето GitHub - AppiumTestDistribution/AppiumTestDistribution: A tool for running android and iOS appium tests in parallel across devices... U like it STAR it !, но никак не могу разобраться

Всем Спасибо и хорошего тестинга

Из вашего описания все таки не очень понятно в чем проблема.
Да и противоречия некоторые встречаются:

C Android все работает. C iOS не получается

Что не получается с IOS?

1 iOS и 1 Android это не проблема.

А тут уже нет проблем

Надо чтоб было болше чем 1 iOS и болше чем 1 Android
C Android все работает

А что тогда работает с Android?

@Karamba, Дело в том что, как я знаю, можно только 1 ios по 1 Mac тестировать (apple limitation). Но вроде как я вычитал из инета некоторые люди нашли выход с помощью создания отдельной tmp папки на каждый ios при execution. Но я что то так и не смог с этим разобраться. Если кто то знает как сделать несколько ios чтоб выполнялись параллельно-мне только надо узнать как конектить ios node k selenium grid при параллельном выполнении

Все верно.
Для каждого девайса запускаете свой инстанс appium`а, с необходимыми параметрами, и все будет работать

Индусы уже весь интернет завалили примерами, как это сделать :slight_smile:

http://www.suryarazmi.com/2016/05/ios-parallel-execution-using-appium.html

2 лайка

@Karamba, Спасибо большое. Щас попробую. Еще такой вопрос: как обычно вы стартуете Selenium grid и nodes к нему? В автоматическом режиме или вручную? Я просто делаю вручную все: сначало запускаю Grid, а потом подконнективую Nodes к нему. А какие существуют практики еще? Можно как то в автоматическом режиме все сделать? Я скинул ссылку в первом посте, где сам framework сам создает находит все devices,coздаетGrid, находит device names,Udid(через Adb или xcode) подключает ноды и в конце все закрывает сам. Но что там не нравится запускается как то каряво немножко (там закидывать вручную в List надо все классы которые надо запускать или пакетами).
Какие практики вообще существуют чтоб запускать Grid и подключать nodes к нему в авто режиме?

Я просто делаю вручную все: сначало запускаю Grid, а потом подконнективую Nodes к нему

И чем этот подход, лично вас, не устраивает на данный момент?

Устраивает. Но с Continiues Integration хотелось автоматизированнее как то бы все…
Забыл совсем: этот setup на которую ты мне ссылку дал,только же работает для Native apps. Для Hybrid apps надо стартовать отдельный ios-webkit-debig-proxy. Можешь подсказать как это делать ,что то я не понял совсем ((

Но с Continiues Integration хотелось автоматизированнее как то бы все…

Хабы, ноды - это же просто запуск процессов. Стартуйте нужные процессы, с необходимыми параметрами, перед запуском тестов. После прогона тестов убивайте эти процессы. Раз уж у вас CI.

Для Hybrid apps надо стартовать отдельный ios-webkit-debig-proxy. Можешь подсказать как это делать ,что то я не понял совсем ((

С гибридными арликухами не работал. Поэтому, к сожалению, не смогу подсказать

Я так сделала. Не получилось распараллелить на IOS. Последовательно запускаются, Андроид и IOS параллельно запкускаются, а 2 IOS параллельно запустились только 2 раза - вчера и сегодня. Я ничего не меняла при прогонах. Девайсы - Iphone 5 и 6s. В чем может быть причина? Вот лог (упавшего нода):

[HTTP] --> POST /wd/hub/session {"desiredCapabilities":{"app":"/Users/admin/Documents/Snaappy(1).ipa","noReset":true,"language":"en","deviceName":"iPhone 6S","updatedWDABundleId":"com.appiumagent","wdaLocalPort":8002,"newCommandTimeout":500,"platformVersion":"10.2.1","automationName":"XCUITest","browserName":"iphone","maxInstances":1,"platformName":"iOS","udid":"fff519057707bce70a9b8a5e92e84c64f6d8a426","applicationName":"iphone6s","autoAcceptAlerts":true},"requiredCapabilities":{}}
[debug] [MJSONWP] Calling AppiumDriver.createSession() with args: [{"app":"/Users/admin/Documents/Snaappy(1).ipa","noReset":true,"language":"en","deviceName":"iPhone 6S","updatedWDABundleId":"com.appiumagent","wdaLocalPort":8002,"newCommandTimeout":500,"platformVersion":"10.2.1","automationName":"XCUITest","browserName":"iphone","maxInstances":1,"platformName":"iOS","udid":"fff519057707bce70a9b8a5e92e84c64f6d8a426","applicationName":"iphone6s","autoAcceptAlerts":true},{},null]
[debug] [BaseDriver] Event 'newSessionRequested' logged at 1499859267444 (14:34:27 GMT+0300 (MSK))
[Appium] Creating new XCUITestDriver (v2.30.0) session
[Appium] Capabilities:
[Appium]   app: '/Users/admin/Documents/Snaappy(1).ipa'
[Appium]   noReset: true
[Appium]   language: 'en'
[Appium]   deviceName: 'iPhone 6S'
[Appium]   updatedWDABundleId: 'com.appiumagent'
[Appium]   wdaLocalPort: 8002
[Appium]   newCommandTimeout: 500
[Appium]   platformVersion: '10.2.1'
[Appium]   automationName: 'XCUITest'
[Appium]   browserName: 'iphone'
[Appium]   maxInstances: 1
[Appium]   platformName: 'iOS'
[Appium]   udid: 'fff519057707bce70a9b8a5e92e84c64f6d8a426'
[Appium]   applicationName: 'iphone6s'
[Appium]   autoAcceptAlerts: true
[debug] [XCUITest] XCUITestDriver version: 2.30.0
[BaseDriver] The following capabilities were provided, but are not recognized by appium: maxInstances, applicationName.
[XCUITest] The capabilities 'autoAcceptAlerts' and 'autoDismissAlerts' do not work for XCUITest-based tests. Please adjust your alert handling accordingly.
[BaseDriver] Session created with session id: 9b6cb560-f8f8-42a3-8120-2460b85cf3dc
[debug] [XCUITest] Xcode version set to '8.3.3' (tools v8.3.2.0.1.1492020469)
[debug] [XCUITest] iOS SDK Version set to '10.3'
[debug] [BaseDriver] Event 'xcodeDetailsRetrieved' logged at 1499859267523 (14:34:27 GMT+0300 (MSK))
[debug] [XCUITest] Available devices: d694b40eb79a94887c109f4af2e41150cf844acf, fff519057707bce70a9b8a5e92e84c64f6d8a426
[debug] [XCUITest] Creating iDevice object with udid 'fff519057707bce70a9b8a5e92e84c64f6d8a426'
[XCUITest] Determining device to run tests on: udid: 'fff519057707bce70a9b8a5e92e84c64f6d8a426', real device: true
[BaseDriver] Using local app '/Users/admin/Documents/Snaappy(1).ipa'
[debug] [BaseDriver] Copying local zip to tmp dir
[debug] [BaseDriver] Unzipping /var/folders/zt/4sv62qb15h33ztcj_24sp5sm0000gn/T/2017612-2910-yhuhsg.x3yvxnu3di/appium-app.zip
[debug] [BaseDriver] Testing zip archive: /var/folders/zt/4sv62qb15h33ztcj_24sp5sm0000gn/T/2017612-2910-yhuhsg.x3yvxnu3di/appium-app.zip
[BaseDriver] Unzipped local app to '/var/folders/zt/4sv62qb15h33ztcj_24sp5sm0000gn/T/2017612-2910-yhuhsg.x3yvxnu3di/Payload/Snaappy.app'
[debug] [BaseDriver] Event 'appConfigured' logged at 1499859270575 (14:34:30 GMT+0300 (MSK))
[debug] [XCUITest] Checking whether app '/var/folders/zt/4sv62qb15h33ztcj_24sp5sm0000gn/T/2017612-2910-yhuhsg.x3yvxnu3di/Payload/Snaappy.app' is actually present on file system
[debug] [XCUITest] App is present
[debug] [iOS] Getting bundle ID from app '/var/folders/zt/4sv62qb15h33ztcj_24sp5sm0000gn/T/2017612-2910-yhuhsg.x3yvxnu3di/Payload/Snaappy.app': 'com.snaappy.Snaappydev'
[debug] [BaseDriver] Event 'resetStarted' logged at 1499859270584 (14:34:30 GMT+0300 (MSK))
[debug] [XCUITest] Reset: fullReset not set. Leaving as is
[debug] [BaseDriver] Event 'resetComplete' logged at 1499859270585 (14:34:30 GMT+0300 (MSK))
[debug] [iOSLog] Attempting iOS device log capture via libimobiledevice idevicesyslog
[debug] [iOSLog] Found idevicesyslog: '/usr/local/bin/idevicesyslog'
[debug] [BaseDriver] Event 'logCaptureStarted' logged at 1499859270712 (14:34:30 GMT+0300 (MSK))
[XCUITest] Setting up real device
[debug] [XCUITest] App 'com.snaappy.Snaappydev' is already installed. No need to reinstall.
[debug] [BaseDriver] Event 'appInstalled' logged at 1499859270895 (14:34:30 GMT+0300 (MSK))
[debug] [BaseDriver] Event 'wdaStartAttempted' logged at 1499859270895 (14:34:30 GMT+0300 (MSK))
[XCUITest] Using WDA path: '/usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent'
[XCUITest] Using WDA agent: '/usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent/WebDriverAgent.xcodeproj'
[XCUITest] Launching WebDriverAgent on the device
[debug] [XCUITest] Carthage found: '/usr/local/bin/carthage'
[debug] [XCUITest] Successfully updated '/usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent/WebDriverAgent.xcodeproj/project.pbxproj' with bundle id 'com.appiumagent'
[debug] [XCUITest] Killing hanging processes
[debug] [XCUITest] Beginning test with command 'xcodebuild build-for-testing test-without-building -project /usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent/WebDriverAgent.xcodeproj -scheme WebDriverAgentRunner -destination id=fff519057707bce70a9b8a5e92e84c64f6d8a426 -configuration Debug IPHONEOS_DEPLOYMENT_TARGET=10.2' in directory '/usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent'
[debug] [XCUITest] Output from xcodebuild will not be logged
[debug] [XCUITest] Starting iproxy to forward traffic from local port 8002 to device port 8100 over USB
[HTTP] --> GET /wd/hub/status {}
[debug] [MJSONWP] Calling AppiumDriver.getStatus() with args: []
[HTTP] <-- GET /wd/hub/status - - ms - - 
[debug] [XCUITest] Waiting up to 60000ms for WebDriverAgent to start
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8002/status] with no body
[debug] [JSONWP Proxy] Got response with status 200: "{\n  \"value\" : {\n    \"state\" : \"success\",\n    \"os\" : {\n      \"name\" : \"iOS\",\n      \"version\" : \"10.2.1\"\n    },\n    \"ios\" : {\n      \"simulatorVersion\" : \"10.2.1\",\n      \"ip\" : \"192.168.1.71\"\n    },\n    \"build\" : {\n      \"time\" : \"Jul 12 2017 13:02:42\"\n    }\n  },\n  \"sessionId\" : \"2E266007-A42C-4344-BCE6-5E66AC20B3C9\",\n  \"status\" : 0\n}"
[debug] [XCUITest] WebDriverAgent running on ip '192.168.1.71'
[debug] [XCUITest] WebDriverAgent successfully started after 764ms
[debug] [BaseDriver] Event 'wdaSessionAttempted' logged at 1499859276820 (14:34:36 GMT+0300 (MSK))
[debug] [XCUITest] Sending createSession command to WDA
[debug] [JSONWP Proxy] Proxying [POST /session] to [POST http://localhost:8002/session] with body: {"desiredCapabilities":{"bundleId":"com.snaappy.Snaappydev","arguments":[],"environment":{},"shouldWaitForQuiescence":true,"shouldUseTestManagerForVisibilityDetection":false,"maxTypingFrequency":60,"shouldUseSingletonTestManager":true}}
[debug] [XCUITest] Log file for xcodebuild test: /Users/admin/Library/Developer/Xcode/DerivedData/WebDriverAgent-brdadhpuduowllgivnnvuygpwhzy/Logs/Test/EAD38E99-C8AE-49B9-BB2C-217F4699174C/Session-WebDriverAgentRunner-2017-07-12_143439-uaG7Hj.log
[HTTP] --> GET /wd/hub/status {}
[debug] [MJSONWP] Calling AppiumDriver.getStatus() with args: []
[debug] [XCUITest] Failed to create WDA session. Retrying...
[debug] [BaseDriver] Event 'wdaSessionAttempted' logged at 1499859281562 (14:34:41 GMT+0300 (MSK))
[debug] [XCUITest] Sending createSession command to WDA
[debug] [JSONWP Proxy] Proxying [POST /session] to [POST http://localhost:8002/session] with body: {"desiredCapabilities":{"bundleId":"com.snaappy.Snaappydev","arguments":[],"environment":{},"shouldWaitForQuiescence":true,"shouldUseTestManagerForVisibilityDetection":false,"maxTypingFrequency":60,"shouldUseSingletonTestManager":true}}
[debug] [XCUITest] Failed to create WDA session. Retrying...
[debug] [BaseDriver] Event 'wdaSessionAttempted' logged at 1499859282576 (14:34:42 GMT+0300 (MSK))
[debug] [XCUITest] Sending createSession command to WDA
[debug] [JSONWP Proxy] Proxying [POST /session] to [POST http://localhost:8002/session] with body: {"desiredCapabilities":{"bundleId":"com.snaappy.Snaappydev","arguments":[],"environment":{},"shouldWaitForQuiescence":true,"shouldUseTestManagerForVisibilityDetection":false,"maxTypingFrequency":60,"shouldUseSingletonTestManager":true}}
[debug] [XCUITest] Failed to create WDA session. Retrying...
[debug] [BaseDriver] Event 'wdaSessionAttempted' logged at 1499859283587 (14:34:43 GMT+0300 (MSK))
[debug] [XCUITest] Sending createSession command to WDA
[debug] [JSONWP Proxy] Proxying [POST /session] to [POST http://localhost:8002/session] with body: {"desiredCapabilities":{"bundleId":"com.snaappy.Snaappydev","arguments":[],"environment":{},"shouldWaitForQuiescence":true,"shouldUseTestManagerForVisibilityDetection":false,"maxTypingFrequency":60,"shouldUseSingletonTestManager":true}}
[debug] [XCUITest] Failed to create WDA session. Retrying...
[Xcode] 2017-07-12 14:34:44.450 xcodebuild[11059:123104] Error Domain=IDETestOperationsObserverErrorDomain Code=6 "Early unexpected exit, operation never finished bootstrapping - no restart will be attempted" UserInfo={NSLocalizedDescription=Early unexpected exit, operation never finished bootstrapping - no restart will be attempted}
[Xcode] 
[Xcode] ** TEST EXECUTE FAILED **
[Xcode] 
[Xcode] 
[XCUITest] xcodebuild exited with code '65' and signal 'null'
[debug] [BaseDriver] Event 'wdaSessionAttempted' logged at 1499859284596 (14:34:44 GMT+0300 (MSK))
[debug] [XCUITest] Sending createSession command to WDA
[debug] [JSONWP Proxy] Proxying [POST /session] to [POST http://localhost:8002/session] with body: {"desiredCapabilities":{"bundleId":"com.snaappy.Snaappydev","arguments":[],"environment":{},"shouldWaitForQuiescence":true,"shouldUseTestManagerForVisibilityDetection":false,"maxTypingFrequency":60,"shouldUseSingletonTestManager":true}}
[debug] [XCUITest] Failed to create WDA session. Retrying...
[HTTP] <-- GET /wd/hub/status - - ms - - 
[debug] [BaseDriver] Event 'wdaSessionAttempted' logged at 1499859285602 (14:34:45 GMT+0300 (MSK))
[debug] [XCUITest] Sending createSession command to WDA
[debug] [JSONWP Proxy] Proxying [POST /session] to [POST http://localhost:8002/session] with body: {"desiredCapabilities":{"bundleId":"com.snaappy.Snaappydev","arguments":[],"environment":{},"shouldWaitForQuiescence":true,"shouldUseTestManagerForVisibilityDetection":false,"maxTypingFrequency":60,"shouldUseSingletonTestManager":true}}
[debug] [XCUITest] Failed to create WDA session. Retrying...
[debug] [BaseDriver] Event 'wdaSessionAttempted' logged at 1499859286614 (14:34:46 GMT+0300 (MSK))
[debug] [XCUITest] Sending createSession command to WDA
[debug] [JSONWP Proxy] Proxying [POST /session] to [POST http://localhost:8002/session] with body: {"desiredCapabilities":{"bundleId":"com.snaappy.Snaappydev","arguments":[],"environment":{},"shouldWaitForQuiescence":true,"shouldUseTestManagerForVisibilityDetection":false,"maxTypingFrequency":60,"shouldUseSingletonTestManager":true}}
[debug] [XCUITest] Failed to create WDA session. Retrying...
[debug] [BaseDriver] Event 'wdaSessionAttempted' logged at 1499859287624 (14:34:47 GMT+0300 (MSK))
[debug] [XCUITest] Sending createSession command to WDA
[debug] [JSONWP Proxy] Proxying [POST /session] to [POST http://localhost:8002/session] with body: {"desiredCapabilities":{"bundleId":"com.snaappy.Snaappydev","arguments":[],"environment":{},"shouldWaitForQuiescence":true,"shouldUseTestManagerForVisibilityDetection":false,"maxTypingFrequency":60,"shouldUseSingletonTestManager":true}}
[debug] [XCUITest] Failed to create WDA session. Retrying...
[debug] [BaseDriver] Event 'wdaSessionAttempted' logged at 1499859288633 (14:34:48 GMT+0300 (MSK))
[debug] [XCUITest] Sending createSession command to WDA
[debug] [JSONWP Proxy] Proxying [POST /session] to [POST http://localhost:8002/session] with body: {"desiredCapabilities":{"bundleId":"com.snaappy.Snaappydev","arguments":[],"environment":{},"shouldWaitForQuiescence":true,"shouldUseTestManagerForVisibilityDetection":false,"maxTypingFrequency":60,"shouldUseSingletonTestManager":true}}
[debug] [XCUITest] Failed to create WDA session. Retrying...
[HTTP] --> GET /wd/hub/status {}
[debug] [MJSONWP] Calling AppiumDriver.getStatus() with args: []
[debug] [BaseDriver] Event 'wdaSessionAttempted' logged at 1499859289644 (14:34:49 GMT+0300 (MSK))
[debug] [XCUITest] Sending createSession command to WDA
[debug] [JSONWP Proxy] Proxying [POST /session] to [POST http://localhost:8002/session] with body: {"desiredCapabilities":{"bundleId":"com.snaappy.Snaappydev","arguments":[],"environment":{},"shouldWaitForQuiescence":true,"shouldUseTestManagerForVisibilityDetection":false,"maxTypingFrequency":60,"shouldUseSingletonTestManager":true}}
[debug] [XCUITest] Failed to create WDA session. Retrying...
[debug] [BaseDriver] Event 'wdaSessionAttempted' logged at 1499859290651 (14:34:50 GMT+0300 (MSK))
[debug] [XCUITest] Sending createSession command to WDA
[debug] [JSONWP Proxy] Proxying [POST /session] to [POST http://localhost:8002/session] with body: {"desiredCapabilities":{"bundleId":"com.snaappy.Snaappydev","arguments":[],"environment":{},"shouldWaitForQuiescence":true,"shouldUseTestManagerForVisibilityDetection":false,"maxTypingFrequency":60,"shouldUseSingletonTestManager":true}}
[debug] [XCUITest] Failed to create WDA session. Retrying...
[debug] [BaseDriver] Event 'wdaSessionAttempted' logged at 1499859291662 (14:34:51 GMT+0300 (MSK))
[debug] [XCUITest] Sending createSession command to WDA
[debug] [JSONWP Proxy] Proxying [POST /session] to [POST http://localhost:8002/session] with body: {"desiredCapabilities":{"bundleId":"com.snaappy.Snaappydev","arguments":[],"environment":{},"shouldWaitForQuiescence":true,"shouldUseTestManagerForVisibilityDetection":false,"maxTypingFrequency":60,"shouldUseSingletonTestManager":true}}
[debug] [XCUITest] Failed to create WDA session. Retrying...
[debug] [BaseDriver] Event 'wdaSessionAttempted' logged at 1499859292673 (14:34:52 GMT+0300 (MSK))
[debug] [XCUITest] Sending createSession command to WDA
[debug] [JSONWP Proxy] Proxying [POST /session] to [POST http://localhost:8002/session] with body: {"desiredCapabilities":{"bundleId":"com.snaappy.Snaappydev","arguments":[],"environment":{},"shouldWaitForQuiescence":true,"shouldUseTestManagerForVisibilityDetection":false,"maxTypingFrequency":60,"shouldUseSingletonTestManager":true}}
[debug] [XCUITest] Failed to create WDA session. Retrying...
[debug] [BaseDriver] Event 'wdaSessionAttempted' logged at 1499859293679 (14:34:53 GMT+0300 (MSK))
[debug] [XCUITest] Sending createSession command to WDA
[debug] [JSONWP Proxy] Proxying [POST /session] to [POST http://localhost:8002/session] with body: {"desiredCapabilities":{"bundleId":"com.snaappy.Snaappydev","arguments":[],"environment":{},"shouldWaitForQuiescence":true,"shouldUseTestManagerForVisibilityDetection":false,"maxTypingFrequency":60,"shouldUseSingletonTestManager":true}}
[debug] [XCUITest] Failed to create WDA session. Retrying...
[HTTP] <-- GET /wd/hub/status - - ms - - 
[debug] [BaseDriver] Event 'wdaSessionAttempted' logged at 1499859294690 (14:34:54 GMT+0300 (MSK))
[debug] [XCUITest] Sending createSession command to WDA
[debug] [JSONWP Proxy] Proxying [POST /session] to [POST http://localhost:8002/session] with body: {"desiredCapabilities":{"bundleId":"com.snaappy.Snaappydev","arguments":[],"environment":{},"shouldWaitForQuiescence":true,"shouldUseTestManagerForVisibilityDetection":false,"maxTypingFrequency":60,"shouldUseSingletonTestManager":true}}
[debug] [XCUITest] Failed to create WDA session. Retrying...
[debug] [XCUITest] Unable to start WebDriverAgent session: Could not proxy command to remote server. Original error: Error: socket hang up
[debug] [XCUITest] Quitting and uninstalling WebDriverAgent, then retrying
[XCUITest] Shutting down sub-processes
[XCUITest] Shutting down iproxy process (pid 11043)
[debug] [XCUITest] iproxy exited with code 'null'
[debug] [XCUITest] Successfully reset '/usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent/WebDriverAgent.xcodeproj/project.pbxproj' with bundle id 'com.facebook.WebDriverAgentRunner'
[debug] [XCUITest] Removing WDA application from device
[HTTP] --> GET /wd/hub/status {}
[debug] [MJSONWP] Calling AppiumDriver.getStatus() with args: []
[HTTP] <-- GET /wd/hub/status - - ms - - 
[debug] [BaseDriver] Event 'wdaStartAttempted' logged at 1499859306032 (14:35:06 GMT+0300 (MSK))
[XCUITest] Using WDA path: '/usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent'
[XCUITest] Using WDA agent: '/usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent/WebDriverAgent.xcodeproj'
[XCUITest] Launching WebDriverAgent on the device
[debug] [XCUITest] Carthage found: '/usr/local/bin/carthage'
[debug] [XCUITest] Successfully updated '/usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent/WebDriverAgent.xcodeproj/project.pbxproj' with bundle id 'com.appiumagent'
[debug] [XCUITest] Killing hanging processes
[debug] [XCUITest] Beginning test with command 'xcodebuild build-for-testing test-without-building -project /usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent/WebDriverAgent.xcodeproj -scheme WebDriverAgentRunner -destination id=fff519057707bce70a9b8a5e92e84c64f6d8a426 -configuration Debug IPHONEOS_DEPLOYMENT_TARGET=10.2' in directory '/usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent'
[debug] [XCUITest] Output from xcodebuild will not be logged
[debug] [XCUITest] Starting iproxy to forward traffic from local port 8002 to device port 8100 over USB
[HTTP] --> GET /wd/hub/status {}
[debug] [MJSONWP] Calling AppiumDriver.getStatus() with args: []
[debug] [XCUITest] Waiting up to 60000ms for WebDriverAgent to start
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8002/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8002/status] with no body
[HTTP] <-- GET /wd/hub/status - - ms - - 
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8002/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8002/status] with no body
[debug] [XCUITest] Log file for xcodebuild test: /Users/admin/Library/Developer/Xcode/DerivedData/WebDriverAgent-brdadhpuduowllgivnnvuygpwhzy/Logs/Test/0E73D872-BC05-4DA4-913C-06EBFDD218B9/Session-WebDriverAgentRunner-2017-07-12_143513-Dm4nBs.log
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8002/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8002/status] with no body
[XCUITest] xcodebuild exited with code 'null' and signal 'SIGBUS'
[debug] [BaseDriver] Event 'wdaSessionAttempted' logged at 1499859314671 (14:35:14 GMT+0300 (MSK))
[debug] [XCUITest] Sending createSession command to WDA
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8002/status] with no body
[debug] [XCUITest] Failed to create WDA session. Retrying...
[debug] [BaseDriver] Event 'wdaSessionAttempted' logged at 1499859315678 (14:35:15 GMT+0300 (MSK))
[debug] [XCUITest] Sending createSession command to WDA
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8002/status] with no body
[debug] [XCUITest] Failed to create WDA session. Retrying...
[HTTP] --> GET /wd/hub/status {}
[debug] [MJSONWP] Calling AppiumDriver.getStatus() with args: []
[debug] [BaseDriver] Event 'wdaSessionAttempted' logged at 1499859316687 (14:35:16 GMT+0300 (MSK))
[debug] [XCUITest] Sending createSession command to WDA
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8002/status] with no body
[debug] [XCUITest] Failed to create WDA session. Retrying...
[debug] [BaseDriver] Event 'wdaSessionAttempted' logged at 1499859317698 (14:35:17 GMT+0300 (MSK))
[debug] [XCUITest] Sending createSession command to WDA
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8002/status] with no body
[debug] [XCUITest] Failed to create WDA session. Retrying...
[debug] [BaseDriver] Event 'wdaSessionAttempted' logged at 1499859318708 (14:35:18 GMT+0300 (MSK))
[debug] [XCUITest] Sending createSession command to WDA
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8002/status] with no body
[debug] [XCUITest] Failed to create WDA session. Retrying...
[debug] [BaseDriver] Event 'wdaSessionAttempted' logged at 1499859319722 (14:35:19 GMT+0300 (MSK))
[debug] [XCUITest] Sending createSession command to WDA
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8002/status] with no body
[debug] [XCUITest] Failed to create WDA session. Retrying...
[debug] [BaseDriver] Event 'wdaSessionAttempted' logged at 1499859320733 (14:35:20 GMT+0300 (MSK))
[debug] [XCUITest] Sending createSession command to WDA
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8002/status] with no body
[debug] [XCUITest] Failed to create WDA session. Retrying...
[HTTP] <-- GET /wd/hub/status - - ms - - 
[debug] [BaseDriver] Event 'wdaSessionAttempted' logged at 1499859321743 (14:35:21 GMT+0300 (MSK))
[debug] [XCUITest] Sending createSession command to WDA
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8002/status] with no body
[debug] [XCUITest] Failed to create WDA session. Retrying...
[debug] [BaseDriver] Event 'wdaSessionAttempted' logged at 1499859322753 (14:35:22 GMT+0300 (MSK))
[debug] [XCUITest] Sending createSession command to WDA
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8002/status] with no body
[debug] [XCUITest] Failed to create WDA session. Retrying...
[debug] [BaseDriver] Event 'wdaSessionAttempted' logged at 1499859323763 (14:35:23 GMT+0300 (MSK))
[debug] [XCUITest] Sending createSession command to WDA
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8002/status] with no body
[debug] [XCUITest] Failed to create WDA session. Retrying...
[debug] [BaseDriver] Event 'wdaSessionAttempted' logged at 1499859324773 (14:35:24 GMT+0300 (MSK))
[debug] [XCUITest] Sending createSession command to WDA
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8002/status] with no body
[debug] [XCUITest] Failed to create WDA session. Retrying...
[HTTP] --> GET /wd/hub/status {}
[debug] [MJSONWP] Calling AppiumDriver.getStatus() with args: []
[debug] [BaseDriver] Event 'wdaSessionAttempted' logged at 1499859325789 (14:35:25 GMT+0300 (MSK))
[debug] [XCUITest] Sending createSession command to WDA
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8002/status] with no body
[debug] [XCUITest] Failed to create WDA session. Retrying...
[debug] [BaseDriver] Event 'wdaSessionAttempted' logged at 1499859326795 (14:35:26 GMT+0300 (MSK))
[debug] [XCUITest] Sending createSession command to WDA
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8002/status] with no body
[debug] [XCUITest] Failed to create WDA session. Retrying...
[debug] [BaseDriver] Event 'wdaSessionAttempted' logged at 1499859327806 (14:35:27 GMT+0300 (MSK))
[debug] [XCUITest] Sending createSession command to WDA
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8002/status] with no body
[debug] [XCUITest] Failed to create WDA session. Retrying...
[debug] [BaseDriver] Event 'wdaSessionAttempted' logged at 1499859328822 (14:35:28 GMT+0300 (MSK))
[debug] [XCUITest] Sending createSession command to WDA
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8002/status] with no body
[debug] [XCUITest] Failed to create WDA session. Retrying...
[debug] [XCUITest] Unable to start WebDriverAgent session: Could not proxy command to remote server. Original error: Error: socket hang up
[debug] [XCUITest] Quitting and uninstalling WebDriverAgent, then retrying
[XCUITest] Shutting down sub-processes
[XCUITest] Shutting down iproxy process (pid 11120)
[debug] [XCUITest] iproxy exited with code 'null'
[debug] [XCUITest] Successfully reset '/usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent/WebDriverAgent.xcodeproj/project.pbxproj' with bundle id 'com.facebook.WebDriverAgentRunner'
[debug] [XCUITest] Removing WDA application from device
[HTTP] <-- GET /wd/hub/status - - ms - - 
[HTTP] --> GET /wd/hub/status {}
[debug] [MJSONWP] Calling AppiumDriver.getStatus() with args: []
[HTTP] <-- GET /wd/hub/status - - ms - - 
[XCUITest] Error: Unable to start WebDriverAgent session: Could not proxy command to remote server. Original error: Error: socket hang up
    at XCUITestDriver.quitAndUninstall$ (../../lib/driver.js:386:15)
    at tryCatch (/usr/local/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:67:40)
    at GeneratorFunctionPrototype.invoke [as _invoke] (/usr/local/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:315:22)
    at GeneratorFunctionPrototype.prototype.(anonymous function) [as next] (/usr/local/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:100:21)
    at GeneratorFunctionPrototype.invoke (/usr/local/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:136:37)
 Error: Unable to start WebDriverAgent session: Could not proxy command to remote server. Original error: Error: socket hang up
    at XCUITestDriver.quitAndUninstall$ (../../lib/driver.js:386:15)
    at tryCatch (/usr/local/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:67:40)
    at GeneratorFunctionPrototype.invoke [as _invoke] (/usr/local/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:315:22)
    at GeneratorFunctionPrototype.prototype.(anonymous function) [as next] (/usr/local/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:100:21)
    at GeneratorFunctionPrototype.invoke (/usr/local/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:136:37)
[debug] [XCUITest] Not clearing log files. Use `clearSystemFiles` capability to turn on.
[debug] [iOSLog] Stopping iOS log capture
[MJSONWP] Encountered internal error running command: Error: Unable to start WebDriverAgent session: Could not proxy command to remote server. Original error: Error: socket hang up
    at XCUITestDriver.quitAndUninstall$ (../../lib/driver.js:386:15)
    at tryCatch (/usr/local/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:67:40)
    at GeneratorFunctionPrototype.invoke [as _invoke] (/usr/local/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:315:22)
    at GeneratorFunctionPrototype.prototype.(anonymous function) [as next] (/usr/local/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:100:21)
    at GeneratorFunctionPrototype.invoke (/usr/local/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:136:37)
[HTTP] <-- POST /wd/hub/session 500 72644 ms - 256 
[debug] [MJSONWP] Responding to client with driver.getStatus() result: {"build":{"version":"1.6.5","revision":null}}
[debug] [MJSONWP] Responding to client with driver.getStatus() result: {"build":{"version":"1.6.5","revision":null}}
[debug] [MJSONWP] Responding to client with driver.getStatus() result: {"build":{"version":"1.6.5","revision":null}}
[debug] [MJSONWP] Responding to client with driver.getStatus() result: {"build":{"version":"1.6.5","revision":null}}
[debug] [MJSONWP] Responding to client with driver.getStatus() result: {"build":{"version":"1.6.5","revision":null}}
[debug] [MJSONWP] Responding to client with driver.getStatus() result: {"build":{"version":"1.6.5","revision":null}}
[debug] [MJSONWP] Responding to client with driver.getStatus() result: {"build":{"version":"1.6.5","revision":null}}
[debug] [MJSONWP] Responding to client with driver.getStatus() result: {"build":{"version":"1.6.5","revision":null}}
[HTTP] --> GET /wd/hub/status {}