Приложение XCTest Assertion Failure не работает - PullRequest
0 голосов
/ 02 ноября 2018

Я запускаю тестовые примеры XCTEST на iPad Pro с использованием Xcode 9.4. Приложение вылетает после запуска при выполнении тестовых случаев. Мой первый тестовый шаг - это просто ожидание, а затем я проверяю пользовательский интерфейс. Но я уверен, что это не имеет ничего общего с контрольным примером.

iPad Pro имеет ОС 11.4.

Пожалуйста, помогите мне, ребята. Заранее спасибо. Это логи

User defaults from command line: IDETestRunSpecificationPath = /Applications/mampstack-5.5.30-0/apache2/htdocs/XCTestRunner/buildtest/Application_iphoneos11.0-arm64.xctestrun    
2018-10-31 12:22:52.296318-0400 ApplicationUITests-Runner[303:14551] Initializing XCTestProxy
2018-10-31 12:22:52.660015-0400 ApplicationUITests-Runner[303:14551] Initializing NSXPCConnection with Mach service name: com.apple.UIKit.KeyboardManagement.hosted
2018-10-31 12:22:52.691395-0400 ApplicationUITests-Runner[303:14551] Running tests...
2018-10-31 12:22:53.047269-0400 ApplicationUITests-Runner[303:14551] Initializing NSXPCConnection with Mach service name: com.apple.testmanagerd
2018-10-31 12:22:53.050359-0400 ApplicationUITests-Runner[303:14551] _XCT_exchangeProtocolVersion
2018-10-31 12:22:53.062480-0400 ApplicationUITests-Runner[303:14551] _XCT_requestSerializedTransportWrapperForIDESessionWithIdentifier
2018-10-31 12:22:53.063743-0400 ApplicationUITests-Runner[303:14606] XCTestProxyPeerConnection 8 switched protocols.
2018-10-31 12:22:53.063930-0400 ApplicationUITests-Runner[303:14591] Calling pthread_join on reader thread
2018-10-31 12:22:53.064004-0400 ApplicationUITests-Runner[303:14591] pthread_join returned
2018-10-31 12:22:53.064045-0400 ApplicationUITests-Runner[303:14591] Removing connection
2018-10-31 12:22:53.064092-0400 ApplicationUITests-Runner[303:14591] Connection removed
2018-10-31 12:22:53.064741-0400 ApplicationUITests-Runner[303:14591] Removing connection
2018-10-31 12:22:53.064816-0400 ApplicationUITests-Runner[303:14591] Connection removed
2018-10-31 12:22:53.069184-0400 ApplicationUITests-Runner[303:14551] refreshPreferences: HangTracerEnabled: 0
2018-10-31 12:22:53.069258-0400 ApplicationUITests-Runner[303:14551] refreshPreferences: HangTracerDuration: 500
2018-10-31 12:22:53.069297-0400 ApplicationUITests-Runner[303:14551] refreshPreferences: ActivationLoggingEnabled: 0 ActivationLoggingTaskedOffByDA:0
2018-10-31 12:22:53.403521-0400 ApplicationUITests-Runner[303:14551] _XCT_loadAccessibilityWithTimeout
2018-10-31 12:22:53.407218-0400 ApplicationUITests-Runner[303:14551] _XCT_setAXTimeout
2018-10-31 12:22:53.410002-0400 ApplicationUITests-Runner[303:14551] _XCT_registerForAccessibilityNotification
2018-10-31 12:22:53.412665-0400 ApplicationUITests-Runner[303:14551] _XCT_registerForAccessibilityNotification
2018-10-31 12:22:53.415338-0400 ApplicationUITests-Runner[303:14551] _XCT_registerForAccessibilityNotification
2018-10-31 12:22:53.418124-0400 ApplicationUITests-Runner[303:14551] _XCT_requestBackgroundAssertionForPID
2018-10-31 12:22:53.424147-0400 ApplicationUITests-Runner[303:14551] _XCT_performDeviceEvent
2018-10-31 12:22:53.442539-0400 ApplicationUITests-Runner[303:14551] Continuing to run tests in the background with task ID 1
2018-10-31 12:22:54.665067-0400 ApplicationUITests-Runner[303:14592] _XCT_startMonitoringApplicationWithBundleID
Test Suite 'All tests' started at 2018-10-31 12:22:54.670
Test Suite 'ApplicationUITests.xctest' started at 2018-10-31 12:22:54.672
Test Suite 'SmokeTestCases' started at 2018-10-31 12:22:54.673
Test Case '-[ApplicationUITests.SmokeTestCases testt01verifyelementsonhomescreen]' started.
t =     0.00s Start Test at 2018-10-31 12:22:54.675
2018-10-31 12:22:54.677461-0400 ApplicationUITests-Runner[303:14551] _XCT_requestScreenshotOfScreenWithID_uti
t =     0.06s Set Up
t =     0.07s     Open com.gulfstream.24hrsupport
2018-10-31 12:22:54.741020-0400 ApplicationUITests-Runner[303:14551] _XCT_requestScreenshotOfScreenWithID_uti
t =     0.12s         Launch com.gulfstream.24hrsupport
2018-10-31 12:22:57.726725-0400 ApplicationUITests-Runner[303:14551] _XCT_requestEndpointForTestTargetWithPID: /Developer/Library/PrivateFrameworks/XCTAutomationSupport.framework
2018-10-31 12:22:57.778710-0400 ApplicationUITests-Runner[303:14587] requestHostAppExecutableNameWithReply
t =     3.11s             Wait for com.gulfstream.24hrsupport to idle
2018-10-31 12:22:57.788155-0400 ApplicationUITests-Runner[303:14551] _XCT_requestScreenshotOfScreenWithID_uti
2018-10-31 12:22:57.853737-0400 ApplicationUITests-Runner[303:14551] _XCT_performAccessibilityAction
2018-10-31 12:22:57.854162-0400 ApplicationUITests-Runner[303:14551] _XCT_performAccessibilityAction
t =     3.38s                 Unable to monitor event loop
2018-10-31 12:22:59.582437-0400 ApplicationUITests-Runner[303:14551] _XCT_requestDTServiceHubConnectionWithReply
- testt01verifyelementsonhomescreen--Test started
2018-10-31 16:23:09 Executed XCUITest Step = WAIT,5
t =    14.93s Tap Target Application 0x1c40ab100[760.32, 1013.76]
t =    14.93s     Wait for com.gulfstream.24hrsupport to idle
2018-10-31 12:23:09.614537-0400 ApplicationUITests-Runner[303:14551] _XCT_requestScreenshotOfScreenWithID_uti
t =    15.12s     Find the Target Application 0x1c40ab100
2018-10-31 12:23:09.793690-0400 ApplicationUITests-Runner[303:14551] _XCT_requestScreenshotOfScreenWithID_uti
t =    15.25s         Assertion Failure: UITestCase.swift:687: Application com.gulfstream.24hrsupport is not running
2018-10-31 12:23:09.924448-0400 ApplicationUITests-Runner[303:14551] _XCT_requestScreenshotOfScreenWithID_uti
t =    15.34s Tear Down
Test Case '-[ApplicationUITests.SmokeTestCases testt01verifyelementsonhomescreen]' failed (15.338 seconds).
Test Suite 'SmokeTestCases' failed at 2018-10-31 12:23:10.013.
Executed 1 test, with 1 failure (0 unexpected) in 15.338 (15.340) seconds
Test Suite 'ApplicationUITests.xctest' failed at 2018-10-31 12:23:10.014.
Executed 1 test, with 1 failure (0 unexpected) in 15.338 (15.342) seconds
Test Suite 'All tests' failed at 2018-10-31 12:23:10.018.
Executed 1 test, with 1 failure (0 unexpected) in 15.338 (15.348) seconds
Добро пожаловать на сайт PullRequest, где вы можете задавать вопросы и получать ответы от других членов сообщества.
...