Suppose we have 9 boxes out of which 8 are in good condition and 1 is in bad condition. Then what will be the minimum no. of test cases to find out the bad condition box out 9 boxes.
Printable View
Suppose we have 9 boxes out of which 8 are in good condition and 1 is in bad condition. Then what will be the minimum no. of test cases to find out the bad condition box out 9 boxes.
Hi Pradeep,
The answer to your question would entirely depend on the case you are considering.
[U]Case I[/U]
Incase the boxes are independent of each other, finding out the bad condition box could be covered as part of a single testcase.
Incase we follow automated testing, each box could be passed as data parameter and necessary checks could be verified.
Also what is the criteria to consider a box as bad condition would also decide the number of cases.
[U]Case II[/U]
Incase Boxes are dependent where we have to consider the compatibility of box with another,the number of cases would go up.
In short before deciding the number of cases for any scenario, we would consider the following -
1) The components involved in testing and their inter - dependecies.
2) Criteria to consider for qualifying a test as pass / fail
3) Dependency of other outside systems on the AUT
Let me know if this clears things a bit up........
Cheers...
Bizzzzzare
[QUOTE=pradeepk;17736]Suppose we have 9 boxes out of which 8 are in good condition and 1 is in bad condition. Then what will be the minimum no. of test cases to find out the bad condition box out 9 boxes.[/QUOTE]
6 test case
[QUOTE=jayparthi;21062]6 test case[/QUOTE]
Could you please tell us why 6 test cases?
[QUOTE=pradeepk;17736]Suppose we have 9 boxes out of which 8 are in good condition and 1 is in bad condition. Then what will be the minimum no. of test cases to find out the bad condition box out 9 boxes.[/QUOTE]
Minimum can be 8.As we have no more information, how to verify the box, so we can say we have to check each one, but if 8 are passed then 9th one is in bad condition, or we will get it in our 8 cases.Reply me whether i am right or wrong.
[QUOTE=pradeepk;17736]Suppose we have 9 boxes out of which 8 are in good condition and 1 is in bad condition. Then what will be the minimum no. of test cases to find out the bad condition box out 9 boxes.[/QUOTE]
Hi,
If all the 9 boxes have the identical properties then we need one test case to find the box with bad condition.
Following are the one kind of test steps for identifying the bad conditioned box, there may also be many other:
Step 1: Divide the 9 boxes into three groups where in each group there will be three boxes
Step 2: Test the three groups seperately to identify which group is different from other. For example, if you rate the box as bad with respect to weight then one group with bad condition will differ from other two
Step 3: Take the group with bad condition and further divide into three of one box each
Step 4: Test each box individually and the box which differ from the remaining two will be of bad condition
Regards,
Ganesan