310 likes | 395 Views
Database Testing - Minimizing "If it can break, it will.". Mladen Prajdić SQL Server MVP. http:// weblogs.sqlteam.com/mladenp. @MladenPrajdic. mladenp@gmail.com. About me. 1999. Welcome to Slovenia . Population : A wesome !. Quick poll. How many are doing database testing?.
E N D
Database Testing - Minimizing"If it can break, it will." Mladen Prajdić SQL Server MVP http://weblogs.sqlteam.com/mladenp @MladenPrajdic mladenp@gmail.com
About me 1999... Welcome to Slovenia. Population: Awesome!
Quick poll How many are doing database testing? How many are doing any kind of testing?
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...
? http://weblogs.sqlteam.com/mladenp @MladenPrajdic mladenp@gmail.com
Picture sources http://www.flickr.com/photos/dvids/3345063374/ http://en.wikipedia.org/wiki/File:Tightrope_walking.jpg http://www.flickr.com/photos/minchki/2811335149/ http://cheezburger.com/txperson/lolz/View/2243660544 http://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/4323983731 http://en.wikipedia.org/wiki/File:Wine_on_the_Wall.jpg http://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.jpg http://www.flickr.com/photos/calciphus/3661636507/