Presentation is loading. Please wait.

Presentation is loading. Please wait.

Automated and Repeatable Test Cases for SQL Server Development

Similar presentations


Presentation on theme: "Automated and Repeatable Test Cases for SQL Server Development"— Presentation transcript:

1 Automated and Repeatable Test Cases for SQL Server Development
Stefan Riedel |

2 Housekeeping Mobile Phones Evaluations Time

3 Stefan Riedel Working with MS SQL Server for more than 16 years.
Data Warehouse and Business Intelligence solutions. Waterfall and Agile Development Methodologies.

4 Automated and Repeatable Test Cases for SQL Server Development
Waterfall  Agile Manual  Automated Although Agile projects need automated testing, all projects need testing.

5 Test Driven Development
Create test then write code to pass test. Unit Testing, Functional Testing, Acceptance Testing. Testing system develops over time.

6 Software Setup Windows 8.1 Pro SQL Server 2014 Developer
Visual Studio 2013 Community Edition -- SQL Server Data Tools (SSDT) included -- Visual Studio 2013 BI Data tools Installed Adventure Works OLTP SSDB on local server Installed Adventure Works OLAP SSDB on local server Installed Adventure Works OLAP SSAS on local server

7 Story/Requirement Story/Requirement To analyse how people first find out about our company. Tasks Update stored procedures that insert, update or delete fields about a person.

8 Test Driven Development Demo
10. Write test 20. Run test and see it fail 30. Write code so test will pass 40. Run test and see it pass 50. GOTO 10

9 Other tests Standards and Best Practice Primary Key on all tables
Naming Standards using DMVs

10 Other tests (Cont.) Linked Server to check SSAS values

11 What Next? Test SSIS ETL from OLTP DB to OLAP DB. Other possible tests
FK relationships Indexes SQL Server properties

12 What Else? TSQLUnit, tSQLt ssisUnit Redgate, Varigence
Cucumber, Specflow .NET

13

14


Download ppt "Automated and Repeatable Test Cases for SQL Server Development"

Similar presentations


Ads by Google