Reproducible Errors

time to read 2 min | 243 words

For some reason, I am talking a lot about errors recently, didja notice?

Today I had our QA inform me that if we fill some form completely (without leaving any optional stuff out), it will not execute the correct post processing. (I am cutting the conversation here, mind you).

That particular form is critical in the application. It also have about 100 fields, 95 of them are optional.

We could consistently reproduce the error on the QA machine, but I couldn't figure out how something like that could happen. What it worse, I couldn't isolate the problem. When we entered the fully loaded form, it failed. When we entered partial information, it worked. Trying with different subsets always worked.

This is a critical form, did I mention that?

At one point I got annoyed with trying to enter all the permutation, and pulled out Fiddler. Several minutes afterward, I had a Boo script that was making requests against my pages (couldn't use fiddler, needed windows authentication). Now, I could scan through the permutations in a far easier manner. I quickly spot the issue, we had a validation error in one of the fields, we were allowing bad data.

When we were entering just a subset of the data, we always put correct information there, when we had to deal with entering 100 fields, we always put random data there. That was a very quick fix, but getting to that took a long while.