The Cucumber Book: Behaviour-Driven Development for Testers and Developers (Paperback)

Matt Wynne, Aslak Hellesoy

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

相關主題

商品描述

Your customers want rock-solid, bug-free software that does exactly what they expect it to do. Yet they can't always articulate their ideas clearly enough for you to turn them into code. The Cucumber Book dives straight into the core of the problem: communication between people. Cucumber saves the day; it's a testing, communication, and requirements tool - all rolled into one.

We'll show you how to express your customers' wild ideas as a set of clear, executable specifications that everyone on the team can read. You'll learn how to feed those examples into Cucumber and let it guide your development. You'll build just the right code to keep your customers happy, and not a line more.

The first part of the book teaches you how to use the core features of Cucumber. You'll learn how to use Cucumber's Gherkin DSL to describe-- in plain language - the behavior your customers want from the system. You'll learn how to write Ruby code that interprets those plain language specifications and checks them against your application. In Part 2, you'll consolidate the knowledge you just gained with a worked example.

Although it was born in the Ruby community, you can use Cucumber to test almost any system, from a simple shell script or a Perl script, to enterprise PHP or a Java web application. In Part 3, you'll find a selection of recipes for some of the most common situations you'll encounter using Cucumber in the wild. You'll learn how to test Ajax-heavy web applications with Capybara and Selenium, REST web services, Ruby on Rails applications, command-line applications, legacy applications and lots more!

Written by the creator of Cucumber and one of its most experienced users and contributors, The Cucumber Book is an authoritative guide that will give you and your team all the knowledge you need to start using Cucumber with confidence.

What You Need:

Windows, Mac OS X (with XCode) or Linux

Ruby 1.9.2 and upwards

商品描述(中文翻譯)

您的客戶希望擁有穩定可靠、無錯誤的軟體,能夠完全符合他們的期望。然而,他們並不總能清楚地表達他們的想法,以便您將其轉化為程式碼。《Cucumber Book》直接深入探討了這個核心問題:人與人之間的溝通。Cucumber能夠解決這個問題;它是一個測試、溝通和需求工具,集三者於一身。

我們將向您展示如何將客戶的奇思妙想轉化為一組清晰可執行的規格,供團隊中的每個人閱讀。您將學習如何將這些範例輸入Cucumber,並讓它引導您的開發工作。您將僅編寫足夠滿足客戶需求的程式碼,而不多一行。

本書的第一部分將教您如何使用Cucumber的核心功能。您將學習如何使用Cucumber的Gherkin DSL以平易近人的語言描述客戶對系統的期望行為。您將學習如何編寫Ruby程式碼來解釋這些平易近人的規格,並將其與應用程式進行檢查。在第二部分中,您將通過一個實例來巩固剛剛學到的知識。

儘管Cucumber起源於Ruby社群,但您可以使用Cucumber來測試幾乎任何系統,從簡單的shell腳本或Perl腳本,到企業級的PHP或Java網絡應用程式。在第三部分中,您將找到一系列使用Cucumber時可能遇到的最常見情況的解決方案。您將學習如何使用Capybara和Selenium測試Ajax-heavy的網絡應用程式、REST網絡服務、Ruby on Rails應用程式、命令行應用程式、遺留應用程式等等。

《Cucumber Book》由Cucumber的創建者之一以及最有經驗的使用者和貢獻者所撰寫,是一本權威指南,將為您和您的團隊提供開始自信地使用Cucumber所需的所有知識。

所需環境:
- Windows、Mac OS X(帶有XCode)或Linux
- Ruby 1.9.2及以上版本