Developing Effective OCUnit and UI Automation Testing for iOS
Date: This event took place live on January 11 2011
Presented by: James Turner
Duration: Approximately 60 minutes.
The iPhone is a powerful development platform, but can be a difficult one to develop effective testing methodologies for. The OCUnit framework and the UIAutomation framework can allow developers to create unit tests with code coverage, and user interface level testing suites, but they can be extremely tricky to use and are not well documented by Apple.
In this one hour screencast, you'll learn how to create an OCUnit project in XCode, and then write and debug OCUnit test cases. You'll find out what the limitations of OCUnit are, and how some of them can be mitigated with testing using the Instruments tool and the UI Automation framework.
About James Turner
James Turner is a senior software engineer for Kronos Incorporated, and has over 30 years of experience as a software developer. Recently, he was the lead developer on the Kronos Mobile Workforce iPhone application, which will be released in the first quarter of 2011. He is also a contributing editor for oreilly.com and is a freelance journalist who has written for publications as diverse as the Christian Science Monitor, Processor, Linuxworld Magazine, Developer.com and WIRED Magazine. In addition to his shorter writing, he has also written two books on Java Web Development ("MySQL & JSP Web Applications" and "Struts: Kick Start"). He is the former Senior Editor of LinuxWorld Magazine and Senior Contributing Editor for Linux Today. His past employers have included the MIT Artificial Intelligence Laboratory, Xerox AI Systems, Solbourne Computer, Interleaf, the Christian Science Monitor and contracting positions at BBN and Fidelity Investments. He is a committer on the Apache Jakarta Struts project and served as the Struts 1.1B3 release manager. He lives in a 200 year old Colonial farmhouse in Derry, NH along with his wife and son. He is an open water diver and instrument-rated private pilot, as well as an avid science fiction fan.
Questions? Please send email to