The deadly sins of BDD scenarios - Created by Mark Winteringham / @2bittester © 2017

The deadly sins of


BDD scenarios

Mark Winteringham

2bittester

mwtestconsultancy.co.uk

@2bittester

lnked.in/markwinteringham


Sin 1

scenario intro 1

OR

Using scenarios as test cases

test case example
test case example 2
test case example 2

http://theverybesttop10.com/pimp-my-ride-fails/

test case example 2

https://sullivanstory.files.wordpress.com/2013/10/image-axd.jpeg

How to atone?


  • Stop using scenarios as test scripts
  • Start getting the team involved in developing scenarios
  • Be wary of tools

Sin 2

scenario intro 2

OR

Documenting acceptance criteria as scenarios

Examples with no a/c
Blah blah blah blah

https://www.flickr.com/photos/dalbera/3600301569/

'We need to create a new scenario for this requirement'


Scope creep!

How to atone?

Example mapping

https://cucumber.io/blog/2015/12/08/example-mapping-introduction

Example mapping

Sin 3

scenario intro 3

OR

Automated scenarios as acceptance tests

equals

Awesome automation

Imperative

imperative scenario

Declarative

declarative scenario

"You can't specify love"

Wife automation

http://uk.businessinsider.com/programmer-automates-his-job-2015-11

muscles in mirror

Illusions of coverage

Fart model

Regression Testing, the F.A.R.T Model - https://www.youtube.com/watch?v=P2PUXqasvGI

Regression checking antipatterns

How to atone?


  • Decouple your automation strategy from your scenarios
  • Identify risks first, tools second
  • Put the human back in the centre of your automation

Let's recap

We help deliver what the business wants as a team by using scenarios to enable discussion and collaboration not by:

  • Using scenarios/examples as test scripts
  • Using scenarios as A/Cs
  • Basing your automation on scenarios alone

Thank you

mwtestconsultancy.co.uk

@2bittester

lnked.in/markwinteringham

http://www.slideshare.net/alan_parkinson/testing-requirements-with-bdd https://ebiinterfaces.wordpress.com/2015/02/13/ux-design-bioinformatics-and-cars/