Monkey for IOS

Source: Internet
Author: User

Crashmonkey4ios Introduction

    1. Support for real-machine testing, simulator testing
    2. Supports collection system log (systemlog), Crash log (crashlog),instrument behavior log
    3. Supports test reports and plots behavioral trajectories
    4. Support Test Equipment Information collection
    5. Using the latest version of Uiautomonkey, UI Holes Add the Application Not Repsonding ("ANR") processing with the custom.js as the entry script.
    6. Join tuneup Dependency
    7. Modify the policies in Uiautomonkey.js, for each event action
    8. Support test execution in the background, automatic recovery (test will not block)

First, environmental installation

1. Installing Homebrew

1 " $ (curl-fssl https://raw.githubusercontent.com/Homebrew/install/master/install) "

2. Installation dependencies

1 Brew Install Libimobiledevice 2 Brew Install-HEAD ideviceinstaller3Brew install ImageMagick4 sudo gem Install Smart_monkey #终端下直接以 -a app_name -w device的形式跑 

Second, install the app on the iOS simulator

Currently Crashmonkey4ios does not automatically start the function of the simulator, it is necessary to confirm that the device under test (including the simulator) has been started and stay on the desktop, such as in the Lock screen interface please first unlock

1. Start the emulator from the command line

1 ' IPhone 6 Plus '

2. Install the app in the simulator

1 xcrun simctl Install Booted/users/kz/documents/join10.app

(Xcrun This command actually has many more advanced play, through Xcrun--help can learn and comprehend by oneself)

Three, parameter description

1-A: Bundleid that points to the program under test (not default). e.g.-a Com.mytest.app2-W: pointing to the udid of the test device, you can view the device ID by $instruments-s devices, and if default it points to the first device (emulator or real machine) such as:-W 26701a3a5bc17038ca0465186407b912375b35a73The number of executions of the-n:monkey test, which defaults to 1 times. E.g.-n34-D: Test report address, default to the current directory under the Smart_monkey_result folder. such as:-D ~/my-monkey-test-result5-T: Execution time in seconds. such as:-T -6-S: the. dsym file that points to the app under test, and if crash is present, the parsing crash is clear. such as:-s Testapp.dsym7-C: Custom Configuration set path, parameters must be directory, directory must contain custom.js, if use handler, directory under the name of a folder named Handler, for the relevant files. such as:-c/my/path/custom_cfg8 9 If you use Custom_cfg, you must follow the following directory structure:Ten  One custom_cfg A ├──custom.js - └──handler - ├──buttonhandler.js the └──wbscrollviewbuttonhandler.js ---Event-number: Defines the total number of events for the Monkey test, which defaults to 50. such as:--Event-number - ---compress-result: Compress the images captured during the test to save space overhead. such as:--compress-result -% ---detail-count: Defines the total number of events recorded in the report details, which defaults to 50, which shows the most recent 50 random events in the report, and operates as a schematic drawing. such as:--detail-count - +--show-config: Prints the current configuration information, which is custom.js. such as:--show-Config ---drop-useless-img: Remove the remainder shown in the report to save space overhead, e.g., a round of monkey test output 100, parameter--detail-count set to 20, Then using--DROP-USELESS-IMG will delete the remaining 80 sheets. such as:--drop-useless-img +--list-app: Prints the currently connected real machine and the app installed in the simulator. such as:--list-app A--list-devices: Prints all currently available devices. such as:--list-Devices at--reset-ios-sim: Restart simulator. such as:--reset-ios-Sim ---version: Prints the version number of the Smart_monkey. such as:--version

Monkey for IOS

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.