Call us on  08000 199337 From overseas call +44 20 7264 2185

Automation

BDD with Cucumber JavaScript and Selenium WebDriver

Book online today or if you need any assistance or help chosing the right course for you, please call our team on 08000 199337 and we will help point you in the right direction.

Private Course: Click Here

Classroom

From +Vat

View dates and book

Private Course: Click Here

Course Overview

Behaviour-Driven Development (BDD) has become a well established approach to testing, providing ‘living documentation’ of the system under test, and being able to use the documentation to drive the test automation. Our BDD courses teach you what BDD is all about, how to write your Gherkin Feature files, and then how to bind the test automation code to the features.

Read More

The perfect introductory course on Behaviour-Driven Development. This course covers writing Feature Files in Gherkin, then generating Step Definitions and then writing the code bindings using Selenium WebDriver JavaScript. This course uses Cucumber-JS, and Selenium WebDriver JavaScript all in Microsoft’s Visual Code. The course prerequisite is that you have done some WebDriver or sat on our 3 day WebDriver JS course.

Read Less

Entry Requirements

  • A basic understanding of writing Selenium WebDriver JavaScript Tests or attended our
    WebDriver JS course.
  • Some programming experience would be advantageous – The course is based on
    using WebDriver JavaScript & Chai with NodeJS, but does not teach you JavaScript
    as you can use a variety of programming languages with WebDriver and Cucumber.

Exam

There is no exam requirement for this course.

Course Objectives

  • understand the required installs and packages to use Cucumber
  • understand how to structure your automated Cucumber project
  • gain a full understanding of how to write good Gherkin and Step Definitions
  • Understand how to refactor and re-use common Methods for Steps
  •  By the end of the course you should have a thorough understanding of how to develop well-written Feature Files and Scenarios, How to manage Step Definitions and write associated Methods, how to organise the Cucumber project and how to integrate into the POM framework

Syllabus – Key points

Introduction to BDD
A background to BDD and its benefits. The process of BDD. An overview of the tools available, terminology.

Introduction to Gherkin
Feature Files, introduction to the Gherkin language, basic syntax

More Gherkin
Using the Background fixture, Parameters, Doc Strings, Examples and Data Tables, using Tags to organise execution, commenting


Installation of the Cucumber Framework
Installing Cucumber with npm. Creating a project structure, creating a Feature, execution of Feature Files

Step Definitions & Code Binding
Using prototype step definitions, creating step definition Methods, expanding Methods with Parameters, Step Definition syntax, using Regular Expressions


Running the Cucumber Tests
Using Cucumber Command Line Interface, CLI parameters, Results & Reporting, HTML reports

Hooks
Using Hooks in cucumber-js (BeforeAll, Before, After, AfterAll), Cucumber Timeouts

The Cucumber World Object
Attaching items to World, Creating your own custom World Constructor

Tables & Scenario Outlines
In-line Step Table Iterating, Scenario Outline Data Handling

Integrating Cucumber into the POM
Using Cucumber & WebDriver under the Page Object Model. Using Helpers

VS Code Tips
Cucumber Icon Packs, Setting up GoTo Definitions Shortcut, Debugging scripts

Reviews

There are no reviews yet.

Be the first to review “BDD with Cucumber JavaScript and Selenium WebDriver”

Course dates

There are no dates scheduled for this course now. Please call Paula Jones to enquire about this course on 08000 199337. When calling from overseas please call +44 207 264 2185. Alternatively, please email p.jones@tsg-training.co.uk and she’ll be in contact with you shortly.

This product is currently out of stock and unavailable.

Frequently asked questions

A Pearson VUE exam voucher enables you to book and sit your exam at your local Pearson VUE testing centre at a time and date convenient to you.  Pearson VUE centres are worldwide, and you will be able to choose the closest testing centre to you. You then go along to the test centre with your photo ID at the specified date and time and you will then take an electronic exam. Your exam voucher will have an expiration date and your exam must be sat before this date as these vouchers cannot be extended.