Cucumber cookbook over 35 hands-on recipes to efficiently master the art of behaviour-driven development using Cucumber-JVM

This book is intended for business and development personnel who want to use Cucumber for behavior-driven development and test automation. Readers with some familiarity with Cucumber will find this book of most benefit. Since the main objective of this book is to create test automation frameworks, p...

Descripción completa

Detalles Bibliográficos
Otros Autores: Garg, Shankar, author (author)
Formato: Libro electrónico
Idioma:Inglés
Publicado: Birmingham, England ; Mumbai, [India] : Packt Publishing 2015.
Edición:1st edition
Colección:Community experience distilled.
Materias:
Ver en Biblioteca Universitat Ramon Llull:https://discovery.url.edu/permalink/34CSUC_URL/1im36ta/alma991009629277406719
Tabla de Contenidos:
  • Cover; Copyright; Credits; About the Author; About the Reviewers; www.PacktPub.com; Table of Contents; Preface; Chapter 1: Writing Feature Files; Introduction; Writing your first Feature file with one Scenario; Creating Scenarios with different Steps; Creating a Scenario with the And and But keywords; Writing a Feature file with multiple Scenarios; Adding Backgrounds to Feature files; Sending multiple arguments in Steps; Using complex data types to store data; Implementing Scenario Outlines; Creating a Feature file in a language other than English
  • Combining Scenarios, Backgrounds, and Scenario OutlinesChapter 2: Creating Step Definitions; Introduction; Creating your first Step Definitions file; Identifying Duplicate and Ambiguous Step Definitions; Using Regular Expressions to optimize Step Definitions; Using Optional Capture and Noncapture groups; Transforming Data Tables to parse the test data; Implementing data table diffs to compare tables; Using Doc Strings to parse big data as one chunk; Combining Doc Strings and Scenario Outlines; Defining String transformations for better conversions; Chapter 3: Enabling Fixtures; Introduction
  • TaggingANDing and ORing Tags; Adding Hooks to Cucumber code; Tagging the Hooks; ANDing and ORing tagged Hooks; Chapter 4: Configuring Cucumber; Introduction; Integrating Cucumber with JUnit; Overriding the Cucumber Options; Running Strict and Running Dry; Configuring the Cucumber Console output; Directing the Cucumber output to a file; Configuring the naming conventions; Chapter 5: Running Cucumber; Introduction; Integrating Cucumber with Maven; Running Cucumber from the Terminal; Overriding Options from the Terminal; Integrating Cucumber with Jenkins and GitHub
  • Running Cucumber test cases in parallelChapter 6: Building Cucumber Frameworks; Introduction; Building a Web Automation framework; Building a Mobile Automation framework; Building a REST Automation framework; Index