BDD To The Bone: Acceptance Testing with Behave and Selenium

December 14, 2023 23 min Free

Description

This talk explores Behavior-Driven Development (BDD) and Acceptance Testing using Python's `behave` library and the `selenium` browser automation tool. It addresses common challenges with requirements, such as communication breakdowns, non-testable specifications, and lack of traceability. The presentation demonstrates how to write executable specifications in natural language using Girkin syntax and map them to runnable Python code with `behave`. It further shows how to leverage `selenium` to automate browser interactions for end-to-end testing of web applications, specifically in the context of Django projects. The key takeaway is to build the right thing by fostering clear communication and precise requirements early in the development process.

Up Next