Wednesday
Room 5
13:40 - 14:40
(UTC+02)
Talk (60 min)
Test automation with Python Behave without BDD
You don’t need to embrace Behavior Driven Development to benefit from Python Behave. It’s a simple, powerful and flexible automation tool for end-to-end tests that happens to also come with BDD benefits if you’re interested.
I’ll go through how we at Neat have used Python Behave for almost four years now to create automated tests covering just about every feature of our videoconferencing devices’ behavior. While it doesn’t hurt that our tests are eminently human readable, Behave also shines as an endlessly adaptable test automation framework. It’s also effective, since it follows in the footsteps of Robot Framework and lets you build up your test cases from reusable test steps, thus accelerating the speed of test automation over time as your collection of reusable test steps grows.
With real world code, we’ll take a look at web automation with Playwright and blisteringly fast GUI-automation of native Android apps with uiautomator2. In both cases we’ll use a Python-based page object model framework that isolates tests from GUI changes arguably better than any other page object model solution available.
From there we’ll integrate with a low-level C++ API and even fluently incorporate machine learning based asserts in production tests.
We’ll see that while Python Behave can help you “shift left” and revolutionize your software development process from requirements gathering to end-to-end testing, it may also just be the best test automation framework you’ve never tried.