iOS OS is not as convenient as Android, and there are a lot of restrictions, so my advice is to perform monkey tests directly on the emulator. If you need to perform on a real machine, refer to the documentation: http://testerhome.com/topics/2523
This article describes how to use the Open Source Tool Crashmonkey for iOS monkey testing in the following steps: First, install the test environment
(1) MAC os (2) xcode (3) Ruby, at least 1.8 version of ruby installation method see:/HTTP blog.csdn.net/li_huifeng/article/details/44456925, roughly a few steps: 1, installation rvm: curl-l Https://get.rvm.io | Bash-s stable 2, loading RVM environment source ~/.rvm/scripts /rvm 3, check RVM installation is successful rvm-v 4, install ruby environment              RVM Install 2.0.0 5, set ruby version           RVM 2.0.0--default 6, reset Ruby's default source gem source-r https://rubygems.org/ gem source-a Https://ruby.taobao.org 7, Verify that the success is reset gem SOURCES-L&NBsp; Second, installation Crashmonkey, reference link: https://github.com/mokemokechicken/CrashMonkey 1, installation command: Gem install Crash_monkey--no-ri--no-rdoc Third, use crashmonkey 1, using command:crash_monkey-a app_name or App_path-WDEVICE Iv. execute the monkey directly using the instruments command:instruments-t/applications/xcode.app/contents/applications/instruments.app/contents/plugins/ Automationinstrument.xrplugin/contents/resources/automation.tracetemplate-w Ee564527-433a-42e3-92b8-f73a3ec0c8e7/users/xiehao/temp/mybportal.app-e uiascript/users/xiehao/program/ Crashmonkey/bin/crash_monkey_result/uiautomonkey.js-e Uiaresultspath/users/xiehao/program/crashmonkey/bin/crash _monkey_result
Iosapp-monkey Test