Behavior Driven Development (BDD) is about helping business and technology expert collaborate to deliver the best possible solutions. In recent years BDD alongside TDD has helped many teams significantly improve their development speed, their overall quality and to satisfy the business expectation.

In this workshop we will explore the foundations of the BDD method, from its theory to its more practical aspects. We will practice scenario writing leveraging the Given/When/Then syntax.

And we will learn how to turn those into an effective automated test suite that will improve the quality of our system.

Lectures: Lior FriedmanUri Goldstein

Intended Audience 

  • Tech Leads
  • Developers
  • Automation Engineers

Prerequisites

  •  At least 1 year of experience developing software/test automation 

Objectives 

  • Understanding BDD/ATDD concepts
  • Learning the Given/When/Than syntax
  • Writing effective scenarios
  • Getting to know a BDD tool
  • Experiencing BDD for UI testing

Topics

  •  Introduction to ATDD/BDD
  • Writing a Basic Test
  • Writing Effective Scenarios
  • Advance usages of a BDD tool (SpecFlow/Cucumber)
  • Using G/W/T for UI testing

Structure 

  • Introduction  to ATDD/BDD
  • Basic Gherkin syntax & SpecFlow/Cucumber
    • Given/When/Then
    • And/But
    • Basic BDD Tool mechanisms (Binding, steps,…)
    • Argument Matching
    • Background
  • How to write effective scenarios
    • Basic tips and tricks
    • Things to avoid
  • Advanced Tool usages mechanisms  – Part 1
    • Tables
    • Multi line
    • Scenario Outline
    • Argument Transformation
  • Advanced Tool Usages mechanism – Part 2
    • Test Context (Passing Data)
    • Hooks
    • Step Invocation
  • UI based Testing  - Combining BDD Tool with Selenium

Schedule

Unless otherwise stated, the workshop runs 1 day, 9:30 to 17:30.