Why is it not worthwile to write testcases always in order to execute the testing?
As a software tester I have encountered the problem many times, that I don’t use the hundreds of testcases anymore I had written for the testing process of a program in the middle of its life cycle. It has made me think, and popped the question if all the time, which was needed to write testcases would have been wasting time only?
May it be about any kind of development modell, the new software has to be tested all the way through its life cycle. And what shall be the main course the testing process takes on depends mostly on our system knowledge. So before we would report the first bug, it is worth getting to know what we work with. But when do we happen to know this application enough?
The question is on, but something is for sure: if the customer is satisfied, then everything is all right. So, after many months a steadily expanding program has been delivered on its commitments, I started to feel, that I may know my appliction down to its teeth, that I may have become a real bug-hunter. I don’t use the hundreds of testcases I had written, and I don’t create new ones instead. But I write bug-reports where I try to lay out the business logic I used as much as possible.
It is worthwile to keep in mind two basic priniples. What is that the program must know, and what is that it doesn’t have to know! None of them is to be preferred because we may fall in the trap, that not only won’t the program know what it isn’t supposed to know, but it won’t even know what it would be supposed to know. So that our program don’t do more than what it is destined to, we need to take off the already written testcases a bit. We shall explore the way our program functions, and try to do the biggest insanity with it to find more defects.
So far I have not succeeded to write any such testcases up-front...