Home  >  

Functional Testing for RIAs on the iPhone

Author photo
| | Comments (3)
AddThis Social Bookmark Button
iphone_home.gif
One of the greatest frustrations when building RIAs for mobile browsers such as the iPhone, Safari, Webkit for the Android and Palm, and even IE for Windows Mobile phones is the lack of functional testing tools. Yet if you are making a RIA that is complicated or used for critical work, it behooves you to develop some approach to testing that is not completely manual. Furthermore, if you are serious about performance, you need to make sure your application is working functionally so you can create performance profiles that reflect a solid working application.

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

Read more from Robi Sen. Robi Sen's Atom feed

Comments

3 Comments

Ben K said:

The continuing need to invent jargon is both amusing and confounding. Is "RIA" this month's version of "Web 2.0"? :p

Robi Sen said:

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.

Brian said:

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

Leave a comment


Tag Cloud

Question of the Week: Dream App

If you had an unlimited budget and unlimited resources what application would you build and why would you build it?

Answer

Latest Features

Recommended for You

@InsideRIA on Twitter

Archives

  • Or, visit our complete archive.  

About This Site

Welcome to the premiere community site for all things RIA sponsored by O'Reilly Media and Adobe Systems Incorporated.