UI Testing Failure - Failed to get refreshed snapshot
| Originator: | vinayakuchila | ||
| Number: | rdar://24127111 | Date Originated: | 11-Jan-2016 02:12 PM |
| Status: | Open | Resolved: | No |
| Product: | Developer Tools | Product Version: | Version 7.2 (7C68) |
| Classification: | Serious Bug | Reproducible: | Sometimes |
Summary:
Some of our multi-step tests with new UI testing framework will hang when attempting to find elements because of this error.
This happens simulator and device
Steps to Reproduce:
Tests will fail randomly with following error -
Test Case '-[CalendarUITest testWMCreateAndEWSReceiveMeeting]' started.
t = 0.00s Start Test
t = 0.00s Set Up
2016-01-11 14:02:22.267 XCTRunner[2470:849736] Continuing to run tests in the background with task ID 1
t = 4.41s Launch com.mycompany.test
t = 4.73s Terminate <XCUIApplicationProcess: 0x155d9d7b0 com.mycompany.test (2435)>
t = 5.29s Waiting for accessibility to load
t = 14.25s Wait for app to idle
t = 17.31s Tap "GrabTab" StaticText
t = 17.31s Wait for app to idle
t = 17.77s Find the "GrabTab" StaticText
t = 17.78s Snapshot accessibility hierarchy for com.mycompany.test
t = 18.23s Find: Descendants matching type StaticText
t = 18.25s Find: Elements matching predicate '"GrabTab" IN identifiers'
t = 18.27s Wait for app to idle
t = 18.44s Synthesize event
t = 18.87s Wait for app to idle
t = 19.13s Tap "GrabTabCalendarNavigationIdentifier" Cell
t = 19.13s Wait for app to idle
t = 19.27s Find the "GrabTabCalendarNavigationIdentifier" Cell
t = 19.27s Snapshot accessibility hierarchy for com.mycompany.test
t = 19.43s Find: Descendants matching type Cell
t = 19.46s Find: Elements matching predicate '"GrabTabCalendarNavigationIdentifier" IN identifiers'
t = 19.46s Wait for app to idle
t = 19.60s Synthesize event
t = 20.00s Wait for app to idle
t = 21.16s Tap "CalendarNavigationButtonIdentifier" Button
t = 21.16s Wait for app to idle
t = 21.70s Find the "CalendarNavigationButtonIdentifier" Button
t = 21.70s Snapshot accessibility hierarchy for com.mycompany.test
t = 31.84s Assertion Failure: UI Testing Failure - Failed to get refreshed snapshot
<unknown>:0: error: -[CalendarUITest testWMCreateAndEWSReceiveMeeting] : UI Testing Failure - Failed to get refreshed snapshot
t = 31.85s Tear Down
Test Case '-[CalendarUITest testWMCreateAndEWSReceiveMeeting]' failed (31.856 seconds).
Expected Results:
UI Tests fails to get the snapshot of the application
Actual Results:
UI Tests should not fails with error
Version:
Xcode 7.2/7C68 & OS X 10.11.2 / 15C50
Comments
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!