simonova csedays

35
Тестирование в Microsoft SQL Server Катерина Симонова Разработчик отдела тестирования Microsoft SQL Server Redmond, WA, USA

Upload: lilosea

Post on 22-May-2015

218 views

Category:

Documents


5 download

TRANSCRIPT

  • 1. Microsoft SQL Server Redmond, WA, USA

2. Microsoft SQL Server Microsoft SQL Server 3. MS SQL Server MS SQL Server Oracle IBM DB2 MySQL http://www.microsoft.com/sqlserver/en/us/product- info/competitor-compare.aspx 4. MS SQL Server ~1200 : SQL Engine (~250 ) Data Programmability & Manageability Business Intelligence Data Warehousing (Central Services) 5. SDET Software Development Engineer in Test PM Program Manager SDE Software Development Engineer SDE SDET ~ 1:1 6. SQL Server engine Language Processing (Parse/Bind, Statement/Batch Execution) Query Optimization (Plan Generation, Statistics, Costing) Query Execution (Query Operators, Memory Grants, Parallelism) Storage Engine (Access Methods, Database Page Cache, Locking, Transactions, ) SQLOS (Schedulers, Buffer Pool, Memory Management, Synchronization Primitives) Utilities(DBCC, Backup/Restore,BCP,) 7. SDET Lead vs. Individual Contributor Senior SDET (Test architect, ) (~5% ~ 1 ) Performance reviews Peer reviews - diversity 8. ? ? 9. SDET : Service PacksCumulative Updates : Virtual Team , 10. (Functional) (Stress) (Performance and scalability) 11. 12. SQL Dumper AutoVerify 13. 14. 1. CREATE TABLE table 2. INSERT INTO table 3. CREATE CLUSTERED INDEX index ON table 4. - 5. DBCC CHECKDB 6. DROP INDEX index 7. - 8. DROP TABLE table 15. : pipeline Create Index - InsertCreate Table Diff results DBCCAuto File Schema Data Gen ClusterNon-cluster, Column 16. , BranchesBuilds 17. , 18. Transaction operations: begin tran, commit, rollback, savepoint etc. DDL DML pre-conditions ... 19. + + - - (code coverage) + - - (learning curve) - 20. (Supportability) , DMVs Catalog ViewsSystem Tablesstored procedures Server log (ERRORLOG) Memory dumps Windows Event log XEventsSQL Trace events 21. (testability hooks) 22. server crash trace flags / CSS Trace flags 23. XEvents SQL Extended Events , SQL Server 2008 Synchronous Target Sleep Abort thread Abort transaction Kill server Associate callback function 24. XEvents XEvents Xevent - 25. XEvents 2-phase commit 1 2 1. ! 1. ! 2. ! 2. ! 3. Commit 3. Commit 26. XEvents 1 2 1. 1. 3. Rollback 3. Rollback 2. 2. XEvent -> Kill Server 27. Stackhasher stack trace Simulated exceptions Out-of-resource errors Interrupts (control-C) Fuzzing Programming interfaces SQL statements File formats Network protocols 28. (Central services), 29. : OS SQL Version: BranchBuild Test store : SQL Server Health monitor AutoVerify: 30. 31. AutoVerify (file bug) Call Stack , - 32. AutoVerify assertsAVs , -, 3 ~267 000 ; ~16 000 ; ~30 000 - ~50% ~90% - 33. SQL Dumper (Access Violation) assert (*.mdmp) , offline- Microsoft Watson ( ) 34. , 35. ! -, , University of Vermont, MS in Computer Science C 2007 Microsoft, SDET SQL Server email: [email protected]