Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Need ideas for data comparison for testing
Message
From
05/03/2005 20:06:55
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
 
To
05/03/2005 19:57:53
Jay Johengen
Altamahaw-Ossipee, North Carolina, United States
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows 2000 SP4
Database:
Visual FoxPro
Miscellaneous
Thread ID:
00993059
Message ID:
00993062
Views:
15
>Looking for some basic concepts. I'm planning on developing a tool that will take snapshots of tables after data changes and compare them in order to develop some delta results. These results will be used primarily by already-existing calculation processes to verify financial balances, help determine impact on the overall system, create cases for regression testing, etc. I will include the ability to create sample data based on specific test case criteria. Before I start getting into it, I was hoping for some general feedback.

Hi Renoir,

My suggestion would be, instead of comparing existing data, save an "audit trail" as the data is being changed, i.e., use a trigger to store information about when data was changed to what table. Unlike the more or less primitive example in my introductory article - http://www.utmag.com/wconnect/wc.dll?9,7,10,1476 - you should aim for having data in a machine-readable format.

Otherwise, make sure that each table has a PK, on which you can compare different versions, with standard SQL commands.

HTH,

Hilmar.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform