9 Patterns in AutomatedTesting
Paul Merrill
Consultant, TrainerBeaufort Fairmont
What’s the next number?
{2, 4, 6, …}{1, 2, 3, 5, …}
{2, 3, 5, 7, 11, …}{3, 1, 4, 1, 5, …}
Copyright Beaufort Fairmont, LLC, 2013
They are…
{2, 4, 6, 8, 10} – Even Numbers1, 2, 3, 5, 8, 13} - Fibonacci Sequence
2, 3, 5, 7, 11, 13, 17} – Primes3, 1, 4, 1, 5, 9, 2} - Digits of Pi
Which of these are patterns?
Copyright Beaufort Fairmont, LLC, 2013
What is a Pattern?
Copyright Beaufort Fairmont, LLC, 2013
pattern 1 (ˈpæt " n) — n
1. an arrangement of repeated orcorresponding parts, decorativemotifs, etc: although the notes seemed random, acareful listener could detect a pattern
**World English Dictionary
Copyright Beaufort Fairmont, LLC, 2013
Copyright Beaufort Fairmont, LLC, 2013
Working Definition:
Something we’ve experienced multipletimes and from which we’ve learned
Copyright Beaufort Fairmont, LLC, 2013
David Kolb’s Learning Cycle
Copyright Beaufort Fairmont, LLC, 2013
AutomationPatterns.org
Copyright Beaufort Fairmont, LLC, 2013
The Break-down
• Framework Design• Test Case Design• Infrastructure• Behavioral
Copyright Beaufort Fairmont, LLC, 2013
Isolate Test Cases
Copyright Beaufort Fairmont, LLC, 2013
Test Case Fails for Oneand Only One Reason
Copyright Beaufort Fairmont, LLC, 2013
Pass or Fail Only
Copyright Beaufort Fairmont, LLC, 2013
AntiPattern - Record andPlayback
Copyright Beaufort Fairmont, LLC, 2013
Developers Can Run Tests
Copyright Beaufort Fairmont, LLC, 2013
Integrate Test Cases intoContinuous Integration
Copyright Beaufort Fairmont, LLC, 2013
Create Test Environmentwith Single Button Press
Copyright Beaufort Fairmont, LLC, 2013
AntiPattern - l33t automationarchitect
Copyright Beaufort Fairmont, LLC, 2013
Write Test Cases Fast
Copyright Beaufort Fairmont, LLC, 2013
Patterns that don’t exist
The human tendency to see patterns that
do not actually exist is calledapophenia.
Misperception of patterns in random
data is called pareidolia.
Copyright Beaufort Fairmont, LLC, 2013
Paul MerrillConsultant &
Trainer@dpaulmerrill
9 Patterns in AutomatedTesting
Paul Merrill
Consultant, TrainerBeaufort Fairmont