Giter VIP home page Giter VIP logo

xc-auto-monkey's Introduction

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

xc-auto-monkey's People

Contributors

donaldhu avatar

Watchers

James Cloos avatar yhlin avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.