Testing a PhoneGap Application with Chrome and Ripple
November 15, 2011
In my previous posting I described how to get started with the freely donwloadable IBM Mobile Technology Preview. I took one of the samples provided and ran it in an Android emulation environment. That worked nicely to test some features of the samples but the speed of emulation is quite slow. This doesn’t make for a productive Code/Test cycle. In this article I want to describe an alternative approach using a Chrome Plugin known as Ripple. Ripple was created by the gloriously named Tiny Hippos, who were acquired by Research in Motion this year.
I add these entries to my httpd.conf:
Alias /mysurance "C:/IBM/MobileTechPreview/samples/mysurance/eclipse-project/assets/www"
Allow from all
and restart Apache. I can now point my browser at
and see the Application
You can install Ripple into a running Chrome instance from this Ripple download site. On completion the Ripple icon is visible in the toolbar
The first time you access an application with Ripple installed you see this
which offers a number of possible runtimes, I choose PhoneGap, and then can select the Ripple icon and choose to Enable Ripple.
The Mysurance application now shows in a device emulator, along with various control capabilities.
If you explore the Ripple control capabilities you will see that you can select different devices, emulate the accelerometer and send events. Here I’m going to focus on the GeoLocation. Expanding that section I see
With a default location of Waterloo Station. We can change this, if we know the latitude and longitude of our desired location. I will choose a place in Yorkshire, finding it’s coordinates from this site.
Ripple now shows the new location
Back in the application I pick Accident Toolkit and from this menu
select Call the Police. This brings up a map centred on the location we specified to Ripple, with nearest police station identified.
Select the station gives us the contact details.
This does seem to be a very promising approach to testing some aspects of Hybrid applications.