Scripting GUI Testing with Ruby Book Review
After listening to a Pragmatic Podcast featuring the book's author, Ian Dees, I had high expectations to learn from his experiences.
Unfortunately, I wish Ian would have disclosed a bit more in his podcast interview, such as the fact that a majority of the book is focused on testing GUI-based applications for the Windows platform, with only one chapter discussing testing browser-based applications, a few pages on testing Mac OSX GUI apps and not a word about Linux or even fellow Pragmatic Bookshelf's fxRuby GUI toolkit for Ruby itself. Additionally, I have used a number of commercial testing tools over the years and served as a Jolt judge for the last three years and have seen a number of approaches to address this important and challenging testing requirement. There was little additional insight I learned reading Ian's book.
The book begins with the author's advocacy of RSpec, a pure Ruby implementation of the Behavior Driven Development (BDD) methodology. Using the Ruby COM bridge and the Windows API to hook into Windows handles (as well as a custom Java application hooking into JRuby), Ian demonstrates over the next four chapters how to leverage the RSpec syntax to control and test an open source Windows GUI-based text editor called LockNote. Over the course of 70+ pages, syntax is mixed with teaching the fundamentals of effective GUI application testing. For readers unfamiliar with the topic, these hints can be revealing, though for anyone who has performed such testing in the past, there's not much new here.
Overall, Scripted GUI Testing with Ruby was a bit of a letdown. What Pragmatic Bookshelf is asking $34.95US for what could essentially qualify as an appendix in the next revision of the Pick Axe book is unfortunate. Perhaps if there is a 2nd edition, the author can explore deeper GUI testing opportunities beyond the Windows desktop.