Inherits from NSObject
Declared in KIFTestActor.h

Tasks

Properties

delegate

@property (nonatomic, readonly) id<KIFTestActorDelegate> delegate

executionBlockTimeout

@property (nonatomic) NSTimeInterval executionBlockTimeout

file

@property (nonatomic, readonly) NSString *file

line

@property (nonatomic, readonly) NSInteger line

Class Methods

actorInFile:atLine:delegate:

+ (instancetype)actorInFile:(NSString *)file atLine:(NSInteger)line delegate:(id<KIFTestActorDelegate>)delegate

defaultTimeout

+ (NSTimeInterval)defaultTimeout
Discussion

@method defaultTimeout

To change the default value of the timeout property, call setDefaultTimeout: with a different value.

Declared In

KIFTestActor.h

setDefaultTimeout:

+ (void)setDefaultTimeout:(NSTimeInterval)newDefaultTimeout
Discussion

@method setDefaultTimeout:

Declared In

KIFTestActor.h

Instance Methods

fail

- (void)fail
Discussion

Mostly useful for test debugging or as a placeholder when building new tests.

Declared In

KIFTestActor.h

failWithError:stopTest:

- (void)failWithError:(NSError *)error stopTest:(BOOL)stopTest

runBlock:

- (void)runBlock:(KIFTestExecutionBlock)executionBlock

runBlock:complete:

- (void)runBlock:(KIFTestExecutionBlock)executionBlock complete:(KIFTestCompletionBlock)completionBlock

runBlock:complete:timeout:

- (void)runBlock:(KIFTestExecutionBlock)executionBlock complete:(KIFTestCompletionBlock)completionBlock timeout:(NSTimeInterval)timeout

runBlock:timeout:

- (void)runBlock:(KIFTestExecutionBlock)executionBlock timeout:(NSTimeInterval)timeout

usingTimeout:

- (instancetype)usingTimeout:(NSTimeInterval)executionBlockTimeout

waitForTimeInterval:

- (void)waitForTimeInterval:(NSTimeInterval)timeInterval
Discussion

In general when waiting for the app to get into a known state, it’s better to use -waitForTappableViewWithAccessibilityLabel:, however this step may be useful in some situations as well.

Parameters

interval

The number of seconds to wait before returning.

Declared In

KIFTestActor.h