You can use the Automation instrument to automate user interface tests in your iOS app through test scripts that you write. These scripts run outside of your app ...
developer.apple.com