/xc-auto-monkey

Blazingly fast monkey to stress test your iOS application

Primary LanguageObjective-CMIT LicenseMIT

XC AutoMonkey

Blazingly fast monkey to stress test your iOS application

Installation

  1. In Xcode, create a new target with template iOS UI Testing Bundle (File → New → Target → iOS UI Testing Bundle)

Step 1

2. Add [MonkeyUITests.m](https://github.com/donaldhu/xc-auto-monkey/blob/master/MonkeyUITests.m) into the new UI test target.

Step 2a

3. Run the monkey test by running your project tests (`Command(⌘) + U`)

Configuration

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;

Coming Soon

  • 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