Database Testing - Minimizing "If it can break, it will." Mladen Prajdić SQL Server MVP...

Post on 30-Mar-2015

220 views 4 download

Tags:

Transcript of Database Testing - Minimizing "If it can break, it will." Mladen Prajdić SQL Server MVP...

Database Testing - Minimizing"If it can break, it will."

Mladen PrajdićSQL Server MVP

@MladenPrajdic mladenp@gmail.com

http://weblogs.sqlteam.com/mladenp

Welcome to Slovenia.

Population: Awesome!

About me1999...

How many are doing database testing?

How many are doing any kind of testing?

Quick poll

Agenda

• Why test• Non technical obstacles• What do we need• Types of testing• Examples

Why test?

Confidence in code

Why test?

Always valid documentation

Why test?

Sleeping well at night

Agenda

• Why test• Non technical obstacles• What do we need• Types of testing• Examples

Non technical obstacles

Peers

Non technical obstacles

Management

Non technical obstacles

You. Discipline!

Agenda

• Why test• Non technical obstacles• What do we need• Types of testing• Examples

What do we need

Test lab

What do we need

Testing tool

What do we need

Source control

What do we need

Schema comparison tool

What do we need

(Semi)Continuous integration

Agenda

• Why test• Non technical obstacles• What do we need• Types of testing• Examples

Types of testing

White box Black box

Types of testing

Unit testing

Types of testing

Integration & acceptance testing

Types of testing

Error testing

Types of testing

Stress testing

Types of testing

Other...

Agenda

• Why test• Non technical obstacles• What do we need• Types of testing• Examples

Examples

Testing database interface

Testing schema

Testing tables, views, UDFs

Testing stored procedures

The most important slide of the presentation!

Test RESTORING database BACKUPS!

Quick summary

• Start working around obstacles• Think about what you need to test• Get tooled up• Do it!• Sleep better and spend more time doing other

things you like

• So....

Quick summary... please test. Because...

?@MladenPrajdic mladenp@gmail.com

http://weblogs.sqlteam.com/mladenp

Picture sourceshttp://www.flickr.com/photos/dvids/3345063374/http://en.wikipedia.org/wiki/File:Tightrope_walking.jpghttp://www.flickr.com/photos/minchki/2811335149/http://cheezburger.com/txperson/lolz/View/2243660544http://www.flickr.com/photos/22577165@N07/2282032693/http://www.flickr.com/photos/gadl/320300354/http://static.divbyzero.nl/facepalm/http://www.flickr.com/photos/11284224@N00/4323983731http://en.wikipedia.org/wiki/File:Wine_on_the_Wall.jpghttp://www.flickr.com/photos/pnts/2496548941/sizes/z/in/photostream/http://www.flickr.com/photos/design-dog/1366460627/http://www.flickr.com/photos/nordearigamarathon/4649999908/in/photostream/http://www.flickr.com/photos/nickwebb/3016498475/http://www.flickr.com/photos/augu/1334255992/http://www.flickr.com/photos/hortense/3196460719/http://www.flickr.com/photos/54544400@N00/5181596187/http://www.flickr.com/photos/quinnanya/3570356861/http://commons.wikimedia.org/wiki/File:Cuba-old_car.jpghttp://www.flickr.com/photos/calciphus/3661636507/