Top Banner
55

CIRCUIT 2015 - Free Beer and Testing

Aug 18, 2015

Download

Technology

Circuit
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: CIRCUIT 2015 - Free Beer and Testing
Page 2: CIRCUIT 2015 - Free Beer and Testing

Free beer* and testing

*Free beer not included

Page 3: CIRCUIT 2015 - Free Beer and Testing

Why Test?

Page 4: CIRCUIT 2015 - Free Beer and Testing

We test to either...

Page 5: CIRCUIT 2015 - Free Beer and Testing

verify what is expected...

We test to either...

Page 6: CIRCUIT 2015 - Free Beer and Testing

verify what is expected...

We test to either...

or to learn something completely new

Page 7: CIRCUIT 2015 - Free Beer and Testing

<insert cliche stock photo here>

Page 8: CIRCUIT 2015 - Free Beer and Testing

verification...

Page 9: CIRCUIT 2015 - Free Beer and Testing

...asserting actual response against expected outcome

Page 10: CIRCUIT 2015 - Free Beer and Testing

requirements and specifications...

Page 11: CIRCUIT 2015 - Free Beer and Testing

...what we normally think of as Testing

Page 12: CIRCUIT 2015 - Free Beer and Testing

https://msdn.microsoft.com

Unit Tests

Functional Tests

Acceptance Tests

Performance Tests SLAs

Page 13: CIRCUIT 2015 - Free Beer and Testing

...exploratory testing

Page 14: CIRCUIT 2015 - Free Beer and Testing

...learning something completely new

Page 15: CIRCUIT 2015 - Free Beer and Testing

structured exploratory testing

Page 16: CIRCUIT 2015 - Free Beer and Testing

answering a specific

Page 17: CIRCUIT 2015 - Free Beer and Testing

“What does the system do under

these conditions?”

Page 18: CIRCUIT 2015 - Free Beer and Testing

“What is the user’s experience when

making a transaction with a gift card?”

Page 19: CIRCUIT 2015 - Free Beer and Testing

“How many transactions can it

handle?”

Page 20: CIRCUIT 2015 - Free Beer and Testing

ad hoc testing

Page 21: CIRCUIT 2015 - Free Beer and Testing

What is Testing?

Page 22: CIRCUIT 2015 - Free Beer and Testing

system under test

Page 23: CIRCUIT 2015 - Free Beer and Testing

Testing is observation or inspection of the system under test in different, controlled conditions

system under test

Page 24: CIRCUIT 2015 - Free Beer and Testing

only one change at a time

system under test

Page 25: CIRCUIT 2015 - Free Beer and Testing

Quantitative (Measurable)

system under test

Page 26: CIRCUIT 2015 - Free Beer and Testing

Qualitative (Descriptive)

system under test

Page 27: CIRCUIT 2015 - Free Beer and Testing

Testing is the Feed

Page 28: CIRCUIT 2015 - Free Beer and Testing

Testing is the Feed back into the next iteration...

Page 29: CIRCUIT 2015 - Free Beer and Testing

...the bringing of the “outside” into the system

Page 30: CIRCUIT 2015 - Free Beer and Testing

Testing is the cornerstone of...

Page 31: CIRCUIT 2015 - Free Beer and Testing

DRUMMER WANTED https://www.facebook.com/TheEmpiricalMethod

Page 32: CIRCUIT 2015 - Free Beer and Testing
Page 33: CIRCUIT 2015 - Free Beer and Testing

XP test driven development test driven development

Page 34: CIRCUIT 2015 - Free Beer and Testing

XP test driven development

start with what it should do

Page 35: CIRCUIT 2015 - Free Beer and Testing

XP test driven development

start with what it should do

Page 36: CIRCUIT 2015 - Free Beer and Testing

XP test driven development

unit through integration

Page 37: CIRCUIT 2015 - Free Beer and Testing

BDD acceptance test driven development

executing requirements

full stack

Page 38: CIRCUIT 2015 - Free Beer and Testing

When to Test?

Page 39: CIRCUIT 2015 - Free Beer and Testing

As early as possible

Page 40: CIRCUIT 2015 - Free Beer and Testing

like when the requirements are being specified

Page 41: CIRCUIT 2015 - Free Beer and Testing

write once, test once

Page 42: CIRCUIT 2015 - Free Beer and Testing

did something change?

Page 43: CIRCUIT 2015 - Free Beer and Testing

did something change?

analyze impact of change to system

Page 44: CIRCUIT 2015 - Free Beer and Testing

well structured code (SOLID) eliminates dependency between conditions and minimizes tests

use impact and conditional analysis to

determine the structure of your

code

Page 45: CIRCUIT 2015 - Free Beer and Testing

the cost of development

AUTOMATION

Page 46: CIRCUIT 2015 - Free Beer and Testing

How to test?

Page 47: CIRCUIT 2015 - Free Beer and Testing

testing is a craft...

Page 48: CIRCUIT 2015 - Free Beer and Testing

analyze relevant conditions and their dependencies

analyze

Page 49: CIRCUIT 2015 - Free Beer and Testing

design minimum number of test scripts to exercise all conditions and dependencies

design

Page 50: CIRCUIT 2015 - Free Beer and Testing

execute

Page 51: CIRCUIT 2015 - Free Beer and Testing

Equivalence Class Partitioning

Boundary

value

analysis

Page 52: CIRCUIT 2015 - Free Beer and Testing

GIVEN WHEN THEN

Page 53: CIRCUIT 2015 - Free Beer and Testing

defined behavior

GIVEN WHEN THEN

Page 54: CIRCUIT 2015 - Free Beer and Testing

well written tests are more important than

well written code because with them the system is defined and

can always be recreated

...or refactored

the system is defined by its tests, NOT its implementing software

Page 55: CIRCUIT 2015 - Free Beer and Testing

the end.