Scrumcrazy_header5.jpg
scrumcrazybtn.jpg

For Training, Coaching, and Consulting engagements, please contact me for details on how I can help your organization.


Category: Scrum Patterns / Optional Scrum Patterns / (User) Story Testing Patterns

Pattern: Given/When/Then


Also Known As:
Warning! Patterns are not a concrete methodology, and using only documented patterns is a sure fire way to destroy creativity and innovation. More here.

Pattern Summary:

  • Write a story test using a template that includes preconditions (GIVEN), a trigger event (WHEN), and some verifications of correct system behavior (THEN).

Possibly Good For:

  • Tests that require
    • a lot of preconditions or setup, OR
    • setup that is important or easily forgotten
  • Tests that have a specific, non obvious trigger
  • Tests where there are few expected outputs

Possibly Bad For:

  • Tests that have unimportant/simple/obvious preconditions
  • Tests where there are multiple different inputs and multiple different outputs
  • Tests where a single Given/When/Then only describes one of numerous very similar test scenarios

Pattern Details & References:



Pattern Contributors:

  • Charles Bradley

Q. How can I contribute my own Daily Scrum (or just general Scrum) patterns?

Q. How can I give feedback on Scrum Patterns?



coaching(4).jpgForScrumMasters.jpgForProductOwners.jpgForScrumDevelopers.jpgPresentations.jpg