Inherits from NSObject
Declared in KIFTestActor.h

Tasks

Properties

animationWaitingTimeout

@property (nonatomic) NSTimeInterval animationWaitingTimeout

delegate

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

executionBlockTimeout

@property (nonatomic) NSTimeInterval executionBlockTimeout

file

@property (strong, 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

setStepDelay:

+ (void)setStepDelay:(NSTimeInterval)newStepDelay
Discussion

@method setStepDelay:

Declared In

KIFTestActor.h

stepDelay

+ (NSTimeInterval)stepDelay
Discussion

@method stepDelay

To change the default value of the step delay property, call setStepDelay: with a different value.

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

tryRunningBlock:complete:timeout:error:

- (BOOL)tryRunningBlock:(KIFTestExecutionBlock)executionBlock complete:(KIFTestCompletionBlock)completionBlock timeout:(NSTimeInterval)timeout error:(out NSError **)error
Discussion

Attempts to run the test block similar to runBlock:complete:timeout: but does not halt the test on completion, instead returning NO on failure and providing an error description to the optional error parameter.

Declared In

KIFTestActor.h

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

timeInterval

The number of seconds to wait before returning.

Declared In

KIFTestActor.h