Posts

Post not yet marked as solved
6 Replies
4.0k Views
Hello,Since Xcode 11, getting value from a UISwitch in Settings app with XCUITest is not working anymore with iOS 12 devices.For example, going on the Notification settings, I would like to check some switch values. let switchSounds = settingsApp.switches["Sounds"] let expectedValue = isEnabled ? "1" : "0" XCTAssert(switchSounds.value as? String == expectedValue)The switchSounds is found but its value is nil. It was working before and it still works on the app I run my other tests on.Is there any workaround I can use ? I tried using isSelected but it's not working either.
Posted
by cemarch.
Last updated
.
Post not yet marked as solved
2 Replies
1.6k Views
Hello guys,When launching a bunch of UI tests, I delete the app between each of them to ensure having a clean state. Since I updated Xcode with 11.4 version, the app isn't installed after the first test has been run and I get the following error message:Could not locate installed application Domain: com.apple.platform.iphoneos Code: -1 Recovery Suggestion: Install claimed to have succeeded, but application could not be found on device. bundleId = com.myapp.myapp -- Installed application was not present in database of installed apps after multiple lookup attempts. Domain: com.apple.platform.iphoneos Code: -1 -- macOS Version 10.15.4 (Build 19E287) Xcode 11.4 (16134)The initial app installation is working well. But, the other ones aren't not working. Nothing happens, the next tests fail and the error above is triggered for each of the tests. It's a pretty big blocker because I cannot run my entire test suite anymore.
Posted
by cemarch.
Last updated
.