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.
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.
Case I
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.
Case II
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
Regards,
Brijesh Jain
---------------------------------------------------------
Connect with me on Skype: jainbrijesh
Google Plus : jainbrijeshji
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