Automated Testing of iOS 6 State Preservation and Restoration
Asked Answered
W

1

7

I'm updating an app to use the new state preservation and restoration functionality in iOS 6. As far as I can tell the best guidance on testing this in apps involves doing it manually (e.g. http://www.absoluteripple.com/1/post/2012/09/ios-6-state-preservation-and-restoration.html ).

Are there any ways to do automated testing of preserving and restoring state?

Wherever answered 10/1, 2013 at 8:1 Comment(0)
D
1

Aside from manually running it as the link you provided specifies—or using something like the UI Automation instrument—your best bet is to test the integration points as units. Instead of testing the entire system, test the individual methods you implement to ensure they interact with UIKit properly. Otherwise, you’re just testing that Apple’s code behaves consistently.

For new OS versions, you’ll need to go in and test them holistically, but that’s much less often than, say, every commit.

Diaphony answered 28/2, 2014 at 4:42 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.