Book Image

Testing Practitioner Handbook

By : Renu Rajani
Book Image

Testing Practitioner Handbook

By: Renu Rajani

Overview of this book

The book is based on the author`s experience in leading and transforming large test engagements and architecting solutions for customer testing requirements/bids/problem areas. It targets the testing practitioner population and provides them with a single go-to place to find perspectives, practices, trends, tools, and solutions to test applications as they face the evolving digital world. This book is divided into five parts where each part explores different aspects of testing in the real world. The first module explains the various testing engagement models. You will then learn how to efficiently test code in different life cycles. The book discusses the different aspects of Quality Analysis consideration while testing social media, mobile, analytics, and the Cloud. In the last module, you will learn about futuristic technologies to test software. By the end of the book, you will understand the latest business and IT trends in digital transformation and learn the best practices to adopt for business assurance.
Table of Contents (56 chapters)
Testing Practitioner Handbook
Credits
About the Author
Acknowledgement
About the Reviewer
www.PacktPub.com
Customer Feedback
Preface
Index

Gherkin – basic syntax and illustration


Gherkin uses a declarative textual format for the features to be tested. It has a line-oriented approach as a language and uses indentation for defining structure. Each source file of Gherkin consists of only one feature description. Let’s discuss the syntax used in Gherkin Language:

  • Feature: This is a brief description of what is desired as part of the business flow / use cases. It provides the business rules that govern the scope of the feature and any additional information that will make the feature easier to understand.

  • Scenario: This is some determinable business flow.

  • Given: This is some precondition.

  • And: This is some other precondition.

  • When: This is some action by the actor.

  • And: This is some other action.

  • And: This is yet another action.

  • Then: This is some testable outcome achieved.

Also, something else we can check happens too:

Scenario: This is a different flow.

In the preceding Gherkin syntax:

  • Feature: This describes the business flow of...