Writing Tests with Gherkin & Zephyr

Course Description

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


Familiarity coding and/or testing Java and JavaScript applications

Learning Objectives

Participants will learn:

• How to write tests using the Gherkin syntax;
• How tests written using Gherkin relate to existing manual tests written using Zephyr;
• How tests written in Gherkin relate to existing user stories;
• How tests written using Gherkin syntax may be executed manually;
• How tests written using Gherkin syntax might be automated in the future.

Introduction to Gherkin

Why Gherkin?
How Gherkin works;
An environment for authoring Gherkin tests.

Zephyr to Gherkin - getting started

Mapping Zephyr test cases to Gherkin tests;
• Zephyr vocabulary versus Gherkin vocabulary.
Reading user stories;
Writing features;
Writing scenarios;
Creating step definitions;
Implementing step definitions;
Testing our test cases

Zephyr to Gherkin - more detail

Step definitions: Given – When – Then;
More on Features;
More on Scenarios;
Writing backgrounds;
Spoken languages.

Adapting Manual Tests in Zephyr to Gherkin

This section is intended to use existing test cases authored in Zephyr.
Reading existing tests;
Rewriting as Given – When – Then;
Manual test execution;
Old vs New: How do they compare?

Best Practices

Writing maintainable tests;
Guidelines for preventing defects.


A demonstration of automation of Gherkin tests using Cucumber.
• Automating steps;
• Capturing arguments;
• Returning results.

GherkinZephyrSoftware TestSoftware TestingCucumber