Behaviour Driven Development

Contact Us for Dates
1 day practical workshop for up to 12 people.
Only £395
Behaviour-driven development is one of the key enablers for automating acceptance tests and functional tests for systems. BDD allows us to capture and validate the rules governing the behaviour of our code. The course is taught through presentation, demos, hands-on labs and directed discussions. The course introduces how to capture acceptance criteria as scenarios and then to create Step Definition files using Java, C#, or an alternative language of your choice to build out the automated tests using Cucumber.

Layout

The training course combines lectures with practical exercises that help the delegates to put what they have learned on the training course into practice. The exercises specifically build on what has been recently taught and are built up as the training course progresses.

Training Course Objectives

  • Understand the role and purpose of BDD
  • Understand how BDD can complement Test Driven Development
  • How to write effective scenarios
  • Creating Step Definition Files
  • Automating test running using Continuous Integration
  • Understand how continuous delivery can be achieved when using BDD
  • Understand how continuous deployment can be achieved when using BDD
  • Integrating BDD with Web applications and Selenium

Who it is for

This training course is aimed at developers and analysts and testers

Training Course Prerequisites

  • Delegates should have some appreciation for the issues involved in building large-scale applications
  • If we are to look at writing step definitions then programming experience will be required

Chapters

Chapter 1 Introduction

  • Why Behaviour Driven Development?
  • What is BDD
  • BDD and TDD

Chapter 2 Getting Started

  • Writing Scenarios
  • Given / When / Then structure
  • The importance of a Domain Specific Language

Chapter 3 Writing Effective Scenarios

  • Test by Example
  • Using tables of data
  • Creating effective Step Definitions

Chapter 4 Automation - getting closer to Single Click Deployment

  • Automation of BDD Tests
  • Continuous Integration, Delivery and Deployment

Chapter 5 Working with Selenium

  • Selenium Basics
  • Writing Cucumber Tests with Selenium