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.
The second half of the book contains six chapters ranging from testing the application by applying random events, applying matrix tables and such. The chapter on web application testing was one I wished the author had dedicated much more space to, exploring not only the open source Ruby-based proxy testing tool he advocates using called Selenium ("gem install Selenium"), but also using the various Javascript and AJAX frameworks from Dojo to Scriptaculous. Alas, only 4 pages of brief examples are partitioned to this topic. The book concludes with the discussion of a recent RSpec addition called Story Runner designed primarily for user acceptance testing scenarios. There are a couple of attractive features that Story Runner brings to the GUI testing world, the most powerful being its very easy to follow English sentence-like syntax that invites participation from problem domain experts who lack copious Ruby coding experience. Finally, the book's last chapter briefly touches on testing GUI applications on the OSX platform by enabling the operating system's "assistive devices" option in OSX's System Preferences and driving GUI events via AppleScript. Two appendixes on "Other Windows Techniques" and "Resources" round out the book.
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.
Commentary
Related Reading
More Insights
| To upload an avatar photo, first complete your Disqus profile. | View the list of supported HTML tags you can use to style comments. | Please read our commenting policy. |
By The Numbers
Base: 417 respondents at organizations using or planning to deploy data analytics, BI or statistical analysis software
Data: InformationWeek 2013 Analytics, Business Intelligence and Information Management Survey of 541 business technology professionals, October 2012
What Do You Think?
|
|








