Cucumber Recipes: Automate Anything with BDD Tools and Techniques (Paperback)

Ian Dees, Matt Wynne, Aslak Hellesoy

  • 出版商: Pragmatic Bookshelf
  • 出版日期: 2013-03-19
  • 定價: $1,155
  • 售價: 8.0$924
  • 語言: 英文
  • 頁數: 276
  • 裝訂: Paperback
  • ISBN: 1937785017
  • ISBN-13: 9781937785017
  • 立即出貨 (庫存 < 4)

買這商品的人也買了...

商品描述

You can test just about anything with Cucumber. We certainly have, and in Cucumber Recipes we'll show you how to apply our hard-won field experience to your own projects. Once you've mastered the basics, this book will show you how to get the most out of Cucumber--from specific situations to advanced test-writing advice. With over forty practical recipes, you'll test desktop, web, mobile, and server applications across a variety of platforms. This book gives you tools that you can use today to automate any system that you encounter, and do it well.

The Cucumber Book showed you how your team can work together to write executable specifications--documents that tell a clear story and also happen to be working test code. We'll arm you with ready-rolled solutions to real-world problems: your tests will run faster, read more clearly, and work in any environment.

Our first tips will help you fit Cucumber into your workflow. Powerful filters will tame tables full of test data, transforming them into the format your application needs. Custom output formatters will generate reports for any occasion. Continuous Integration servers will run your Cucumber tests every time the code changes. Next, you'll find recipes tailored to the platform you're running on. Ever wanted to know how to test a Grails app from Cucumber? Need to put a Windows program through its paces? How about a mobile app running on Android or iOS? We'll show you how to do all of these.

Throughout the book, you'll see how to make Cucumber sing as you interoperate with different platforms, languages, and environments. From embedded circuits to Python and PHP web apps, Cucumber has something for you.

What You Need:

You'll need basic working knowledge of Cucumber and Ruby. Individual recipes may have additional requirements; for example, a recipe on Windows automation might pull in an open source GUI driver.

We've written the recipes for compatibility with Ruby 1.9.3 and 1.8.7, plus Cucumber 1.1.4. Other versions may work as well, but these are the ones we test with.

商品描述(中文翻譯)

你可以用Cucumber測試幾乎任何東西。我們確實這樣做了,在《Cucumber Recipes》中,我們將向您展示如何將我們在實戰中獲得的經驗應用於您自己的項目中。一旦您掌握了基礎知識,本書將向您展示如何充分利用Cucumber的優勢-從特定情況到高級測試編寫建議。通過超過四十個實用的食譜,您將在各種平台上測試桌面、網絡、移動和服務器應用程序。本書為您提供了可以立即使用的工具,以自動化您遇到的任何系統,並且做得很好。

《The Cucumber Book》向您展示了如何讓您的團隊共同撰寫可執行的規範-這些文件清晰地講述了一個故事,同時也是可工作的測試代碼。我們將為您提供現成的解決方案來解決現實世界中的問題:您的測試將運行更快,閱讀更清晰,並且在任何環境中都能運行。

我們的第一個提示將幫助您將Cucumber融入您的工作流程中。強大的過濾器將使充滿測試數據的表格變得易於處理,將其轉換為應用程序所需的格式。自定義輸出格式化程序將為任何場合生成報告。持續集成服務器將在代碼更改時運行您的Cucumber測試。接下來,您將找到針對您運行的平台量身定制的食譜。曾經想過如何從Cucumber測試Grails應用程序嗎?需要對Windows程序進行全面測試嗎?Android或iOS上運行的移動應用程序呢?我們將向您展示如何做到這些。

在整本書中,您將看到如何使Cucumber在不同平台、語言和環境中發揮作用。從嵌入式電路到Python和PHP Web應用程序,Cucumber都能滿足您的需求。

您需要具備Cucumber和Ruby的基本工作知識。個別的食譜可能還有其他要求;例如,有關Windows自動化的食譜可能會引入開源GUI驅動程序。

我們為與Ruby 1.9.3和1.8.7以及Cucumber 1.1.4兼容性編寫了這些食譜。其他版本也可能適用,但這些是我們測試過的版本。