QuestionQ12

Managing the Test Activities

You are the Test Manager for a project developing a client-server application that enables wine vendors to order custom-assorted packages of wines from several winemakers, for sale as special packages in their wine shops.

You decide to use a blended risk-based and reactive testing strategy. The system-testing exit criteria are:

  • EXCR1 — Each "critical" quality risk item must be covered by at least one test condition.
  • EXCR2 — Each "critical" requirement must be covered by at least one test condition.

The following are the application's "critical" requirements:

  • REQ-SEL-1. The application shall allow the user to order only one package at a time.
  • REQ-SEL-2. The application shall allow the user to select among four different packages (2-bottles, 6-bottles, 12-bottles, 15-bottles).
  • REQ-SEL-3. The application shall allow the user to order a package containing at least 1 bottle and no more bottles than the package size. No error messages shall be displayed if the user selects a valid number of bottles (at least 1 bottle and no more than the package size).
  • REQ-SEL-4. The application shall display an error message "Invalid number of bottles" if the user selects an invalid number of bottles (zero bottles or a number higher than the package size).
  • REQ-PAY-1. The application shall allow the user to pay with the three accepted credit cards (Visa, MasterCard, American Express).
  • REQ-PAY-2. The application shall display an error message "Invalid credit card" if invalid credit card data are entered by the user.

The following is the single "critical" quality risk item identified:

  • CR-RSK-1. The application's GUI might accept non-integer values in the input field intended to obtain the number of bottles from the user.

Test analysis for system testing has just started, and the following test conditions have been identified:

  • TC-SEL-2. Test the selection of package sizes.
  • TC-SEL-4. Test incorrect numbers of bottles for an order.
  • TC-CR-RSK-1. Test the accepted values from the input field intended to obtain the number of bottles from the user.

Assume that traceability has been used to determine the logical test cases that cover all requirements and the single risk item identified in this scenario.

Which of the following is a positive logical test that is complete and correct and covers the REQ-SEL-4 requirement?

  • A Select a 6-bottles package, then try to insert 5 bottles; verify that no error messages are displayed
  • B Select a 6-bottles package, then try to insert 7 bottles; verify that no error messages are displayed
  • C Select a 6-bottles package, then try to insert 7 bottles; verify that the "Invalid number of bottles" message is displayed
  • D Select a 6-bottles package, then try to insert 7 bottles
Explanation

For a six-bottle package, selecting seven bottles is invalid because it exceeds the package size. REQ-SEL-4 requires the application to display the exact error message "Invalid number of bottles" for that condition. Verifying both the invalid input and the specified message completely tests the required behavior.

Community Discussion

No comments yet. Be the first to start the discussion!