Skip to content

A framework for doing randomised UI testing of iOS apps

License

Notifications You must be signed in to change notification settings

jpwang1208/SwiftMonkey

Repository files navigation

SwiftMonkey

This is a framework for generating randomised user input in iOS apps. This kind of monkey testing is useful for stress-testing apps and finding rare crashes.

There is a related project, SwiftMonkeyPaws, which provides visualisation of the generated events. This greatly increases the usefulness of the randomised testing, as you can see what touches caused any crash you may encounter.

Requirements

SwiftMonkey uses Swift 3.0. It has no other dependencies other than iOS itself. Pairing it with the SwiftMonkeyPaws framework is a good idea, but not required.

Usage

To be written.

TODO

  • Add simplified API for sane default settings.
  • Add randomised testing using public XCTest APIs.
    • Find clickable view and click them directly instead of clicking random locations, to compensate for the slow event generation.
  • Once Swift Package Manager has iOS support, update project to support it properly.

Contact

This software is written by Dag Ågren ([email protected]) for Zalando SE.

Bug reports and feature requests are more likely to be addressed if posted as issues here on GitHub.

License

The MIT License (MIT) Copyright © 2016 Zalando SE, https://tech.zalando.com

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

About

A framework for doing randomised UI testing of iOS apps

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Swift 97.1%
  • Ruby 2.9%