-
Notifications
You must be signed in to change notification settings - Fork 15
ios tutorial
vowei edited this page Aug 28, 2012
·
2 revisions
Current iQuery for iOS only support instruments test cases, we use following iOS app to demonstrate its usage:
Binary for iphone simulator: https://github.com/vowei/iQuery/tree/master/iOS/targetApp Source code:https://github.com/vowei/iQuery/tree/master/iOS/targetApp/Gestures
And you need download iQuery for iOS to start this tutorial: https://github.com/downloads/vowei/iQuery/iQuery%20for%20iOS.zip
Following the below steps to create your new test:
- launch instruments:
- and select Automation on "Choose a Template for the Trace Document" dialog.
- click "select target" dropbox on instruments dialog.
- and set target app to out sample target app - Gestures.app:
- the sample target app requires iOS 5 simulator, so you need explicitly set this requirement as following:
- then create a new test script in instruments:
- and type following code in the new script dialog:
- finally, click the run button on the bottom to execute the script, you should get result similar as this: