Testing: Room Service Functions
Tested functions are:
- Order
- Add order
- Cancel order
- Modify order
- Search by room number
- Search by delivery time
- Process completed order
- Section: Orders and Accounting
- Tests
- Basic check to ensure all menu options are accessable for the following security levels: management and room service. This is just a linkage test.
- Section: Add an order
- Tests
- Check a room number doesn't exist. The function should respond with a message box informing the user that they room number does not exist.
- Enter a delivery time prior to order time. The function should display a message box informing the user that they have entered a delivery time prior to the order time.
- Check an item number that doesn't exist. The functions should display a message box informing the user that the item requested does not exist.
- Enter a negative number of items. The function should inform the user that a client must order a positive number of items.
- Add a new order. The function should return a message box infomring the user of success.
- Enter an invalid employee ID. The function should return a message box informing the user that they have entered an invalid employee ID.
- Section: Cancel An Order
- Tests
- Try to delete nonexistant order. The function should display a message box informing the user that the order does not exist.
- Try to delete the same order twice. See above.
- Delete a normal order. The function should inform the user that the order was deleted successfully.
- Section: Modify Order
- Tests
- Since the inputs available are all the same please see 2 above.
- Section: Search By Room Number
- Tests
- Enter a invalid room. The function should inform the user via a message box that the room number was invalid.
- Enter a valid room (preferable to use a room which has at least one of the following; food, movie, and wake-up order). The function should return a list of all the services pending for that room.
- Enter a valid room with no orders. The function should return a message box informing the user that there are no services pending for that room.
- Section: Search By Delivery Time
- Tests
- Enter an invalid time (such as 2700 or -0100). The function should inform the user via a message box that the time entered was invalid.
- Enter a valid time with no orders. The function should return a message box informing the user that there are no services pending for that time.
- Enter a valid time with at least one order. The function should display a list of all the services pending for that time.
- Section: Process Completed Order
- Tests
- Attempt a room that does not have any orders. The function should warn the user via a message box that there are not orders pending for that room.
- Attempt an invalid room number. The function should inform the user that the room number is invalid.
- Attempt a room that has only one order. The function should allow the user to process the specified order.
- Attempt a room that has more than one order. The function should allow the user to process the specified order.