自動(dòng)化測試主要有測試數(shù)據(jù)和測試ui兩部分組成
以下為官方資料
Instrument自帶的automation
https://developer.apple.com/library/mac/documentation/DeveloperTools/Conceptual/InstrumentsUserGuide/UIAutomation.html#//apple_ref/doc/uid/TP40004652-CH78-SW1
UI Automation是Apple官方提供的UI自動(dòng)化測試的解決方法,雖然直接使用非常不爽颓影,但是還不得不說购裙。雖然不好用哮兰,但是作為一些工具的底層實(shí)現(xiàn)還是需要了解的。官方教程和相關(guān)API文檔可以方便查閱
ios9引入的UI Testing
https://developer.apple.com/library/ios/documentation/ToolsLanguages/Conceptual/Xcode_Overview/RecordingUITests.html
谷歌開源的測試工具EarlGrey?
https://github.com/google/EarlGrey?
谷歌自己的ios app測試工具