Question

Is there any way to record and then play all UIEvents of UIApplication?
Main idea is to record testing scenario and then play it and compare results.

I have managed to get all app events after subclassing UIApplication, but still I cant play them with any delay.

@interface MyApplication : UIApplication
@end

@implementation MyApplication

(void)sendEvent:(UIEvent*)event
{
    [super performSelector:@selector(sendEvent:) withObject:event afterDelay:0.0];  // nothing happens
}
Was it helpful?

Solution 2

So I found solution https://github.com/square/KIF contains UIView-KIFAdditions with method that provides opportunity to send a touch event

also this links may be usefull How to send a touch event to iPhone OS? Getting reference to the top-most view/window in iOS application

OTHER TIPS

You can make test scenario using:

Cucumber

KIF

or something else test frameworks.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top