Test case 3 - Angelaader/l6vi GitHub Wiki

Sending a bill to e-mail

We assume that on registration (add to client database) customer is obliged to provide a working e-mail address that is being validated on registration. Only appropriate e-mail format can exist in e-mail field in customer database.

Steps marked in bold should be executed as separate tests!

Test case ID

3

Related requirements

  • The POS system should be able to send the bill to an e-mail account if needed.

Input that is used for the test to verify the functionality

  • Closed order.
  • Customer record in database (if customer is registered).
  • Correct e-mail address.
  • Incorrect e-mail address or other bad input.

Steps performed during the verification process

Start steps (for every case):

  1. Open an order.
  2. Add some products to the order.
  3. Close the order.
  4. Choose an option to send the bill to e-mail address.

Customer is registered in database:

  1. Select option to send the order to the e-mail address recorded in database.
  2. Confirm sending the order to the e-mail address recorded in database.

Customer is registered in database, but wants to provide another e-mail:

  1. Select option to input e-mail manually.
  2. Provide working e-mail address / input some text that is not in e-mail format / leave the box empty.
  3. Confirm sending the order to provided e-mail.
  4. If the input was bad, verify that system brings up an error notification.

Customer is not registered in database. Waiter provides working e-mail:

  1. Select option to input e-mail manually.
  2. Input working e-mail.
  3. Confirm sending the order to provided e-mail.

Customer is not registered in database. Waiter provides bad input:

  1. Select option to input e-mail manually.
  2. Input some text that is not in e-mail format / leave the box empty.
  3. Confirm sending the order to provided e-mail.
  4. Verify that system brings up an error notification.

End steps (for successful cases):

  1. Check if an e-mail arrived successfully to recorded e-mail address.
  2. Close the order screen.

Expected results

  • If customer is registered in database, the e-mail address is read from database and the order is successfully sent to this e-mail address.
  • If customer is not registered in database, waiter asks for e-mail address and inputs it in the system. If the provided address is in correct e-mail format, the order is successfully sent to this e-mail address.
  • If waiter provides bad input (typo), the system brings up an error notification.