Thomas Fuchs
Hi, I'm Thomas Fuchs. I'm the author of Zepto.js, of script.aculo.us, and I'm a Ruby on Rails core alumnus. With Amy Hoy I'm building cheerful software, like Noko Time Tracking and Every Time Zone and write books like Retinafy.me.
   Want me to speak at your conference? Contact me!

Functional web application testing with automatic recording

August 7th, 2005

As I said in an earlier post:

Whats needed now is way to automatically record events and make a test case skeleton out of it. That would allow for complete automatic browser based tests. How cool is that?

Well, it’s here now, and it’s cool, but still very, very alpha and Firefox only, but the basics are there:

http://script.aculo.us/playground/ghosttrain/test.html

So, what goes on here?

The aptly named Ghost Train script captures events the happen on the page as you click and type your way through. Then, a JavaScript is generated that makes use of simulated events, that is the Browser is told “look, there is a new mouse event” programmatically.

Be sure to have a look at the fleshed out test, where i’ve added some asserts to a script generated via the Ghost Train demo page.