UIAutomation notes

Skip to end of metadata
Go to start of metadata

Comments

  • The target should be the binary in the Debug-iphonesimulator or Debug-iphoneos directory under the build directory.
  • Checking in the .trace directories into source control doesn't seem to be a good idea.
  • On a different machine, opening up the .trace file results in an The document “test-case-1.trace” could not be opened. The folder doesn’t exist. error message.
  • The .tracetemplate directories don't store the javascript file to run, so are of limited use and probably shouldn't be checked into source control.

Swipe guesture

  • This preforms a swipe gesture on the navigationBar:

Using device keyboard

  • Useful to 'type' on the device keyboard:

Example code

  • Taken from the WWDC 2010 Session 306 - Automating User Interface Testing with Instruments. Go watch it now. Seriously.

Hardware

  • Apparently multitasking is required for UIAutomation to work.
  • The error message I get with my iPhone 3G is "Automation is not supported on this device.".

References

http://developer.apple.com/library/mac/#documentation/DeveloperTools/Conceptual/InstrumentsUserGuide/Built-InInstruments/Built-InInstruments.html

http://mobilecoder.wordpress.com/2010/11/08/iphoneipodipad-automation-basics/

http://answers.oreilly.com/topic/1646-how-to-use-uiautomation-to-create-iphone-ui-tests/

http://www.codeproject.com/KB/iPhone/UI_Automation_Testing.aspx

http://pivotallabs.com/users/amilligan/blog/articles/1323-iphone-ui-automation-tests-a-decent-start

http://blog.airsource.co.uk/index.php/2010/08/13/ui-automation-on-the-iphone/

Labels:
None
Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.