iOS UI
Automation
    using
Instruments
Greener.Chen@waveface.com
iOS Newbie
   Greener
Xcode
Instruments
 Javascript
    Tool
Preparation
 during construction stage
Element Name
makes you happy on UI automation
Solution 1
accessibilityLable property of your
   UIViews in Interface Builder
Example code ?
google it yourself
          Solution 2
set isAccessibilityElement and
  accessibilityLable property
       manually in code
Write test code
     Ready? Go!
●UIATarget
 ○UIAApplication
  ■UIAWindow
    ■UIANavigationBar
     ■UIAButton
    ■UIAScrollView

   target = UIATarget.localTarget();
   app = target.frontMostApp();
   mainWindow = app.mainWindow();
logElementTree()
   display element hierarchy
         in instruments
tap()
Your execution steps
if (cell.isValid()) {
    UIALogger.logPass(testName);
}
else {
    UIALogger.logFail(testName);
}
          Validate the result
UIALogger.logMessage()
  UIALogger.logStart()
  UIALogger.logPass()
  UIALogger.logFail()
     display log messages
         in instruments
UIAutomation Reference
  Instrument User Guide
Automating User Interface
 Testing with Instruments

         Reference

iOS UI Automation