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 applicationsIntroduction to Gherkin and Cucumber
OverviewHow Gherkin works
How Cucumber works
An environment for authoring Gherkin tests
Getting Started with Cucumber
Creating featuresCreating step definitions
Implementing step definitions
Testing our classes
Making assertions
Making the tests work
Getting Started with Gherkin
Overview of GherkinGiven – When - Then
Features
Scenarios
Comments
Spoken languages
Adapting Manual Tests to Gherkin
Reading existing testsRewriting as Given – When – Then
Manual test execution
Old vs New: How do they compare?
Step Definitions External Perspective
Steps and step definitionsCapturing arguments
Multiple captures
Achieving more flexibility
Returning results
Cucumber Best Practices
IssuesCollaboration
Writing maintainable tests
Guidelines for preventing defects
CucumberGherkinsoftware testing