https://github.com/drptbl/ocmonkey
Monkey Testing for iOS
https://github.com/drptbl/ocmonkey
Last synced: about 1 year ago
JSON representation
Monkey Testing for iOS
- Host: GitHub
- URL: https://github.com/drptbl/ocmonkey
- Owner: drptbl
- Created: 2017-03-17T10:24:50.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2017-03-02T17:16:57.000Z (over 9 years ago)
- Last Synced: 2025-04-04T09:08:50.401Z (about 1 year ago)
- Language: Objective-C
- Homepage:
- Size: 56.6 KB
- Stars: 4
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# OCMonkey
Monkey Testing for iOS
## Overview
Inspired from [SwiftMonkey](https://github.com/zalando/SwiftMonkey), written in Objective-C, but most importantly, OCMonkey is totally irrelevant to your test target! In other words, you don't have to modify your app's project.
## Installation
Could not be more simple. No other requirement.
## Requirements
iOS version: >= 9.0
Support both device and simulators.
If you were to run monkey on real device rather than simulators, you must configure ```Code Signing``` and ```Mobile Provisioning Profiles``` settings by your self. You may also need to modify the ```bundleID``` of target ```MonkeyRunner```.
### Usage
The first parameter is the bundleID of your tested app.
The second parameter is the events count for the monkey.
All done. Run the XCUITest via ```Command+Shift+U```. Enjoy yourselfQ
```
// MonkeyRunner.m
[[[Monkey alloc] initWithBundleID:@"com.apple.Health"] run:100];
```
### TODO
* Support more types of monkey action
* Action bases on elements rather than random coordinates on screen
* Traverse Algorithm to perform a quick coverage
* Support callbacks