Friday, July 22, 2011

Software Testing


Software Testing - A good read….not intended against any group as such, but still entertaining ... read on ...

A university scholar, Mr. John Smith approaches his friend a software-testing guru telling him that he has a Bachelor in programming, and now would like to learn the software testing to complete his knowledge and to find a job as a software tester. After summing him up for a few minutes, the software-testing guru told him "I seriously doubt that you are ready to study software testing. It's the serious topic. If you wish however I am willing to examine you in logic, and if you pass the test I will help teach you software testing. "
 
The young man agrees.
Software testing guru holds up two fingers "Two men come down a chimney. One comes with a clean face and the other comes out with a dirty face. Which one washes his face?
 
The young man stares at the software-testing guru. "Is that a test in Logic?" software testing guru nods.
"The one with the dirty face washes his face," He answers wearily.
 
"Wrong. The one with the clean face washes his face. Examine the simple logic. The one with the dirty face looks at the one with the clean face and thinks his face is clean. The one with the clean face looks at the one with the dirty face and thinks his face is dirty. So; the one with the clean face washes his face."
 
"Very clever" Says Smith.  "Give me another test"
 
The software-testing guru again holds up two fingers "Two men come down a chimney.One comes out with a clean face and the other comes out with a dirty face. Which one washes his face?
 
"We have already established that. The one with the clean face washes his face"
 
"Wrong. Each one washes his face. Examine the simple logic. The one with the dirty face looks at the one with the clean face and thinks his face is clean. The one with the clean face looks at the one with the dirty face and thinks his face is dirty. So; the one with the clean face washes his face. When the one with the dirty face sees the one with the clean face washing his face, he also washes his face. So each one washes his face"
 
"I didn't think of that!" Says Smith. " It's shocking to me that I could make an error in logic. Test me again!."
 
The software-testing guru holds up two fingers "Two men come down a chimney.One comes out with a clean face and the other comes out with a dirty face. Which one washes his face?
 
"Each one washes his face"
 
"Wrong. Neither one washes his face. Examine the simple logic. The one with the dirty face looks at the one with the clean face and thinks his face is clean. The one with the clean face looks at the one with the dirty face and thinks his face is dirty. But when the one with clean face sees that the one with the dirty face doesn't wash his face, he also doesn't wash his face So neither one washes his face".
 
Smith is desperate. "I am qualified to study software testing. Please give me one more test"
 
He groans when the software-testing guru lifts his two fingers, "Two men come down a chimney. One comes out with a clean face and the other comes out with a dirty face. Which one washes his face?
 
"Neither one washes his face"
 
"Wrong. Do you now see, John, why programming knowledge is an insufficient basis for studying the software testing? Tell me, how is it possible for two men to come down the same chimney, and for one to come out with a clean face and the other with a dirty face? Don’t you see?
 
Moral : Whatever a programmer do, Testers are supposed to find bugs and they will.

No comments:

Post a Comment