Cucumber

Make The Most

Giridhar Rajkumar

 

Giridhar Rajkumar

Test Automation Architect

Live in Norwich, United Kingdom

Write articles & books on Test Automation

Speak at several meetups & conferences

Love to cycle & most recently, running

giridhar rajkumar

grajk88

http://giridharrajkumar.com

@vgrk2017

About Me

Agenda

Brief intro to Cucumber

Brief intro to Gherkins

Gherkins - Best Practices

Cucumber v6 Features - Demo

Recap

Cucumber JVM v6 Features

Questions

Cucumber Courses

2. Cucumber with JavaScript by Gavin Samuels-

https://testautomationu.applitools.com/cucumber-javascript-tutorial/

Cucumber - An Intro

What is BDD?

Behavior-driven development (BDD) is an Agile software development process that encourages collaboration among developers, QA and non-technical or business participants in a software project. (Wikipedia)

BDD is NOT test automation

Cucumber - An Intro

What is Cucumber?

A cucumber is a tool based on Behavior Driven Development (BDD) framework which is used to write acceptance tests for the web application.

(ref - https://softwaretestinghelp.com)

Flavours of Cucumber

Cucumber Open

CucumberStudio

Open Source

Commercial

Cucumber for JIRA

Commercial

CucumberStudio

Cloud based & On-prem setup

Gherkin Editor

Test Management

Historical Data

Single source of truth

Excellent Living Documentation

Benefits

Strong collaboration between technical & non-technical people

Easily understandable acceptance tests

Automated acceptance tests

Gherkin formatted acceptance criteria

Living Documentation

Gherkins - Annotations

Gherkin Scenarios should not be written from the team member like the developer, tester perspective. It should always be user perspective

Gherkins - Best Practices

Golden rules

1. In a given scenario, there should be only one Given, When and Then steps

2. Maximum usage of 2 And steps

3. Scenario should not exceed more than 5 steps

Gherkins - Best Practices

Gherkins - Best Practices

Wrong

Right

Gherkins & BDD

Misunderstandings

1. Testers should write GWTs (Given When Then)

2. BDD means Business Driven Development

3. Gherkins are not your Test Steps

4. BDD means Test Automation

Cucumber JVM v6

New Keywords

Rules

Ability

Scenarios

Scenario Template

Business Need

Online Reporting

Demo

Recap

Brief intro to Cucumber

Brief intro to Gherkins

Gherkins - Best Practices

Cucumber v6 Features - Demo

Cucumber JVM v6 Features

Questions?

Cucumber - Make The Most

By Giridhar Rajkumar

Cucumber - Make The Most

  • 82