The Joy

of Functional Testing

An Introduction with SpecFlow

JoyOfFunctionalTesting.seankilleen.com

Hi! 👋 I'm Sean.

Let's Do this

  • Why this matters
  • Specification by example
  • Functional / Acceptance Testing
  • Gherkin syntax
  • Benefits
  • SpecFlow demos

Why this matters

Why this matters

Confusion

Why this matters

Trust

Why this matters

Feature Fighting

Functional &

Acceptance Tests

Gherkin Syntax

Gherkin Syntax

  • Given
  • When
  • Then

Gherkin Syntax

Old and busted:

A system shall allow login access 

Gherkin Syntax

New hotness:

Given I am on the home page
  And I have clicked the login button
When I enter a valid username
  And I enter a valid password
  And I login
Then I should be redirected to my profile page

Benefits

Benefits

Consensus

Benefits

Shift to the Left

Benefits

Sign-Off

Benefits

Missed Requirements

SpecFlow

Thanks!