UI Testing Failure - Failed to get refreshed snapshot

Originator:dwsjoquist
Number:rdar://22702684 Date Originated:14-Sep-2015
Status:open Resolved:
Product:Xcode Product Version:7
Classification:bug Reproducible:yes
 
Some of our multi-step tests with new UI testing framework will hang when attempting to find elements because of this error.

It happens consistently on 2 separate test cases, but works fine on the other 20 or so that we have developed so far.  (It is a large project, 2000+ files)

I have not been able to create a smaller project that causes the problem, but will keep trying to generate a test project of manageable size that reproduces the problem.

Configuration:
It occurs on several different iOS 9 simulators

Comments

Did you file a bug with apple on this and have they replied ? OR did you find any other alternative?

By geniussandy20 at Oct. 29, 2015, 12:15 a.m. (reply...)

Failure completely reproducible for me if I turn off Animations

I've found that disabling animations during unit testing (especially with UI tests) makes them run much faster. Unfortunately, this can lead to the above bug far too often. Tests that are near 100% reliable with animations enabled will run into this bug when you disable animations during unit testing.


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!