Test Case 2 Dividing bills into separate parts [bills] - Tonnius/Tiim14-50 GitHub Wiki

Test case: Dividing bills into separate parts (bills)

Test case ID: TC2

Related requirements:

  • allow waiters to enter bills and leave them open after entering;
  • allow waiters to reopen bills;
  • allow waiters to divide bills into several parts;allow waiters to divide the bill to be paid by different means;
  • support credit cards;
  • support debit cards;

Input that is used for the test to verify the functionality:

  1. We expect that there is a database of bills;
  • we expect that there is a subsystem where to create and divide new orders;
  • we expect that it is possible to pay by (credit/debit)card or in cash;
  1. New, already closed or about to be closed bill not yet consisting or about to consist one or more product(s);

  2. One or more customer(s) who want to pay the bill in separate parts (for example to get separate bills for two products or to divide the sum into smaller bills of smaller sums) / one or more customer(s) who want to pay the bill by different means (for example a customer wants to pay for one product in cash and another by card or one or more customers want to pay their part in cash and other(s) by card);

Steps performed during the verification process:

  1. The waiter creates a new bill and adds there products ordered by a customer or customers (We expect that the system already has an opportunity to choose products from the menu and add them to the order);

  2. The waiter leaves the bill open until customer(s) wish to pay for it or closes it (we expect that a bill with an automatically generated unique ID is created when the waiter confirms the order and chooses to close it or put it aside and leave it open; we also expect that the waiter can take new orders if the previous one has been put aside);

  3. When a customer(s) wish(es) the waiter chooses an option to continue or close the left-open bill or open already closed bill to be paid;

  4. When a customer(s) wish(es) the waiter chooses the option to separate left-open bill or a closed bill into n-amount (we expect that the waiter can choose the number) of smaller bills and assign different products to them so all products from the initial bill are divided between new smaller bills (we expect that the waiter has to locate all the products into new bills - otherwise smaller bills cannot be closed);

  5. When a customer(s) wish(es) the waiter chooses to divide the bill into smaller bills by dividing the sum of the main into smaller parts;

  6. When a customer(s) wish(es) the waiter chooses the payment type of customer's wish (we expect that the payment type can be assigned to each separate smaller order; we also expect that customers can pay in cash or by (debit/credit)card);

Expected results:

The main bill is divided into smaller bills by products or by the sum and all new smaller orders can be payed separately in cash or by (debit/credit) card.