Emphasizing that testing is a human activity, this book describes how learning to write good test scripts can aid in the process. The first half leads the reader through building a test script for a real-world application--a notepad-like text editor called LockNote (the author admits he thought it was much more useful than a non-existent pet store project). Readers are able to choose to implement the examples using Windows or a cross-platform Java environment. The remaining chapters explore other topics related to GUI testing, such as introducing randomness and the business of test monkeys, matrix testing with the Ruby libraries ZenTest and RubyFIT, testing GUIs of web apps with Selenium, using Story Runner (a new plain text tool for writing user interface tests), and testing on a Mac. Annotation ©2009 Book News, Inc., Portland, OR (booknews.com)
Read More
Scripted GUI Testing with Ruby is a practical, quick-moving tutorial based on real life, and real-world GUI applications.Right out of the gate you'll start working with code to drive a desktop GUI. You'll discover the kinds of gotchas and edge cases that don't exist in simple, toy programs. As you add more tests, you'll learn how to organize your test code and write lucid examples. The result is a series of "smoke tests" team will run on Continuous Integration servers.Next, we'll explore a variety of different testing tips and tricks. You'll employ a series of increasingly random and punishing test monkeys to try to crash programs. Table-driven techniques will show you how to check dozens of different input combinations. See how to use longer acceptance tests (in the form of stories) to represent the way a typical customer would use your program.The book uses examples from Windows, OS X, and cross-platform Java desktop programs as well as Web applications. You'll develop test scripts in Ruby; you don't need to be a Ruby expert, but basic comfort with the language will be helpful.
Read Less