Behavior-Driven Python
summary
Shows how to write real Gherkin scenarios and glue them to Python step definitions using the behave framework, with a runnable GitHub example and pip install commands. Demonstrates context passing, hooks for webdriver setup and teardown, backgrounds and scenario outlines for reuse, and config/tag filtering. Notes common tools like Selenium and requests and warns that behave has no built‑in parallel execution. Pick this if you want concrete code, wiring, and a working example repo.
AI-written summary · about
chapters (20)
- 0:00Intro
- 1:41What is a Behavior?
- 2:38Behavior-Driven Development
- 4:22Gherkin Behavior Spec Example
- 5:16Benefits of BDD
- 6:49How behave Works
- 7:58Installing behave
- 8:26Example Feature
- 10:51The Background Section
- 12:01A Scenario Outline
- 13:47Step Definitions
- 14:53Gluing Steps to Definitions
- 15:12Scenario Context
- 18:40Directory Layout
- 19:25Support Classes
- 20:01Running Tests
- 20:56Testing Considerations
- 21:43Other Python BDD Frameworks
- 22:58Beyond Python
- 23:53Links and Resources
related talks
46mBehavior-Driven Development in Python
21mA Python Introduction to Behavior Driven Development
23mBDD To The Bone: Acceptance Testing with Behave and Selenium
31mWorkshop 1: Automate Your QA - Workshop on Behave a BDD
54mTest automation with Python Behave without BDD
22mBDD (Behavior Driven Development) Testing for Django Apps
45mBehaviour Driven Development and Behat: Telling Stories Through Code
01h 00mBehaviour Driven Development with RSpec
