STAREAST 2024 Tutorial: Writing Good Gherkin

SEE PRICING & PACKAGES

Monday, April 25, 2022 - 1:00pm to 4:30pm

Writing Good Gherkin

New

Gherkin is famous (perhaps infamous) for its Given-When-Then syntax. Although Gherkin is primarily used as a specification language for Behavior-Driven Development (BDD), it can also be used to define atomic test cases according to the Arrange-Act-Assert pattern. Teams can specify behaviors in Gherkin for better collaboration as well as automate test cases for those specifications using BDD frameworks like Cucumber. Even though Given-When-Then syntax seems easy at first, writing good Gherkin is actually quite challenging. In this workshop, we will learn how to carefully define desired product behaviors using the Gherkin language. This workshop will be hands-on: we will learn a little bit about BDD, and then we will put pen to paper to learn through writing. Along the way, we will pick up key recommended practices, like keeping scenarios concise and separating individual behaviors. By the end of this workshop, you will fully recognize how behavior specs and test cases are two sides of the same coin. Although we won't cover BDD test automation directly, you will be able to define awesome behaviors/tests that can be automated using any BDD test automation framework.

Andrew Knight
Cycle Labs

Andrew Knight, also known as “Pandy,” is the Automation Panda. He’s a software quality champion who loves to help people build better quality software. Currently, he works as the Principal Software Architect at Cycle Labs, focusing on test automation excellence for supply chains and warehouse management. An avid supporter of open source software, Pandy is a Playwright Ambassador as well as the lead developer for Boa Constrictor, the .NET Screenplay Pattern. On the side, he is writing a book on software testing with Manning Publications. Previously, Pandy worked at Applitools as the Principal Developer Advocate and Director of Test Automation University. Apart from software, Pandy works on vintage Volkswagens. Check out his tech blog at AutomationPanda.com, and follow him on Twitter at @AutomationPanda.