Scripted GUI Testing with Ruby

Ian Dees

  • 出版商: Pragmatic Bookshelf
  • 出版日期: 2008-08-15
  • 定價: $1,225
  • 售價: 2.4$299
  • 語言: 英文
  • 頁數: 192
  • 裝訂: Paperback
  • ISBN: 1934356182
  • ISBN-13: 9781934356180
  • 相關分類: Ruby使用者介面 UI
  • 立即出貨 (庫存 < 3)



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.


《使用 Ruby 進行腳本化 GUI 測試》是一本實用、快節奏的教程,基於真實世界的 GUI 應用程式。

從一開始,你將開始使用程式碼來操作桌面 GUI。你將發現在簡單的玩具程式中不存在的問題和邊界情況。隨著你添加更多測試,你將學習如何組織測試程式碼並撰寫清晰的示例。結果將是一系列「煙霧測試」,團隊將在持續整合伺服器上運行這些測試。

接下來,我們將探索各種不同的測試技巧和訣竅。你將使用一系列越來越隨機和嚴苛的測試工具來嘗試使程式崩潰。表驅動技術將向你展示如何檢查數十種不同的輸入組合。看看如何使用更長的驗收測試(以故事形式)來代表 typic 客戶使用你的程式的方式。

本書使用了來自 Windows、OS X 和跨平台 Java 桌面程式以及 Web 應用程式的示例。你將使用 Ruby 開發測試腳本;你不需要成為 Ruby 專家,但對該語言的基本熟悉將有所幫助。