Writing Tests with Gherkin & Cucumber

Course Description

This course is an introduction to writing tests using Gherkin syntax and Cucumber. It is delivered with a strong emphasis on practical exercises in translating existing manual tests for existing code into manual tests using Gherkin syntax.
1 Day
Contact us for pricing
 

Prerequisites

Familiarity coding and/or testing Java and JavaScript applications

Introduction to Gherkin and Cucumber

Overview
How Gherkin works
How Cucumber works
An environment for authoring Gherkin tests

Getting Started with Cucumber

Creating features
Creating step definitions
Implementing step definitions
Testing our classes
Making assertions
Making the tests work

Getting Started with Gherkin

Overview of Gherkin
Given – When - Then
Features
Scenarios
Comments
Spoken languages

Adapting Manual Tests to Gherkin

Reading existing tests
Rewriting as Given – When – Then
Manual test execution
Old vs New: How do they compare?

Step Definitions External Perspective

Steps and step definitions
Capturing arguments
Multiple captures
Achieving more flexibility
Returning results

Cucumber Best Practices

Issues
Collaboration
Writing maintainable tests
Guidelines for preventing defects

CucumberGherkinsoftware testing