<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:times new roman, new york, times, serif;font-size:12pt"><div>Bart and Julian,<br><br>I have read with interest your latest exchanges on testing and think it is all going in the right direction.<br><br>I have only two points to add about testing a dynamic database.<br><br>1) A situation in which we launch a process/thread that sends updates to a database at the same time as we perform MDX queries on it can best be tested by ensuring that we test invariant statistics that can be perturbed in transactions change.&nbsp; Some examples:<br>a)&nbsp; Always add transactions with a fact in one fact table A and its opposite in fact table B.&nbsp; Do statistics on the sum of these two tables.<br>b) Find the ratio of two sums over two measures and add in paired but separate transactions facts to the two tables.&nbsp; E.g. add one row to table A with amount X and two rows to table B
 with each amount X.&nbsp; Compare that the sums are in a ratio of 2:1.<br>c) We can pre-calculate the possible consistent values in a separate static table.&nbsp; E.g. if we stream facts to a table X then we can know the sum of the facts and the count of the facts that together can be correct.&nbsp; Run this as MDX and compare if it is a valid pair.<br>d) Alternatively we can obtain a timestamp or other transaction ID as Bart seems to already do in his DataSourcePlugIn and use this for a lookup of expected values.<br><br>2) The second idea is that we can have threads signal each other so that we do actually get deterministic behaviour.&nbsp; This is another reason for my design in the TaskSystem/Tasks.&nbsp; We can make a debugging TaskSystem that checks it got the right Tasks and then check deterministically by running different orders and interleaving deterministically external events.<br><br>Michael<br></div></div><br>
                <hr size="1"> 
Découvrez une nouvelle façon d'obtenir des réponses à toutes vos questions ! 
Profitez des connaissances, des opinions et des expériences des internautes sur <a href="http://fr.rd.yahoo.com/evt=42054/*http://fr.answers.yahoo.com">Yahoo! Questions/Réponses</a>.</body></html>