New Instruments in Xcode 4
The instruments application that comes with Xcode contains a wide range of built-in instruments to make your job easier and to gather and display data for one or more processes. In Xcode 4, a collection of new instruments has been added and these are explained below.
The Automation instrument allows you to automate user interface tests of your iOS application that are guided by your test scripts which exercise the user interface elements of your application, allowing you to log the results for your analysis at a later time.
As you can see that using this fantastic Automation instrument, can simulate the many user actions supported by the devices that support multitasking and are running iOS 4.0 or later. ...