XCTest Xcode 9.0 iOS API Differences

XCTActivity.h
Added XCTActivity
Added XCTActivity.name
Added -[XCTActivity addAttachment:]
XCTAttachment.h
Added XCTAttachment
Added -[XCTAttachment initWithUniformTypeIdentifier:name:payload:userInfo:]
Added +[XCTAttachment attachmentWithUniformTypeIdentifier:name:payload:userInfo:]
Added XCTAttachment.uniformTypeIdentifier
Added XCTAttachment.name
Added XCTAttachment.userInfo
Added XCTAttachment.lifetime
Added XCTImageQuality
Added XCTImageQualityOriginal
Added XCTImageQualityMedium
Added XCTImageQualityLow
Added XCTAttachment (ConvenienceInitializers)
Added +[XCTAttachment attachmentWithData:]
Added +[XCTAttachment attachmentWithData:uniformTypeIdentifier:]
Added +[XCTAttachment attachmentWithString:]
Added +[XCTAttachment attachmentWithArchivableObject:]
Added +[XCTAttachment attachmentWithArchivableObject:uniformTypeIdentifier:]
Added +[XCTAttachment attachmentWithPlistObject:]
Added +[XCTAttachment attachmentWithContentsOfFileAtURL:]
Added +[XCTAttachment attachmentWithContentsOfFileAtURL:uniformTypeIdentifier:]
Added +[XCTAttachment attachmentWithImage:]
Added +[XCTAttachment attachmentWithImage:quality:]
Added +[XCTAttachment attachmentWithScreenshot:]
Added +[XCTAttachment attachmentWithScreenshot:quality:]
XCTAttachmentLifetime.h
Added XCTAttachmentLifetime
Added XCTAttachmentLifetimeKeepAlways
Added XCTAttachmentLifetimeDeleteOnSuccess
XCTContext.h
Added XCTContext
Added +[XCTContext runActivityNamed:block:]
XCTestCase.h
Added -[XCTestCase addTeardownBlock:]
Added XCTPerformanceMetric
Modified +[XCTestCase testInvocations]
Declaration
From+ (nonnull NSArray<NSInvocation *> *)testInvocations
To@property (class, readonly, copy, nonnull) NSArray<NSInvocation *> *testInvocations

Modified XCTPerformanceMetric_WallClockTime
Declaration
FromNSString *const _Nonnull XCTPerformanceMetric_WallClockTime
Toconst XCTPerformanceMetric _Nonnull XCTPerformanceMetric_WallClockTime

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

Modified -[XCTestCase measureMetrics:automaticallyStartMeasuring:forBlock:]
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

Modified +[XCTestCase defaultTestSuite]
Declaration
From+ (nonnull XCTestSuite *)defaultTestSuite
To@property (class, readonly, nonnull) XCTestSuite *defaultTestSuite

XCTestCase+AsynchronousTesting.h
Modified -[XCTestCase expectationForNotification:object:handler:]
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

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

XCTestSuite.h
Added XCTestSuite.defaultTestSuite
XCTNSNotificationExpectation.h
Modified -[XCTNSNotificationExpectation initWithName:object:notificationCenter:]
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

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

Modified -[XCTNSNotificationExpectation initWithName:]
Declaration
From- (nonnull instancetype)initWithName:(nonnull NSString *)notificationName
To- (nonnull instancetype)initWithName:(nonnull NSNotificationName)notificationName

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

XCUIApplication.h
Added XCUIApplicationState
Added XCUIApplicationStateUnknown
Added XCUIApplicationStateNotRunning
Added XCUIApplicationStateRunningBackgroundSuspended
Added XCUIApplicationStateRunningBackground
Added XCUIApplicationStateRunningForeground
Added -[XCUIApplication init]
Added +[XCUIApplication new]
Added -[XCUIApplication initWithBundleIdentifier:]
Added -[XCUIApplication activate]
Added XCUIApplication.state
XCUIDevice.h
Modified +[XCUIDevice sharedDevice]
Declaration
From+ (nonnull XCUIDevice *)sharedDevice
To@property (class, readonly, nonnull) XCUIDevice *sharedDevice

XCUIElement.h
Added -[XCUIElement waitForExistenceWithTimeout:]
Added XCUIElement (XCUIScreenshotProviding)
XCUIElementTypeQueryProvider.h
Added XCUIElementTypeQueryProvider.statusItems
Added XCUIElementTypeQueryProvider.firstMatch
XCUIElementTypes.h
Added XCUIElementTypeStatusItem
XCUIKeyboardKeys.h
Added XCUIKeyboardKey
Modified XCUIKeyboardKeyDelete
Declaration
FromNSString *const XCUIKeyboardKeyDelete
Toconst XCUIKeyboardKey XCUIKeyboardKeyDelete

Modified XCUIKeyboardKeyReturn
Declaration
FromNSString *const XCUIKeyboardKeyReturn
Toconst XCUIKeyboardKey XCUIKeyboardKeyReturn

Modified XCUIKeyboardKeyEnter
Declaration
FromNSString *const XCUIKeyboardKeyEnter
Toconst XCUIKeyboardKey XCUIKeyboardKeyEnter

Modified XCUIKeyboardKeyTab
Declaration
FromNSString *const XCUIKeyboardKeyTab
Toconst XCUIKeyboardKey XCUIKeyboardKeyTab

Modified XCUIKeyboardKeySpace
Declaration
FromNSString *const XCUIKeyboardKeySpace
Toconst XCUIKeyboardKey XCUIKeyboardKeySpace

Modified XCUIKeyboardKeyEscape
Declaration
FromNSString *const XCUIKeyboardKeyEscape
Toconst XCUIKeyboardKey XCUIKeyboardKeyEscape

Modified XCUIKeyboardKeyUpArrow
Declaration
FromNSString *const XCUIKeyboardKeyUpArrow
Toconst XCUIKeyboardKey XCUIKeyboardKeyUpArrow

Modified XCUIKeyboardKeyDownArrow
Declaration
FromNSString *const XCUIKeyboardKeyDownArrow
Toconst XCUIKeyboardKey XCUIKeyboardKeyDownArrow

Modified XCUIKeyboardKeyLeftArrow
Declaration
FromNSString *const XCUIKeyboardKeyLeftArrow
Toconst XCUIKeyboardKey XCUIKeyboardKeyLeftArrow

Modified XCUIKeyboardKeyRightArrow
Declaration
FromNSString *const XCUIKeyboardKeyRightArrow
Toconst XCUIKeyboardKey XCUIKeyboardKeyRightArrow

Modified XCUIKeyboardKeyF1
Declaration
FromNSString *const XCUIKeyboardKeyF1
Toconst XCUIKeyboardKey XCUIKeyboardKeyF1

Modified XCUIKeyboardKeyF2
Declaration
FromNSString *const XCUIKeyboardKeyF2
Toconst XCUIKeyboardKey XCUIKeyboardKeyF2

Modified XCUIKeyboardKeyF3
Declaration
FromNSString *const XCUIKeyboardKeyF3
Toconst XCUIKeyboardKey XCUIKeyboardKeyF3

Modified XCUIKeyboardKeyF4
Declaration
FromNSString *const XCUIKeyboardKeyF4
Toconst XCUIKeyboardKey XCUIKeyboardKeyF4

Modified XCUIKeyboardKeyF5
Declaration
FromNSString *const XCUIKeyboardKeyF5
Toconst XCUIKeyboardKey XCUIKeyboardKeyF5

Modified XCUIKeyboardKeyF6
Declaration
FromNSString *const XCUIKeyboardKeyF6
Toconst XCUIKeyboardKey XCUIKeyboardKeyF6

Modified XCUIKeyboardKeyF7
Declaration
FromNSString *const XCUIKeyboardKeyF7
Toconst XCUIKeyboardKey XCUIKeyboardKeyF7

Modified XCUIKeyboardKeyF8
Declaration
FromNSString *const XCUIKeyboardKeyF8
Toconst XCUIKeyboardKey XCUIKeyboardKeyF8

Modified XCUIKeyboardKeyF9
Declaration
FromNSString *const XCUIKeyboardKeyF9
Toconst XCUIKeyboardKey XCUIKeyboardKeyF9

Modified XCUIKeyboardKeyF10
Declaration
FromNSString *const XCUIKeyboardKeyF10
Toconst XCUIKeyboardKey XCUIKeyboardKeyF10

Modified XCUIKeyboardKeyF11
Declaration
FromNSString *const XCUIKeyboardKeyF11
Toconst XCUIKeyboardKey XCUIKeyboardKeyF11

Modified XCUIKeyboardKeyF12
Declaration
FromNSString *const XCUIKeyboardKeyF12
Toconst XCUIKeyboardKey XCUIKeyboardKeyF12

Modified XCUIKeyboardKeyF13
Declaration
FromNSString *const XCUIKeyboardKeyF13
Toconst XCUIKeyboardKey XCUIKeyboardKeyF13

Modified XCUIKeyboardKeyF14
Declaration
FromNSString *const XCUIKeyboardKeyF14
Toconst XCUIKeyboardKey XCUIKeyboardKeyF14

Modified XCUIKeyboardKeyF15
Declaration
FromNSString *const XCUIKeyboardKeyF15
Toconst XCUIKeyboardKey XCUIKeyboardKeyF15

Modified XCUIKeyboardKeyF16
Declaration
FromNSString *const XCUIKeyboardKeyF16
Toconst XCUIKeyboardKey XCUIKeyboardKeyF16

Modified XCUIKeyboardKeyF17
Declaration
FromNSString *const XCUIKeyboardKeyF17
Toconst XCUIKeyboardKey XCUIKeyboardKeyF17

Modified XCUIKeyboardKeyF18
Declaration
FromNSString *const XCUIKeyboardKeyF18
Toconst XCUIKeyboardKey XCUIKeyboardKeyF18

Modified XCUIKeyboardKeyF19
Declaration
FromNSString *const XCUIKeyboardKeyF19
Toconst XCUIKeyboardKey XCUIKeyboardKeyF19

Modified XCUIKeyboardKeyForwardDelete
Declaration
FromNSString *const XCUIKeyboardKeyForwardDelete
Toconst XCUIKeyboardKey XCUIKeyboardKeyForwardDelete

Modified XCUIKeyboardKeyHome
Declaration
FromNSString *const XCUIKeyboardKeyHome
Toconst XCUIKeyboardKey XCUIKeyboardKeyHome

Modified XCUIKeyboardKeyEnd
Declaration
FromNSString *const XCUIKeyboardKeyEnd
Toconst XCUIKeyboardKey XCUIKeyboardKeyEnd

Modified XCUIKeyboardKeyPageUp
Declaration
FromNSString *const XCUIKeyboardKeyPageUp
Toconst XCUIKeyboardKey XCUIKeyboardKeyPageUp

Modified XCUIKeyboardKeyPageDown
Declaration
FromNSString *const XCUIKeyboardKeyPageDown
Toconst XCUIKeyboardKey XCUIKeyboardKeyPageDown

Modified XCUIKeyboardKeyClear
Declaration
FromNSString *const XCUIKeyboardKeyClear
Toconst XCUIKeyboardKey XCUIKeyboardKeyClear

Modified XCUIKeyboardKeyHelp
Declaration
FromNSString *const XCUIKeyboardKeyHelp
Toconst XCUIKeyboardKey XCUIKeyboardKeyHelp

Modified XCUIKeyboardKeyCapsLock
Declaration
FromNSString *const XCUIKeyboardKeyCapsLock
Toconst XCUIKeyboardKey XCUIKeyboardKeyCapsLock

Modified XCUIKeyboardKeyShift
Declaration
FromNSString *const XCUIKeyboardKeyShift
Toconst XCUIKeyboardKey XCUIKeyboardKeyShift

Modified XCUIKeyboardKeyControl
Declaration
FromNSString *const XCUIKeyboardKeyControl
Toconst XCUIKeyboardKey XCUIKeyboardKeyControl

Modified XCUIKeyboardKeyOption
Declaration
FromNSString *const XCUIKeyboardKeyOption
Toconst XCUIKeyboardKey XCUIKeyboardKeyOption

Modified XCUIKeyboardKeyCommand
Declaration
FromNSString *const XCUIKeyboardKeyCommand
Toconst XCUIKeyboardKey XCUIKeyboardKeyCommand

Modified XCUIKeyboardKeyRightShift
Declaration
FromNSString *const XCUIKeyboardKeyRightShift
Toconst XCUIKeyboardKey XCUIKeyboardKeyRightShift

Modified XCUIKeyboardKeyRightControl
Declaration
FromNSString *const XCUIKeyboardKeyRightControl
Toconst XCUIKeyboardKey XCUIKeyboardKeyRightControl

Modified XCUIKeyboardKeyRightOption
Declaration
FromNSString *const XCUIKeyboardKeyRightOption
Toconst XCUIKeyboardKey XCUIKeyboardKeyRightOption

Modified XCUIKeyboardKeyRightCommand
Declaration
FromNSString *const XCUIKeyboardKeyRightCommand
Toconst XCUIKeyboardKey XCUIKeyboardKeyRightCommand

Modified XCUIKeyboardKeySecondaryFn
Declaration
FromNSString *const XCUIKeyboardKeySecondaryFn
Toconst XCUIKeyboardKey XCUIKeyboardKeySecondaryFn

XCUIRemote.h
Added XCUIRemoteButtonHome
XCUIScreen.h
Added XCUIScreen
Added XCUIScreen.mainScreen
Added XCUIScreen.screens
XCUIScreenshot.h
Added XCUIScreenshot
Added XCUIScreenshot.image
Added XCUIScreenshot.PNGRepresentation
XCUIScreenshotProviding.h
Added XCUIScreenshotProviding
Added -[XCUIScreenshotProviding screenshot]