December 2018
Intermediate to advanced
414 pages
10h 19m
English
In Xcode 6, Apple released a framework based on XCTest for UI testing called XCUITest. Not only can we write UI tests as we do for unit testing, but we can also record the keystrokes while using the app. To activate it, we need to open the UI test case and select a test, moving the cursor in the body of any test function. Doing that, the Red button at the left bottom, becomes selectable and we can record the session:

Let's record a simple addition, as follows:
class RpnCalculatorUITests: XCTestCase { override func setUp() { continueAfterFailure = false XCUIApplication().launch() } func testAddition() { // Use recording ...Read now
Unlock full access