Good news! Our friend site will continue updating latest books at https://bookdl.com/.

The Cucumber Book


Matt Wynne and Aslak Hellesøy 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. Although it was born in the Ruby community, you can use Cucumber to test almost any system, from a simple shell script or Perl script, to web applications written in PHP, Java, or any platform.

In Part 1, you’ll get started by using the core features of Cucumber and working with Cucumber’s Gherkin DSL to describe—in plain language—the behavior your customers want from the system. Then you’ll write Ruby code that interprets those plain-language specifications and checks them against your application. If you’re new to Cucumber, this part of the book will teach you everything you need to know to get started.

In Part 2, you’ll consolidate the knowledge you’ve gained with a worked example, where you’ll learn more advanced Cucumber techniques. You’ll also learn how to test asynchronous systems and systems that use a database.

In Part 3, you’ll find a selection of recipes for some of the most difficult and commonly seen situations the authors have helped teams solve. With these patterns and techniques, 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 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

Table of Contents
Part I: Cucumber Fundamentals
Chapter 1. Why Cucumber?
Chapter 2. First Taste
Chapter 3. Gherkin Basics
Chapter 4. Step Definitions: From the Outside
Chapter 5. Expressive Scenarios
Chapter 6. When Cucumbers Go Bad

Part II: A Worked Example
Chapter 7. Step Definitions: On the Inside
Chapter 8. Support Code
Chapter 9. Dealing with Message Queues and Asynchronous Components
Chapter 10. Databases

Part III: Cucumber Applied
Chapter 11. The Cucumber Command-Line Interface
Chapter 12. Testing a REST Web Service
Chapter 13. Adding Tests to a Legacy Application
Chapter 14. Bootstrapping Rails
Chapter 15. Using Capybara to Test Ajax Web Applications
Chapter 16. Testing Command-Line Applications with Aruba

Appendix 1. Using Cucumber with Other Platforms
Appendix 2. Installing Cucumber
Appendix 3. Ruby Gem Versions
Appendix 4. Bibliography

Book Details

  • Paperback: 250 pages
  • Publisher: Pragmatic Bookshelf (January 2012)
  • Language: English
  • ISBN-10: 1934356808
  • ISBN-13: 978-1934356807
Download [5.8 MiB]

You may also like...

Leave a Reply