BDD Addict Newsletter June-July 2018

The monthly dose for BDD addicts… In June & July stories by Sam Hatoum, Angie Jones, Alister Scott, Thomas Sundberg & Steve Tooke …

Subscribe to the monthly newsletter at http://bddaddict.com so that you never miss it! (Did you get the May issue?)

Dear BDD Addicts,

It has not been a classic “hot summer” here this year so far, but it is quite enjoyable, warm but not hot with refreshing rain showers. We have just had a perfect week in the mountains and I hope you will also find time to rest… Don’t forget that well-written scenarios can help you to join back the project, so there is nothing to worry about. But even during your vacation you can show your addicton with the following out-of-office auto-reply… (thx to Jordi for the idea)

Scenario: Out of office

Given I am on vacation

When you send me a message

Then your mail will be answered on the <date of first work day> when I am back

But if you are still at work, here is your dose…

Source: unsplash.com (by J.Kelly Brito)

[BDD] Example mapping: the very first

Starting something new is never easy. If it is related to development process, then it is even harder. Many BDD practitioners have discovered that discussing illustrative examples and formulating them to Given-When-Then scenarios at the same time with the same set of people is not necessarily the best. It is better to focus on finding (or better: discovering) the illustrative examples first. For this purpose, a useful technique is called “Example Mapping” (described by Matt Wynne first, we also discuss it in detail in our “Discovery” book). Steve Tooke collected a set of useful steps to get started with example mapping…

Your first Example Mapping session (Steve Tooke, @tooky)

[Testing] Zero bug is not bug free

Teams waste a lot of time and effort for dealing (or not dealing) with bugs. It is obvious that every bug that has been found has to be handled somehow, but in many cases the way you handle it might have a significant implication of the “cost” of the bug. Sam Hatoum summarizes the zero-bug strategy and how he applied it to a project at BBC.

Zero-Bug Software Development (Sam Hatoum, @sam_hatoum)

Source: unsplash.com (by Nowshad Arefin)

A new book about how to get started with BDD

The BDD Books: DISCOVERY

Explore behaviour using examples

Written by the creator of SpecFlow and the author of The Cucumber for Java Book, this book will give the reader the inside information on how to get the most out of the discovery phase of Behaviour Driven Development (BDD).

See you there!

[Learn:Cucumber JVM] Transform Data Tables with Cucumber JVM 3

A massive amount of data makes the scenarios unreadable and unmaintainable. But even with smaller data sets the automation code can get messy, if you directly access the data table rows and cells from all across your code. The data table transformation helpers can improve the code readability and maintainability. Thomas Sundberg shows which options we have for this in Cucumber JVM 3 (Java)..

Data tables in Cucumber 3 (Thomas Sundberg, @thomassundberg)

[Learn:Cucumber JVM] Drive REST API with Rest-Assured

Testing a REST Wep API might sound complicated, because there are so many things to take care of: HTTP methods, response codes, serializing/deserializing message body, headers, authentication, cookies, https, … A good framework can be very helpful. Angie Jones introduces us to Rest-Assured, a Java framework for REST API testing.

Rest-Assured with Cucumber: Using BDD for Web Services Automation(Angie Jones, @techgirl1908)

Eager to learn more about implementing Specification by Example on the .NET platform? Are you a fan of exercise-based courses? Join the

BDD with SpecFlow for Devs & Testers

autumn course with Gáspár Nagy

19–21 September, 2018, London (UK)

It is also possible to book only the first day of the course, which focuses on the BDD fundamentals and scenario writing. Attending the first day that does not require coding skills.

EARLY BIRD tickets are available until 10h AUGUST: 450 GBP + VAT/ 1.050 GBP + VAT

[Testing] Tests with configurable behavior

Feature toggles are a very simple concept for changing the application behavior depending on some setting, like for A/B testing, canary releases or just as an easy rollback strategy. Such dynamic behavior can also be useful for testing, especially for end-to-end tests. Alister Scott talks about when and how feature toggles should be added to test code.

Feature Toggles for Automated e2e Tests (Alister Scott, @watirmelon)

If you liked this newsletter, please consider giving a 👏 or two and follow me for future stories. Thanks for reading.

Gaspar Nagy is the creator of SpecFlow, developer of SpecSync, working as a trainer & coach. Check out his public SpecFlow, BDD Vitals or Cucumber.jscourses or request an in-house private course for your team. He is a bdd addict and as such he’s editing a monthly newsletterabout interesting articles, videos and news related to BDD, SpecFlow and Cucumber.

Originally published at gasparnagy.com on July 11, 2018.

creator of SpecFlow, coach, trainer, BDD addict