Testing spatial methods in SQL Server 11.0 Branislav Uzelac Nemanja Matkovic Microsoft Development...

9
Testing spatial methods in SQL Server 11.0 Branislav Uzelac Nemanja Matkovic Microsoft Development Center Serbia Danica Porobic EPFL Lausanne, Switzerland

Transcript of Testing spatial methods in SQL Server 11.0 Branislav Uzelac Nemanja Matkovic Microsoft Development...

Page 1: Testing spatial methods in SQL Server 11.0 Branislav Uzelac Nemanja Matkovic Microsoft Development Center Serbia Danica Porobic EPFL Lausanne, Switzerland.

Testing spatial methods in SQL Server 11.0

Branislav UzelacNemanja Matkovic

Microsoft Development Center Serbia

Danica Porobic

EPFL Lausanne, Switzerland

Page 2: Testing spatial methods in SQL Server 11.0 Branislav Uzelac Nemanja Matkovic Microsoft Development Center Serbia Danica Porobic EPFL Lausanne, Switzerland.

Introduction to Spatial

• Geometry

• Geography

Page 3: Testing spatial methods in SQL Server 11.0 Branislav Uzelac Nemanja Matkovic Microsoft Development Center Serbia Danica Porobic EPFL Lausanne, Switzerland.

Testing strategy at a glanceInput Data

Testing methodsVerification

methodsWorld data

Reference library

Static cases

Generated Data

“Exact equal”

Identity cases

Transformed World data “Approximate

equal”

Repro minimization

Minimize

File a bug!

Page 4: Testing spatial methods in SQL Server 11.0 Branislav Uzelac Nemanja Matkovic Microsoft Development Center Serbia Danica Porobic EPFL Lausanne, Switzerland.

Data generators• Objects tailored for specific aspects of testing

Page 5: Testing spatial methods in SQL Server 11.0 Branislav Uzelac Nemanja Matkovic Microsoft Development Center Serbia Danica Porobic EPFL Lausanne, Switzerland.

Data generators

Page 6: Testing spatial methods in SQL Server 11.0 Branislav Uzelac Nemanja Matkovic Microsoft Development Center Serbia Danica Porobic EPFL Lausanne, Switzerland.

Testing strategy

• Mathematical identities

BABA

ABBABABA \\

Identity formula = = = A / B = B / A

= u

A B

Page 7: Testing spatial methods in SQL Server 11.0 Branislav Uzelac Nemanja Matkovic Microsoft Development Center Serbia Danica Porobic EPFL Lausanne, Switzerland.

Minimization of bug repro steps

• Large objects may have thousands of points• Hard to analyze and pinpoint the problem• Solution: minimize!

Page 8: Testing spatial methods in SQL Server 11.0 Branislav Uzelac Nemanja Matkovic Microsoft Development Center Serbia Danica Porobic EPFL Lausanne, Switzerland.

Minimization of bug repro steps

• Success rate

72%

28%

Successfully minimized Failed to minimize

04080

120160