iOSApp -Monkey測試

來源:互聯網
上載者:User

標籤:

 IOS作業系統不像Android系統那麼方便,各種限制也比較多,目前我的建議還是直接在模擬器上執行monkey測試。如果需要在真機上面執行,可以參考文檔: http://testerhome.com/topics/2523

      本文介紹怎麼使用開源工具CrashMonkey進行IOS的monkey測試,步驟如下:      一、安裝測試環境
           (1)MAC OS           (2)XCode           (3)Ruby,至少1.8版本以上            Ruby的安裝方法見:http://blog.csdn.net/li_huifeng/article/details/44456925,大致一下幾 步:           1、安裝RVM:                 curl -L https://get.rvm.io | bash -s stable           2、載入RVM環境                  source ~/.rvm/scripts/rvm           3、檢查RVM安裝是否成功                  rvm -v           4、安裝Ruby環境                  rvm install 2.0.0           5、設定Ruby版本                 rvm 2.0.0 --default           6、重新設定Ruby的預設源                   gem source -r https://rubygems.org/                        gem source -a https://ruby.taobao.org           7、驗證是否重新設定成功                 gem sources -l       二、安裝CrashMonkey,參考連結:https://github.com/mokemokechicken/CrashMonkey          1、安裝命令:gem install crash_monkey --no-ri --no-rdoc       三、使用CrashMonkey          1、使用命令:crash_monkey -a  APP_NAME or APP_PATH -w  DEVICE        四、直接使用instruments命令執行monkey: 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測試

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

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.