5

What is the best way to do automated UI testing on the iPhone?

___ is to iPhone as Selenium is to web apps

Pepe
  • 6,360
  • 5
  • 27
  • 29
user128807
  • 10,447
  • 17
  • 53
  • 72
  • 2
    In the future I would phrase your question titles differently. Remember that this is a QA site and people search on titles... As helpful as the answer to this may be, it's diminished if people can't find it. – Matthew May 06 '11 at 20:43
  • Your question is quite vague, Please be more specif on what you're testing, is it native apps? or Mobile Web? – Juan Gomez May 06 '11 at 20:44
  • This was closed due to the specific wording (which I think is fine, myself), but I believe it duplicates what was asked here: [Is there a good tutorial on cocoa touch automated UI testing?](http://stackoverflow.com/questions/5393190/is-there-a-good-tutorial-on-cocoa-touch-automated-ui-testing), where you might find some resources that answer your question. – Brad Larson May 09 '11 at 17:28

1 Answers1

2

There's in-built SDK support for automated UI testing via UIAutomation:

http://developer.apple.com/library/ios/#documentation/DeveloperTools/Reference/UIAutomationRef/Introduction/Introduction.html

Write your tests in JavaScript, and execute them via instruments. The link above should get you started.

lxt
  • 31,146
  • 5
  • 78
  • 83