Home >
The mobile application development community is sadly lacking in the functional testing department, but there are some interesting projects you should check out. If you are developing RIAs for the iPhone or other WebKit-based browsers, you should look at the Watir and especially the SafariWatir project. Watir is a wonderful, Ruby-based, open source library for automating web browsers, and it is often used to perform functional tests on web applications. The SafariWatir project focuses on supporting Safari on the Mac and, after some modifications; you can easily use it to drive Safari for iPhone testing. If you are interested in using SafariWatir for iPhone testing, you should look at the additions my coworker, Ryan Schutt contributed to the project which allow you to use XPATH or hook into JQuery tabs. We often use a stripped down version of JQuery for mobile RIA applications. Based on a lot of internal effort, we have found that you can automate most of the testing of an iPhone application with SafariWatir although you occasionally run into minor differences between the Safari version on the iPhone and that on the Mac.
In our next posting, we’ll be looking at some tricks and tips for debugging and validating performance on the iPhone or other WebKit-based platforms. In specific we will look at adding a wrapper to WebKit to expose functionality that is not usually made available as well as talk about native wrappers in general and the number of options they allow RIA developers looking to increase usability and performance





Facebook Application Development
The continuing need to invent jargon is both amusing and confounding. Is "RIA" this month's version of "Web 2.0"? :p
Ben thanks for your comment but you might be confused. Macromedia introduced the term Rich Internet Application back in the late 1990's and it has rather specific meanings see http://en.wikipedia.org/wiki/Rich_Internet_application. Web 2.0 is a more modern term that has a rather nebulous definition which might include RIA's, crowd sourcing, collective intelligence, mashups, and a host of other terms and concepts http://en.wikipedia.org/wiki/Web_2.0.
Check out UISpec http://code.google.com/p/uispec/
It's an open source functional testing framework being developed for the iphone. Also its BDD is based on RSpec.
Cheers!
Brian