Sample Test Cases for hotel room reservation


Test Case
Ids
Use Case Reference
Objective
Pre-Requisites
Test Conditions
Data Functional Verification
Expected Result(s)
FR01 - Add Reservation
TC-01
UC01
Verify that user can  add reservation .
User: Receptionist / Front Desk manager is loged in.
1. Add reservation button is displayed in the main menu.                     
2. User invoked the reservation form upon clicking the reservation button.                
1.User can enter data in the fields of the form.                                                                                               
2.Check if the mendatory fields are empty.                                                            
3. All fields are cleared when clicked on clear button.
4. Form can be canceled any time by clicking on the cancel button.
5. Upon clickin save button user can save reservation.
1.System should allow user to enter data in the form.
2. System should display error message.                                          
3. System clear all fields of the form.
4. System should cancel the form.
5. System should save the form.
TC-02
UC01
Verify that system should calculate & display the departure date.
User: Receptionist / Front Desk manager is loged in.
1.Arrival Date is entered by the user.                  
2.No. of nights are entered by the user.              
1.Arrival date entered is in correct format.    
2. No. of nights is an integer value.
3.Calculated departure date is displayed in the departure date field.         .
1.System should allow user to enter correct date only.                            2.System should allow only integer value.                 
3. System should calculate departure date and display in the correct field.
TC-03
UC01
Verify that user can select an empty room.
User: Receptionist / Front Desk manager is loged in.
1.'Select' button is displayed to allow user to select an empty room from list'.         
1. Upon clicking 'select' button it will invoke a list that only display available vacant rooms b/w arrival & departure dates.
1.System should display only vacant rooms available b/w the given dates
TC-04
UC01
Verify that system generates a unique id every reservation.
User: Receptionist / Front Desk manager is loged in.
1. User has saved a reservation.
1. Unique id genetated when reservation is saved by system.
2. Unique id is displayed in the reservation list with the reservation details.
1. System should generate the unique id.
2. System shuld display unique id with the reservation details.
TC-05
UC01
Verify that system must display a confirmation message upon saving reservation.
User: Receptionist / Front Desk manager is loged in.
1. User has clicked on the save button to save reservation.
1. Saving a successful reservation system display a confirmation message.
1. System should display message.
TC-06
UC01
Verify that System updates the existing reservation list.
User: Receptionist / Front Desk manager is loged in.
1. Reservation is saved by the user.
2. Resevation list is invoked by the user.
1. Upon saving reservation, existing reservation list should display reservation information.
1. System should update list.
TC-07
UC01
Verify that every field in the reservation form only accept the respective input only.
User: Receptionist / Front Desk manager is loged in.
1. Reservation form is invoked by the user & is displayed to the user.
1. All fields must only accept required input in the fields e,g, guest name field should only accept alphabet only.
1. System should only allow correct input in the fields.







FR02 - Update Reservation
TC-08
UC-02
Verify that user can select a reservation from existing reservation list.
User: Receptionist / Front Desk manager is loged in.
1. Reservation list is displayed to the user.
2. User selected a reservation and clicked the 'UPD' button to invoke update reservation interface.
3. Reservation is already entered in the system
1. Upon invoking the update reservation interface, reservaton information is displayed to the user.
2. User can make changes in the fields.
3. User can clear the update reservation interface.
4. User cancels form any time.
5. Upon clicking update button information is updated.
6. Mandatory fields are must be filled.
1. System should display.
2. System should allow user to make changes in the fields.
3. System should clear.
4. System should cancel form.
5. System Should update the form.
6. System should check and if empty generate error message.
TC-09
UC-02
Verify that sytem save the changes against the same unique id.           
User: Receptionist / Front Desk manager is loged in.
1.Unique id is already generated by the system against a reservation.
2. Invoked reservation exists in the system with a unique id.
1. Upon updating reservation system must save reservation against the existing reservation allotted id by the system.
1. System should update reservation against same id.
TC-10
UC-02
 Verify that System has updated the existing reservation list when updating the reservation.
User: Receptionist / Front Desk manager is loged in.
1.Reservation must be added earlier into the system                     2.System updates the editing reservation.
1. System has updated the existing reseravation list when updaing the reservaion.
1. System Should  update the list.
TC-11
UC-02
Verify that System allow the user to edit one reservation at a time.
User: Receptionist / Front Desk manager is loged in.
1. Existing Reservation list is dsplayed to the user.
1. User selects >1 reservations and invokes update reservation interface by clicking 'UPD' button.
1.System should not allow user to select > 1 reservations.
TC-12
UC02
Verify that every field in the reservation form only accept the respective input only.
User: Receptionist / Front Desk manager is loged in.
1. Update reservation interface is invoked.
1. All fields must only accept required input in the fields e,g, guest name field should only accept alphabet only.
1. System should only allow correct input in the fields.
TC-13
UC02
Verify that system must display a confirmation message upon updating reservation.
User: Receptionist / Front Desk manager is loged in.
1. User has clicked on the update button to update reservation.
1. Successfully updating reservation system display a confirmation message.
1. System should display message.







FR06 - Update In-House Reservation
TC-14
UC-03
Verify that system allow user to update the fields in the reservation form.
User: Receptionist / Front Desk manager is loged in.
1. Guest has already checked-in.
2. Reservation already exists in the system.  
3. User selects a reservation from existing reservation list.
1. All required fields are displayed to the user.
2. User must fill the mandatory fields.
3. User can clear or cancel form.
4. While clicking on the update button, system updates the reservation details.
1. System should display all fields.
2. System should check mandatory fields and display error if found empty.
3. System should clear & cancel form.
4. System should update reservation information.
TC-15
UC-03
Verify that sytem save the changes against the same unique id.           
User: Receptionist / Front Desk manager is loged in.
1.Unique id is already generated by the system against a reservation.
2. Invoked reservation exists in the system with a unique id.
1. Upon updating reservation system must save reservation against the existing reservation allotted id by the system.
1. System should update reservation against same id.
TC-16
UC-03
 Verify that System has updated the existing reservation list when updating the reservation.
User: Receptionist / Front Desk manager is loged in.
1.Reservation must be added earlier into the system                     2.System updates the editing reservation.
1. System has updated the existing reseravation list when updaing the reservaion.
1. System Should  update the list.
TC-17
UC-03
Verify that System allow the user to edit one reservation at a time.
User: Receptionist / Front Desk manager is loged in.
1. Existing Reservation list is dsplayed to the user.
1. User selects >1 reservations and invokes update reservation interface by clicking 'UPD' button.
1.System should not allow user to select > 1 reservations.
TC-18
UC-03
Verify that every field in the reservation form only accept the respective input only.
User: Receptionist / Front Desk manager is loged in.
1. Update reservation interface is invoked.
1. All fields must only accept required input in the fields e,g, guest name field should only accept alphabet only.
1. System should only allow correct input in the fields.
TC-19
UC-03
Verify that system must display a confirmation message upon updating reservation.
User: Receptionist / Front Desk manager is loged in.
1. User has clicked on the update button to update reservation.
1. Successfully updating reservation system display a confirmation message.
1. System should display message.







FR03 - Check - In
TC-20
UC-07
 Verify that user can invoke check - in interface by clicking 'CK-IN' button from main menu.
User: Receptionist / Front Desk manager is loged in.
1.Guest must have a reservation.                      2.User must click on CK-IN Button from main manue.
Invoke check-in interface by clicking on button.
System should invoke check - in interface by clicking 'CK-IN' button from main menu.
TC-21
UC-07
Verify that System display reservation information.
User: Receptionist / Front Desk manager is loged in.
1.Guest must have a reservation.                      2.User selects reservation from list.
System display reservation information.
System should System display reservation information.
TC-22
UC-07
Verify that System allow user can change reservation status from 'reserve' to 'check-in' by clicking check-in button.
User: Receptionist / Front Desk manager is loged in.
1.Guest must have a reservation.                    2.user clicks on check-in button to chang reservation status.                            3.user must click on cancel button to cancel changes.
1.user clicks on check-in button to chang reservation status.                             2.user clicks on cancel button
1.System should allow user can change reservation status from 'reserve' to 'check-in' by clicking check-in button.          2.system allow user to cancel chanfes any time.
TC-23
UC-07
Verify that System should allow user to print check - in details.
User: Receptionist / Front Desk manager is loged in.
1.guest must have check-in status.,                 2.user must click on print check-in detail.
user click on "print check-in detail".`
System should allow user to print check - in details.







FR04 - Walk - In
TC-24
UC-04
. Verify that System should display add reservation form when clicked on the 'Wlk-in' button.
User: Receptionist / Front Desk manager is loged in.
1. There is no prior reservation for the guest.                                 2.user must clik on "walk-in" button.
user clik on "walk-in" button.
System should display add reservation form when clicked on the 'Wlk-in' button.
TC-25
UC-04
 Verify that System should save the reservation status as 'walk-in' in the reservation list.
User: Receptionist / Front Desk manager is loged in.
1. There is no prior reservation for the guest.                                 2.user must clik on "walk-in" button.
User save reservation as walk-in guest
System should allow user to save the reservation status as 'walk-in' in the reservation list.
TC-26
UC-04
Verify that System should allow user to print walk - in details.
User: Receptionist / Front Desk manager is loged in.
1. There is no prior reservation for the guest.                                 2.user must click on print walk-in detail.
user click on "print walk-in detail".`
System should allow user to print walk - in details.







FR05 - Check Out
TC-27
UC-08
. Verify that System should allow user to invoke check out interface by clicking 'C OUT' button.
User: Receptionist / Front Desk manager is loged in.
1.user must click on "C OUT" Button to invoke check-out interface.
user click on "C OUT" Button to invoke check-out interface.
System should allow user to invoke check out interface by clicking 'C OUT' button.
TC-28
UC-08
Verify that System should allow user to invoke search reservation guest  to search reservation.
User: Receptionist / Front Desk manager is loged in.
1.user must enter guest ID.                           2.User must click on search reservation
Invoke Search guest reservation.
System should allow user to invoke search reservation guest  to search reservation.
TC-29
UC-08
Verify that System should allow user to change reservation status to 'check-out' in main reservation list.
User: Receptionist / Front Desk manager is loged in.
1.user must fill check-in form  & change status to "check-out".
user clicks on check-out status
System should allow user to change reservation status to 'check-out' in main reservation list.







FR07 - Add Guest
TC-30
UC-05
Test the input values for adding a guest
User: Receptionist / Front Desk manager is logged in.
1- Mandatory fields entered.
1.User enter data in to desired fields                                         2.Check if the mandatory fields are missing
1.System accept only acceptable data type                                                                          2.System shall respond/ popup if mandatory fields is missing
TC-31
UC-05
Test the guest ID is unique for adding a guest
User: Receptionist / Front Desk manager is logged in.
1- First Name and Last Name already exists
1.User enter guest ID                                                                             2.Check is guest ID is a mandatory fields
1.System accept only unique ID                                                                                 2.System shall respond/ popup if guest ID is mandatory fields and missing
TC-32
UC-05
Test the guest information can be save and print
User: Receptionist / Front Desk manager is logged in.
1- Add guest with mandatory fields.
2- Print
1.User click on print  & save button
1.System accept print command if all mandatory fields are completed then save the guest ID information in to system data and go to print options module, else prompt for mandatory fields
TC-33
UC-05
Test the guest information can be discard
User: Receptionist / Front Desk manager is logged in.
1- Add multiple guests.
1.User click on cancel button
1.System close the add guest window







FR08 - Update Guest
TC-34
UC-06
Test the search of guest to edit a guest information
User: Receptionist / Front Desk manager is logged in.
1- Mandatory fields entered.
1.User enter guest ID in to desired fields for searching guest information
1.System accept only acceptable data type, and display the guest information if available, else prompt that guest id is not in the record
TC-35
UC-06
Test the display is according to the search of guest to edit a guest information
User: Receptionist / Front Desk manager is logged in.
1- First Name and Last Name already exists
User enter guest ID in to desired fields for searching guest information and click on search.
System accept only acceptable data type, and display the guest information if available, else prompt that guest id is not in the record
TC-36
UC-06
Test the input values for editing a guest
User: Receptionist / Front Desk manager is logged in.
1- Add guest with mandatory fields.
2- Print
1.User click on edit on searched guest and re-enter data in to desired fields                                                                                      2.Check if the mandatory fields are missing
1.System accept only acceptable data type                                                          2.System shall respond/ popup if mandatory fields is missing
TC-37
UC-06
Test the values saved after editing a guest
User: Receptionist / Front Desk manager is logged in.
1- Add multiple guests.
1.User click on save button                                                                2.Check if the mandatory fields are missing
1.System accept save command if all mandatory fields are completed then save the guest ID information in to system data and go to print options module, else prompt for mandatory fields                                           2.System shall respond/ popup if mandatory fields is missing
TC-38
UC-06
Test the guest information can be print
User: Receptionist / Front Desk manager is logged in.
none
Test the guest information can be print
System accept print command if all mandatory fields are completed then save the guest ID information in to system data and go to print options module, else prompt for mandatory fields
TC-39
UC-06
Test the guest information can be discard
User: Receptionist / Front Desk manager is logged in.
none
User click on cancel button
System close the add guest window



Please share your feedback on these sample test cases

1 Comments