Skip to content
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:

  1. launch instruments: launch instruments
  2. and select Automation on "Choose a Template for the Trace Document" dialog. select automation
  3. click "select target" dropbox on instruments dialog. choose target
  4. and set target app to out sample target app - Gestures.app: choose sample target app
  5. the sample target app requires iOS 5 simulator, so you need explicitly set this requirement as following: set iOS 5
  6. then create a new test script in instruments: create new script
  7. and type following code in the new script dialog: sample test code
  8. finally, click the run button on the bottom to execute the script, you should get result similar as this: execution result
Clone this wiki locally