Inherits from KIFTestActor : NSObject
Declared in KIFSystemTestActor.h

Tasks

Instance Methods

captureScreenshotWithDescription:

- (void)captureScreenshotWithDescription:(NSString *)description
Discussion

This step will fail if the @c KIF_SCREENSHOTS environment variable is not set or if the screenshot cannot be written to disk.

Parameters

description

A description to use when writing the file to disk.

Declared In

KIFSystemTestActor.h

simulateDeviceRotationToOrientation:

- (void)simulateDeviceRotationToOrientation:(UIDeviceOrientation)orientation
Discussion

The first time this method is called, it will be from the device’s natural orientation to the orientation described.

Parameters

orientation

The desired orientation.

Declared In

KIFSystemTestActor.h

simulateMemoryWarning

Simulates a memory warning.

- (void)simulateMemoryWarning

Declared In

KIFSystemTestActor.h

waitForApplicationToOpenAnyURLWhileExecutingBlock:returning:

Waits for the application to request any URL while executing a block.

- (void)waitForApplicationToOpenAnyURLWhileExecutingBlock:(void ( ^ ) ( ))block returning:(BOOL)returnValue

Parameters

block

The block of code to be executed.

returnValue

The value to return from @c [UIApplication openURL:].

Declared In

KIFSystemTestActor.h

waitForApplicationToOpenURL:whileExecutingBlock:returning:

Waits for the application to request a specific URL while executing a block.

- (void)waitForApplicationToOpenURL:(NSString *)URLString whileExecutingBlock:(void ( ^ ) ( ))block returning:(BOOL)returnValue

Parameters

URLString

The absolute string representation of the URL to detect.

block

The block of code to be executed.

returnValue

The value to return from @c [UIApplication openURL:].

Declared In

KIFSystemTestActor.h

waitForApplicationToOpenURLWithScheme:whileExecutingBlock:returning:

Waits for the application to request any URL with the given URL Scheme while executing a block.

- (void)waitForApplicationToOpenURLWithScheme:(NSString *)URLScheme whileExecutingBlock:(void ( ^ ) ( ))block returning:(BOOL)returnValue

Parameters

URLScheme

The scheme component of the URL to detect.

block

The block of code to be executed.

returnValue

The value to return from @c [UIApplication openURL:].

Declared In

KIFSystemTestActor.h

waitForNotificationName:object:

- (NSNotification *)waitForNotificationName:(NSString *)name object:(id)object
Discussion

Useful when a test requires an asynchronous task to complete, especially when that task does not trigger a visible change in the view hierarchy.

Parameters

name

The name of the NSNotification.

object

The object to which the step should listen. Nil value will listen to all objects.

Return Value

The detected NSNotification.

Declared In

KIFSystemTestActor.h

waitForNotificationName:object:whileExecutingBlock:

- (NSNotification *)waitForNotificationName:(NSString *)name object:(id)object whileExecutingBlock:(void ( ^ ) ( ))block
Discussion

Useful when step execution causes a notification to be emitted, but executes too quickly for waitForNotificationName: to observe it. An observer will be registered for the notification before the block is executed.

Parameters

name

The name of the NSNotification.

object

The object to which the step should listen. Nil value will listen to all objects.

block

The block of code to be executed.

Return Value

The detected NSNotification.

Declared In

KIFSystemTestActor.h