Behat from 0 to Hero: a Practical Guide
summary
Practical guide to using Behat for testing Symfony apps, showing how to run Behat with Mink and either Selenium or BrowserKit drivers plus the Symfony extension to access services. Covers applying the Page Object pattern to reduce fragile selectors, collapsing steps with backgrounds and transformers to keep contexts small, waiting for an explicit AJAX completion marker instead of sleep, splitting contexts by domain and running tests in parallel, and capturing HTML/screenshots on failure.
AI-written summary · about
chapters (6)
- 0:00Behat guide
- 3:52Behat and BDD
- 12:46Behat main issues
- 24:14UI testing tools
- 35:40Inverted test pyramid
- 43:09Test best practices
related talks
45mBehat for characterisation on tests
27mAutomated Web Acceptance Testing with Behat
31mTesting API's written in PHP using the Behat feature testing tool
45mBehaviour Driven Development and Behat: Telling Stories Through Code
49mBending Behat's Benefits: A live coding adventure
26mBehaviour Driven Development with Laravel
34mTesting APIs written in PHP using the Behat feature testing tool
45mUsing Behat as a Webapp Automation Tool
