The question does not related to level of testers. It could be asked to any body. Its a purely logic based question. The interviewer asked me the question
"I am having a black dog"(This is his requirement) how can i write atleast 3 testcases for that.
[ QUOTE ]
Can you Justify how your right and what logic can you see there
[/ QUOTE ]
Ok, we're only allowed three tests, and our explicit requirement can be broken down as;
1) It must be a dog
2) It must be black
3) We must have (possession of) it
That's three explicit requirement components, each of which can be tested. Thus our tests are created by rephrasing our requirements as questions;
1) Is it a dog?
2) Is it black?
3) Do we have (possession of) it?
Whether the dog is male or female, dead or alive, made of wood, or healthier when served with a side salad instead of fries is not part of any stated reqiurement. We are not allowed enough test cases to cover all possible implicit requirements.
IMO, the thinking behind the question is that the first and most important part of testing is to ensure that explicitly stated requirements are understood and met. Testing of implicit requirements is secondary to this.
As per my first post, I would also seek to clarify the 'having' requirement based on a number of possible interpretations, with the most likely be 'to have possesion of' in the strict rather than amorous sense.
What if the requirements can also be broken like this
Set 1 requirement
It is clear that he/she has a black dog.
1. IF you have dog Is that a male or female?
2. What kind of a dog is it?
3. Is that a toy or real or something like picture?
Set 2 requirements
It is clear that he/she has a dog.
1. Is that alive or dead
2. Is that healthy or not
3. Is that puppy dog
AS "IMO, the thinking behind the question is that the first and most important part of testing is to ensure that explicitly stated requirements are understood and met. Testing of implicit requirements is secondary to this."
I think this depends on the way we understand the requirements. Well to me when He/she says that "i am having a dog" the above mentioned any of the cases can be related. Its not just that the question and the way we get the info from the requirements and make confirm that customers agree with our cases