Behat: Behavior Driven Development (BDD) with PHP Training Course

Overview

Behat is a Behavior Driven Development (BDD) test framework written in PHP. It facilitates communication among developers, testers, business stakeholders and clients during the software development process. Behat allows non-technical people to write clear descriptions of an application’s intended behavior, then runs those “scenarios” as functional tests against the application.

In this instructor-led, live training, participants will learn how to write and execute BDD style test cases using Behat and PHP.

By the end of this training, participants will be able to:

  • Run automated tests written in the human-readable, “Given, When, Then” Gherkin language
  • Use Behat based test cases to improve collaboration between technical and non-technical teams
  • Integrate Behat with Selenium, Mink, Goutte and other browser emulators to drive tests and generate reports
  • Extend Behat functionality through its extension system
  • Test numerous usage scenarios through terminal commands, REST APIs, and more.

Audience

  • Test engineers
  • Developers

Format of the course

  • Part lecture, part discussion, exercises and heavy hands-on practice

Requirements

  • Experience with testing and knowledge of automated testing
  • Experience with PHP programming

Course Outline

Introduction

  • Business Driven Development (BDD) and Acceptance Test Driven Development (ATDD)
  • BDD as a collaboration tool for software engineers, test engineers and business people

Defining your project requirements

Setting up your environment for web application testing

Gherkin: writing your stories in a user-friendly language

The anatomy of the Feature file

Writing your first feature

Writing scenarios for your feature

Writing step definitions

Passing parameters to Steps

Creating scenario outlines to pass multiple arguments

Sharing data between steps

Organizing features and scenarios with tags

Setup and teardown

Closing remarks

Leave a Reply

Your email address will not be published. Required fields are marked *