I've got an executable that runs my automated tests. Today I ran 4 sets of tests by running a .bat file that ran them all simultaneously.
The tests were building policies in our software. We got a SQL error that was caused by two instances entering the same policy holder information at the same time.
In each case the test randomly selects from a list of over 1500 names and addresses, so it's possible, though unlikely, that they both selected the same record.
What's baffling is that both also entered the same driver's license number, which is randomly generated in each case.
This has never happened before in 100's/1000's of runs.
Is it possible for two instances running the same executable file could somehow cross contaminate each other?
Random rnd = new Random();
else if (Crawlspace.DLState == "NEW MEXICO")
{
int DLNum = rnd.Next(100000000, 999999999);
Crawlspace.DLNumber = DLNum.ToString();
The tests were built this way to ensure a unique record in every case.