Blazingly fast monkey to stress test your iOS application
- In Xcode, create a new target with template
iOS UI Testing Bundle
(File → New → Target → iOS UI Testing Bundle
)
At the top of MonkeyUITests.m, there are some configuration settings:
static NSTimeInterval const XCMonkeyEventDelay = 0.1; // In seconds
// Weights control the probability of the monkey performing an action
// A heigher weights results in a higher probability
static NSUInteger const XCMonkeyEventWeightTap = 10;
static NSUInteger const XCMonkeyEventWeightPan = 10;
- New gestures and events
- Orientation
- Pinch open and close
- Volume up and down
- Multiple taps
- Lock
- Background and foreground
- Improved device support for not triggering control and notification centers
- Time and event count passing test conditions