SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


Database testing. The ferret and the rabbit


Database testing. The ferret and the rabbit

Author
Message
Phil Factor
Phil Factor
SSCertifiable
SSCertifiable (7.5K reputation)SSCertifiable (7.5K reputation)SSCertifiable (7.5K reputation)SSCertifiable (7.5K reputation)SSCertifiable (7.5K reputation)SSCertifiable (7.5K reputation)SSCertifiable (7.5K reputation)SSCertifiable (7.5K reputation)

Group: General Forum Members
Points: 7508 Visits: 3064
Comments posted to this topic are about the item Database testing. The ferret and the rabbit


Best wishes,

Phil Factor
Simple Talk
Robert.Sterbal
Robert.Sterbal
Ten Centuries
Ten Centuries (1K reputation)Ten Centuries (1K reputation)Ten Centuries (1K reputation)Ten Centuries (1K reputation)Ten Centuries (1K reputation)Ten Centuries (1K reputation)Ten Centuries (1K reputation)Ten Centuries (1K reputation)

Group: General Forum Members
Points: 1003 Visits: 2000
I've worked with someone who takes out a calculator. He uses it to approach the data from a different angle. It often works.
Nadrek
Nadrek
SSCrazy Eights
SSCrazy Eights (8K reputation)SSCrazy Eights (8K reputation)SSCrazy Eights (8K reputation)SSCrazy Eights (8K reputation)SSCrazy Eights (8K reputation)SSCrazy Eights (8K reputation)SSCrazy Eights (8K reputation)SSCrazy Eights (8K reputation)

Group: General Forum Members
Points: 8010 Visits: 2741
Personally, I'd say you should always check important calculations in some "by hand" way; just because you think you programmed the software right, doesn't mean the results come out.

Special rounding and age calculation rules are common (leap day); implicit conversions can be problematic... and who else remembers the Pentium floating point bug?

The ability to deliberately try to break the system in every reasonable way... over and over and over again... is invaluable in a tester.
David Marble
David Marble
SSC-Enthusiastic
SSC-Enthusiastic (112 reputation)SSC-Enthusiastic (112 reputation)SSC-Enthusiastic (112 reputation)SSC-Enthusiastic (112 reputation)SSC-Enthusiastic (112 reputation)SSC-Enthusiastic (112 reputation)SSC-Enthusiastic (112 reputation)SSC-Enthusiastic (112 reputation)

Group: General Forum Members
Points: 112 Visits: 76
I'll agree with it being difficult (impossible for me) for a developer to test their own code. Having a tester that revels in finding a way to bring your code screeching to a halt is what produces great applications.
david_wendelken
david_wendelken
Right there with Babe
Right there with Babe (736 reputation)Right there with Babe (736 reputation)Right there with Babe (736 reputation)Right there with Babe (736 reputation)Right there with Babe (736 reputation)Right there with Babe (736 reputation)Right there with Babe (736 reputation)Right there with Babe (736 reputation)

Group: General Forum Members
Points: 736 Visits: 480
Part of every calculation code deliverable should be another program that independently calculates key subtotals and totals.
The second program can be a set of sql scripts with instructions to fill in the parameters as you go, but they should exist. They should be built at the same time.

If the two programs do not agree, it's certain that the calculation in one of them is wrong. Reconciling the differences leads to additional assurance that the main program is working correctly.

If data is being transformed from one system into another as part of the calculation, the mechanism for doing so should include an audit data structure such that one can easily write a query that shows exactly which source records were included in exactly which destination subtotals. This is invaluable for quickly identifying lost or double-counted records. When built into the initial design, it's actually faster to build the main program and the double-check program than it is to build a main program by itself - that is - if the main program is expected to work perfectly.
SQLRNNR
SQLRNNR
SSC Guru
SSC Guru (111K reputation)SSC Guru (111K reputation)SSC Guru (111K reputation)SSC Guru (111K reputation)SSC Guru (111K reputation)SSC Guru (111K reputation)SSC Guru (111K reputation)SSC Guru (111K reputation)

Group: General Forum Members
Points: 111802 Visits: 18624
I think it is crucial to better applications to have dedicated testers working with the developers to find their bugs. Both working together will produce a much better application.



Jason AKA CirqueDeSQLeil
I have given a name to my pain...
MCM SQL Server, MVP


SQL RNNR

Posting Performance Based Questions - Gail Shaw

Geoffrey Wrigg
Geoffrey Wrigg
SSChasing Mays
SSChasing Mays (603 reputation)SSChasing Mays (603 reputation)SSChasing Mays (603 reputation)SSChasing Mays (603 reputation)SSChasing Mays (603 reputation)SSChasing Mays (603 reputation)SSChasing Mays (603 reputation)SSChasing Mays (603 reputation)

Group: General Forum Members
Points: 603 Visits: 428
I originally went to college for a technical communications degree, and IT was my fallback. I still consider writing to be my primary vocation, but IT has turned out to be where the money is.

Anyway, one of the main things I learned from my writing classes is that when it comes to editing, Rule #1 is "Love is far-sighted." That means that if you really want to make sure that what you've written is good, you need to either have someone else take a look at it or distance yourself from it by setting it aside for a day or two and then checking it yourself.

Rule #2 is that writing and editing are not identical skill sets (although they do have much in common). Someone who's a good writer might not necessarily be a good editor, and vice versa.

Phil's post shows that the same two principles hold true in the IT realm, particularly where programming and testing are concerned. I just thought it was cool that his message ties in so nicely with writing and editing. Neat post! Cool
Phil Factor
Phil Factor
SSCertifiable
SSCertifiable (7.5K reputation)SSCertifiable (7.5K reputation)SSCertifiable (7.5K reputation)SSCertifiable (7.5K reputation)SSCertifiable (7.5K reputation)SSCertifiable (7.5K reputation)SSCertifiable (7.5K reputation)SSCertifiable (7.5K reputation)

Group: General Forum Members
Points: 7508 Visits: 3064
Oh, yes, there is a lot in common with writing literature and software, and the editing and testing processes are likewise entwined. The one cannot work without the other, and they must have a mutual respect. All the famous authors I can think of relied on having a brilliant editor.


Best wishes,

Phil Factor
Simple Talk
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum







































































































































































SQLServerCentral


Search