Cucumber Recipes

Book description

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.

Table of contents

  1. Cucumber Recipes
  2. For the Best Reading Experience...
  3. Table of Contents
  4. Early Praise for Cucumber Recipes
  5. Foreword
    1. Agile
    2. Patterns
    3. Platforms
    4. Progress
  6. Acknowledgments
  7. Introduction
    1. Who This Book Is For
    2. How to Use This Book
    3. Getting the Tools You’ll Need
    4. Online Resources
  8. Chapter 1: Cucumber Techniques
    1. Compare and Transform Tables of Data
    2. Generate an RTF Report with a Custom Formatter
    3. Run Slow Setup/Teardown Code with Global Hooks
    4. Refactor to Extract Your Own Application Driver DSL
    5. Define Steps as Regular Ruby Methods
    6. Compare Images
    7. Test Across Multiple Cores
    8. Test Across Multiple Machines with SSH
    9. Run Your Features Automatically with Guard and Growl
    10. Add Cucumber to Your Continuous Integration Server
    11. Publish Your Documentation on Relish
    12. Test Through Multiple Interfaces Using Worlds
    13. Manipulate Time
    14. Drive Cucumber’s Wire Protocol
    15. Implement a Wire Protocol Listener
  9. Chapter 2: Java
    1. Use Cucumber Directly with JRuby
    2. Use Cucumber with Java via Cucumber-JVM
    3. Drive a Spring + Hibernate Project
    4. Test a Grails App Using grails-cucumber
    5. Test Scala Code
    6. Test Clojure Code
    7. Drive a Swing Interface with FEST
  10. Chapter 3: .NET and Windows
    1. Get Good Text Output on Windows
    2. Test .NET Code with SpecFlow
    3. Drive a Windows App Using White
    4. Test Windows GUIs with AutoIt
    5. Test on Windows Phone
  11. Chapter 4: Mobile and Web
    1. Test on iOS Using Frank
    2. Test Android Apps with Calabash
    3. Parse HTML Tables
    4. Drive JavaScript/CoffeeScript Using Cucumber-JS
    5. Test a Web App Using Watir
    6. Test a PHP App with cuke4php
    7. Play Back Canned Network Data Using VCR
    8. Drive a Flash App Using Cuke4AS3
    9. Monitor a Web Service Using Nagios and Cucumber
  12. Chapter 5: Other Languages and Platforms
    1. Drive a Mac GUI Using AppleScript and System Events
    2. Drive a Mac GUI Using MacRuby and AXElements
    3. Test Python Code Using Lettuce
    4. Test Erlang Code
    5. Test Lua Code Using cucumber-lua
    6. Test a GUI on Linux, Mac, or Windows with Sikuli
    7. Test an Arduino Project Using Serial
  13. Appendix 1: RSpec Expectations
    1. Basics
    2. Custom Matchers
    3. Alternatives
  14. Bibliography
    1. You May Be Interested In…

Product information

  • Title: Cucumber Recipes
  • Author(s):
  • Release date: February 2013
  • Publisher(s): Pragmatic Bookshelf
  • ISBN: 9781937785017