XCTest Xcode 9.0 iOS API Differences

XCAbstractTest.h
Modified XCTest.name
Declaration
From@property (readonly, copy, nullable) NSString *name
To@property (readonly, copy, nonnull) NSString *name

XCTActivity.h
XCTAttachment.h
Added XCTImageQuality
XCTAttachmentLifetime.h
Added XCTAttachmentLifetime
XCTContext.h
XCTDarwinNotificationExpectation.h
Modified XCTDarwinNotificationExpectationHandler
Declaration
Fromtypedef BOOL (^XCTDarwinNotificationExpectationHandler)(void)
Totypedef BOOL (^XCTDarwinNotificationExpectationHandler)(void)

XCTestCase.h
Added XCTPerformanceMetric
Modified XCTestCase
Protocols
FromXCTWaiterDelegate
ToXCTActivity, XCTWaiterDelegate

Declaration
From+ (nonnull NSArray<NSInvocation *> *)testInvocations
To@property (class, readonly, copy, nonnull) NSArray<NSInvocation *> *testInvocations

Declaration
FromNSString *const _Nonnull XCTPerformanceMetric_WallClockTime
Toconst XCTPerformanceMetric _Nonnull XCTPerformanceMetric_WallClockTime

Declaration
From+ (nonnull NSArray<NSString *> *)defaultPerformanceMetrics
To@property (class, readonly, copy, nonnull) NSArray<XCTPerformanceMetric> *defaultPerformanceMetrics

Declaration
From- (void)measureMetrics:(nonnull NSArray<NSString *> *)metrics automaticallyStartMeasuring:(BOOL)automaticallyStartMeasuring forBlock:(nonnull void (^)(void))block
To- (void)measureMetrics:(nonnull NSArray<XCTPerformanceMetric> *)metrics automaticallyStartMeasuring:(BOOL)automaticallyStartMeasuring forBlock:(nonnull void (^)(void))block

Declaration
From+ (nonnull XCTestSuite *)defaultTestSuite
To@property (class, readonly, nonnull) XCTestSuite *defaultTestSuite

XCTestCase+AsynchronousTesting.h
Declaration
From- (nonnull XCTestExpectation *)expectationForNotification:(nonnull NSString *)notificationName object:(nullable id)objectToObserve handler:(nullable XCNotificationExpectationHandler)handler
To- (nonnull XCTestExpectation *)expectationForNotification:(nonnull NSNotificationName)notificationName object:(nullable id)objectToObserve handler:(nullable XCNotificationExpectationHandler)handler

Modified XCPredicateExpectationHandler
Declaration
Fromtypedef BOOL (^XCPredicateExpectationHandler)(void)
Totypedef BOOL (^XCPredicateExpectationHandler)(void)

XCTestDefines.h
Added #def XCT_UNAVAILABLE
XCTestObservationCenter.h
Declaration
From+ (nonnull XCTestObservationCenter *)sharedTestObservationCenter
To@property (class, readonly, nonnull) XCTestObservationCenter *sharedTestObservationCenter

XCTestSuite.h
XCTNSNotificationExpectation.h
Declaration
From- (nonnull instancetype)initWithName:(nonnull NSString *)notificationName object:(nullable id)object notificationCenter:(nonnull NSNotificationCenter *)notificationCenter
To- (nonnull instancetype)initWithName:(nonnull NSNotificationName)notificationName object:(nullable id)object notificationCenter:(nonnull NSNotificationCenter *)notificationCenter

Declaration
From- (nonnull instancetype)initWithName:(nonnull NSString *)notificationName object:(nonnull id)object
To- (nonnull instancetype)initWithName:(nonnull NSNotificationName)notificationName object:(nonnull id)object

Declaration
From- (nonnull instancetype)initWithName:(nonnull NSString *)notificationName
To- (nonnull instancetype)initWithName:(nonnull NSNotificationName)notificationName

Declaration
From@property (readonly, copy, nonnull) NSString *notificationName
To@property (readonly, copy, nonnull) NSNotificationName notificationName

XCUIApplication.h
Added XCUIApplicationState
XCUIDevice.h
Declaration
From+ (nonnull XCUIDevice *)sharedDevice
To@property (class, readonly, nonnull) XCUIDevice *sharedDevice

XCUIElement.h
Modified XCUIElement
Protocols
FromXCUIElementAttributes, XCUIElementTypeQueryProvider
ToXCUIElementAttributes, XCUIElementTypeQueryProvider, XCUIScreenshotProviding

XCUIElementTypeQueryProvider.h
XCUIElementTypes.h
XCUIKeyboardKeys.h
Added XCUIKeyboardKey
Declaration
FromNSString *const XCUIKeyboardKeyDelete
Toconst XCUIKeyboardKey XCUIKeyboardKeyDelete

Declaration
FromNSString *const XCUIKeyboardKeyReturn
Toconst XCUIKeyboardKey XCUIKeyboardKeyReturn

Declaration
FromNSString *const XCUIKeyboardKeyEnter
Toconst XCUIKeyboardKey XCUIKeyboardKeyEnter

Declaration
FromNSString *const XCUIKeyboardKeyTab
Toconst XCUIKeyboardKey XCUIKeyboardKeyTab

Declaration
FromNSString *const XCUIKeyboardKeySpace
Toconst XCUIKeyboardKey XCUIKeyboardKeySpace

Declaration
FromNSString *const XCUIKeyboardKeyEscape
Toconst XCUIKeyboardKey XCUIKeyboardKeyEscape

Declaration
FromNSString *const XCUIKeyboardKeyUpArrow
Toconst XCUIKeyboardKey XCUIKeyboardKeyUpArrow

Declaration
FromNSString *const XCUIKeyboardKeyDownArrow
Toconst XCUIKeyboardKey XCUIKeyboardKeyDownArrow

Declaration
FromNSString *const XCUIKeyboardKeyLeftArrow
Toconst XCUIKeyboardKey XCUIKeyboardKeyLeftArrow

Declaration
FromNSString *const XCUIKeyboardKeyRightArrow
Toconst XCUIKeyboardKey XCUIKeyboardKeyRightArrow

Declaration
FromNSString *const XCUIKeyboardKeyF1
Toconst XCUIKeyboardKey XCUIKeyboardKeyF1

Declaration
FromNSString *const XCUIKeyboardKeyF2
Toconst XCUIKeyboardKey XCUIKeyboardKeyF2

Declaration
FromNSString *const XCUIKeyboardKeyF3
Toconst XCUIKeyboardKey XCUIKeyboardKeyF3

Declaration
FromNSString *const XCUIKeyboardKeyF4
Toconst XCUIKeyboardKey XCUIKeyboardKeyF4

Declaration
FromNSString *const XCUIKeyboardKeyF5
Toconst XCUIKeyboardKey XCUIKeyboardKeyF5

Declaration
FromNSString *const XCUIKeyboardKeyF6
Toconst XCUIKeyboardKey XCUIKeyboardKeyF6

Declaration
FromNSString *const XCUIKeyboardKeyF7
Toconst XCUIKeyboardKey XCUIKeyboardKeyF7

Declaration
FromNSString *const XCUIKeyboardKeyF8
Toconst XCUIKeyboardKey XCUIKeyboardKeyF8

Declaration
FromNSString *const XCUIKeyboardKeyF9
Toconst XCUIKeyboardKey XCUIKeyboardKeyF9

Declaration
FromNSString *const XCUIKeyboardKeyF10
Toconst XCUIKeyboardKey XCUIKeyboardKeyF10

Declaration
FromNSString *const XCUIKeyboardKeyF11
Toconst XCUIKeyboardKey XCUIKeyboardKeyF11

Declaration
FromNSString *const XCUIKeyboardKeyF12
Toconst XCUIKeyboardKey XCUIKeyboardKeyF12

Declaration
FromNSString *const XCUIKeyboardKeyF13
Toconst XCUIKeyboardKey XCUIKeyboardKeyF13

Declaration
FromNSString *const XCUIKeyboardKeyF14
Toconst XCUIKeyboardKey XCUIKeyboardKeyF14

Declaration
FromNSString *const XCUIKeyboardKeyF15
Toconst XCUIKeyboardKey XCUIKeyboardKeyF15

Declaration
FromNSString *const XCUIKeyboardKeyF16
Toconst XCUIKeyboardKey XCUIKeyboardKeyF16

Declaration
FromNSString *const XCUIKeyboardKeyF17
Toconst XCUIKeyboardKey XCUIKeyboardKeyF17

Declaration
FromNSString *const XCUIKeyboardKeyF18
Toconst XCUIKeyboardKey XCUIKeyboardKeyF18

Declaration
FromNSString *const XCUIKeyboardKeyF19
Toconst XCUIKeyboardKey XCUIKeyboardKeyF19

Declaration
FromNSString *const XCUIKeyboardKeyForwardDelete
Toconst XCUIKeyboardKey XCUIKeyboardKeyForwardDelete

Declaration
FromNSString *const XCUIKeyboardKeyHome
Toconst XCUIKeyboardKey XCUIKeyboardKeyHome

Declaration
FromNSString *const XCUIKeyboardKeyEnd
Toconst XCUIKeyboardKey XCUIKeyboardKeyEnd

Declaration
FromNSString *const XCUIKeyboardKeyPageUp
Toconst XCUIKeyboardKey XCUIKeyboardKeyPageUp

Declaration
FromNSString *const XCUIKeyboardKeyPageDown
Toconst XCUIKeyboardKey XCUIKeyboardKeyPageDown

Declaration
FromNSString *const XCUIKeyboardKeyClear
Toconst XCUIKeyboardKey XCUIKeyboardKeyClear

Declaration
FromNSString *const XCUIKeyboardKeyHelp
Toconst XCUIKeyboardKey XCUIKeyboardKeyHelp

Declaration
FromNSString *const XCUIKeyboardKeyCapsLock
Toconst XCUIKeyboardKey XCUIKeyboardKeyCapsLock

Declaration
FromNSString *const XCUIKeyboardKeyShift
Toconst XCUIKeyboardKey XCUIKeyboardKeyShift

Declaration
FromNSString *const XCUIKeyboardKeyControl
Toconst XCUIKeyboardKey XCUIKeyboardKeyControl

Declaration
FromNSString *const XCUIKeyboardKeyOption
Toconst XCUIKeyboardKey XCUIKeyboardKeyOption

Declaration
FromNSString *const XCUIKeyboardKeyCommand
Toconst XCUIKeyboardKey XCUIKeyboardKeyCommand

Declaration
FromNSString *const XCUIKeyboardKeyRightShift
Toconst XCUIKeyboardKey XCUIKeyboardKeyRightShift

Declaration
FromNSString *const XCUIKeyboardKeyRightControl
Toconst XCUIKeyboardKey XCUIKeyboardKeyRightControl

Declaration
FromNSString *const XCUIKeyboardKeyRightOption
Toconst XCUIKeyboardKey XCUIKeyboardKeyRightOption

Declaration
FromNSString *const XCUIKeyboardKeyRightCommand
Toconst XCUIKeyboardKey XCUIKeyboardKeyRightCommand

Declaration
FromNSString *const XCUIKeyboardKeySecondaryFn
Toconst XCUIKeyboardKey XCUIKeyboardKeySecondaryFn

XCUIRemote.h
XCUIScreen.h
XCUIScreenshot.h
XCUIScreenshotProviding.h