Search icon CANCEL
Subscription
0
Cart icon
Cart
Close icon
You have no products in your basket yet
Save more on your purchases!
Savings automatically calculated. No voucher code required
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Managing Software Requirements the Agile Way

You're reading from  Managing Software Requirements the Agile Way

Product type Book
Published in Aug 2020
Publisher Packt
ISBN-13 9781800206465
Pages 214 pages
Edition 1st Edition
Languages
Concepts
Author (1):
Fred Heath Fred Heath
Profile icon Fred Heath
Toc

Table of Contents (12) Chapters close

Preface 1. Chapter 1: The Requirements Domain 2. Chapter 2: Impact Mapping and Behavior-Driven Development 3. Chapter 3: Writing Fantastic Features with the Gherkin Language 4. Chapter 4: Crafting Features Using Principles and Patterns 5. Chapter 5: Discovering and Analyzing Requirements 6. Chapter 6: Organizing Requirements 7. Chapter 7: Feature-First Development 8. Chapter 8: Creating Automated Verification Code 9. Chapter 9: The Requirements Life Cycle 10. Chapter 10: Use Case: The Camford University Paper Publishing System 11. Other Books You May Enjoy

Writing Features with Gherkin

We write Features in a structured manner, using a natural language subset called Gherkin (https://cucumber.io/docs/gherkin/reference/). Gherkin documents, such as a feature file, are written in a specific syntax. Most lines in a Gherkin document start with a keyword, followed by our own text. These keywords are as follows:

  • Feature
  • Rule (as of Gherkin version 6)
  • Scenario (or example)
  • Given, When, Then, And, *
  • Background
  • Scenario Outline (or Scenario Template)
  • Example

Comments are only permitted at the start of a new line, anywhere in the feature file. They begin with zero or more spaces, followed by a hash sign (#) and some text. Gherkin supports over 70 languages, from Arabic to Uzbek, so we can write our Features in any language we choose.

A Feature's outline is as follows:

Feature: My Beautiful Feature # The Feature title

## We can write anything we want from here until the next keyword 
## As...
lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $15.99/month. Cancel anytime