Douglas Cardoso
Douglas Cardoso
SDET
🎂 MoTaBirthday | December 31, 2024
Comments
(1)
Strategies to simplify your BDD step definitions
JGiven seems to be a very interesting library. I'm exploring a Python framework called Guará that does a similar implementation. It uses Page Transactions Pattern and Intent-driven design to create test scenarios and production code in ubiquitous language. The syntax is like
inapp.given(UserIsLoggedIn, with_username='Joe').when(BuysAProduct, called='cellphone').then(ItShouldReport, 'finished')
Framework documentation: https://guara.readthedocs.io/en/latest/index.html