User Interface Testing by Apple

On this year’s WWDC 15 Apple presented a new way of user interface testing within Xcode 7. With the new version of Xcode Apple introduces user interface testing as a brand new feature of the existing XCText framework. The great thing about the new ui testing approach is that it is an extension to the existing APIs and concepts in XCTest. Developers who are familiar with XCode’s testing features will have no problems to adopt ui testing in their daily working life.

Apple introduced UI recording to Xcode where developers and testers are able to capture the current activities on the iOS simulator directly into the test method. Also interaction with the app will be recorded and added as test steps. The tool is using the accessibility labels in order to recognize the elements within the app. UI testing can be used with Swift and Objective-C, there is no need for JavaScript testing anymore. However, UI testing is only working with iOS9 devices.

If you want to see the new user interface testing in action you can either watch this general WWDC video: https://developer.apple.com/videos/wwdc/2015/?id=102 (the testing part starts at 1h:20min) or the more detailed one here: https://developer.apple.com/videos/wwdc/2015/?id=406.

If you want to try user interface testing, download the Xcode 7 beta version from here.

Besides the user interface testing, Apple also introduced code coverage within Xcode as well as correctness and performance. More information about the new features of Xcode 7 and the testing topics can be found on the Apple page.

If you are interested in all WWDC 2015 videos check this link.

#HappyTesting

Image Source: http://i0.wp.com/venturebeat.com/wp-content/uploads/2015/06/Screen-Shot-2015-06-08-at-2.12.01-PM1.png