UI Automation is a JavaScript library provided by Apple Inc, which can be used to perform automated test on real devices and on iOS Simulator. This framework is added to iOS SDK4.0. Using UI Automation, you can automate testing the application not only on simulator but also real device.
UIAutomation bring you these benefits:
UIAutomation instrument works from scripts, which are written in JavaScript. It simulates user events on target iOS application.