134k views
5 votes
You have been given the following conditions and results from those condition combinations.

Conditions: Valid cash Valid credit card Valid debit card Valid pin Bank accepts Valid Selection Item in Stock
Results: Reject Cash Reject Card Error Message Return Cash Refund Card Sell Item
Given this information, using the decision table technique, what is the minimum number of test cases you would need to test these conditions?
A. 7
B. 13
C. 15
D. 18

1 Answer

1 vote

Final answer:

Using a decision table technique, the conditions presented lead to a minimum of 13 test cases to cover all possible combinations and outcomes.

Step-by-step explanation:

To determine the minimum number of test cases using a decision table technique, we can analyze the conditions and their possible combinations. In this scenario, we have several conditions, such as:

  • Valid cash
  • Valid credit card
  • Valid debit card
  • Valid pin
  • Bank accepts
  • Valid Selection
  • Item in stock

Each condition can either be 'true' or 'false', creating two possible scenarios for each condition to consider (combinations). However, the scenarios where the consequences do not affect the result can be merged to reduce the number of test cases. Applying this reduction, we conclude that the minimum number of test cases required to fully test these conditions and results is 13 (Option B).

User Anupriya
by
7.9k points