April: 9 Patterns in Automated Testing

22
9 Patterns in Automated Testing Paul Merrill Consultant, Trainer Beaufort Fairmont

description

Many of the problems we face in Automated Testing aren't unique. They are problems we've seen before and will see again. Knowing these patterns helps us more quickly understand what will and won't work in a given situation. This presentation will go over 9 patterns in automated testing. Most of them are domain independent -- they are common across different businesses, technology stacks, and architectures. Join us to learn nine automated testing patterns and get access to many others. About the speaker: Paul Merrill is a Consultant and Trainer for Beaufort Fairmont. He's spent the last 12 years developing applications for a wide range of industries, from Healthcare to Advertising to Mobile. Paul spends his time working to "rid the world of bad code" through training and player-coach engagements working with companies to automate their testing efforts and use software engineering best practices. Beaufort Fairmont is the software industry's source for automated testing player-coach engagements, consulting, and training. Our engineers have a passion for simplifying the complicated process of automated testing, allowing companies to take advantage of the many benefits of automated quality assurance. For more information, visit us at www.beaufortfairmont.com.

Transcript of April: 9 Patterns in Automated Testing

Page 1: April: 9 Patterns in Automated Testing

9 Patterns in AutomatedTesting

Paul Merrill

Consultant, TrainerBeaufort Fairmont

Page 2: April: 9 Patterns in Automated Testing

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

Page 3: April: 9 Patterns in Automated Testing

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

Page 4: April: 9 Patterns in Automated Testing

What is a Pattern?

Copyright Beaufort Fairmont, LLC, 2013

Page 5: April: 9 Patterns in Automated Testing

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

Page 6: April: 9 Patterns in Automated Testing

Copyright Beaufort Fairmont, LLC, 2013

Page 7: April: 9 Patterns in Automated Testing

Working Definition:

Something we’ve experienced multipletimes and from which we’ve learned

Copyright Beaufort Fairmont, LLC, 2013

Page 8: April: 9 Patterns in Automated Testing

David Kolb’s Learning Cycle

Copyright Beaufort Fairmont, LLC, 2013

Page 9: April: 9 Patterns in Automated Testing

AutomationPatterns.org

Copyright Beaufort Fairmont, LLC, 2013

Page 10: April: 9 Patterns in Automated Testing

The Break-down

• Framework Design• Test Case Design• Infrastructure• Behavioral

Copyright Beaufort Fairmont, LLC, 2013

Page 11: April: 9 Patterns in Automated Testing

Isolate Test Cases

Copyright Beaufort Fairmont, LLC, 2013

Page 12: April: 9 Patterns in Automated Testing

Test Case Fails for Oneand Only One Reason

Copyright Beaufort Fairmont, LLC, 2013

Page 13: April: 9 Patterns in Automated Testing

Pass or Fail Only

Copyright Beaufort Fairmont, LLC, 2013

Page 14: April: 9 Patterns in Automated Testing

AntiPattern - Record andPlayback

Copyright Beaufort Fairmont, LLC, 2013

Page 15: April: 9 Patterns in Automated Testing

Developers Can Run Tests

Copyright Beaufort Fairmont, LLC, 2013

Page 16: April: 9 Patterns in Automated Testing

Integrate Test Cases intoContinuous Integration

Copyright Beaufort Fairmont, LLC, 2013

Page 17: April: 9 Patterns in Automated Testing

Create Test Environmentwith Single Button Press

Copyright Beaufort Fairmont, LLC, 2013

Page 18: April: 9 Patterns in Automated Testing

AntiPattern - l33t automationarchitect

Copyright Beaufort Fairmont, LLC, 2013

Page 19: April: 9 Patterns in Automated Testing

Write Test Cases Fast

Copyright Beaufort Fairmont, LLC, 2013

Page 20: April: 9 Patterns in Automated Testing

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

Page 21: April: 9 Patterns in Automated Testing

Paul MerrillConsultant &

Trainer@dpaulmerrill

Page 22: April: 9 Patterns in Automated Testing

9 Patterns in AutomatedTesting

Paul Merrill

Consultant, TrainerBeaufort Fairmont