Test Plan

For Hotel Reservation System (HRS)

Version 1.3

Submitted in partial fulfillment of the requirements of the degree of MSE

Cem Oguzhan

CIS 895 – MSE Project

KansasStateUniversity

Table of Contents

1.Test Plan Identifier

2.Introduction

3.Test Items

4.Features to be tested

5.Test cases

5.1.Test Case 1 - Search Room

5.2.Test Case 2 – Login

5.3.Test Case 3 – Apply for an Account (Travel Agent)

5.4.Test Case 4 – Generate Report (Travel Agent)

5.5.Test Case 5 – New Customer Register

5.6.Test Case 7 – Cancel a Reservation

5.7.Test Case 8 – Add or Update a Hotel

5.8.Test Case 9 – Add or Update a Room

5.9.Test Case 10 – Approve Travel Agent Account

7.Item Pass/Fail Criteria

8.Suspension Criteria

9.Performance Testing

10. Test Deliverables

11. Environmental needs.

1.Test Plan Identifier

TestPlan-HRS-V1.3

2.Introduction

The purpose of this document is to outline the plan for testing the critical use cases and functionalities, which are described in the Vision document,of the Hotel Reservation System (HRS) software.

3.Test Items

The following item of the HRS software will be tested:

The critical use cases (see section 3.3 of Vision Document)

4.Features to be tested

This section outlines all features that will be tested from the vision document.

Feature Identifier / Description / Requirement Number
T-001 / Search Room / 3.2.1
T-002 / Login / 3.2.2
T-003 / Apply for an Account (Travel Agent) / 3.2.3
T-004 / Generate Report(Travel Agent) / 3.2.4
T-005 / New Customer Register / 3.2.5
T-006 / Cancel a Reservation / 3.2.7
T-007 / Add/Update a Hotel / 3.2.8
T-008 / Add/Update a Room / 3.2.9
T-009 / Approve/Disapprove Travel Agent Account / 3.2.10

5.Test cases

5.1.Test Case 1 - Search Room

Test 1:

  • Incorrect input:An empty requirement field. (city name, check- in date and check-out date)
  • Pass criteria: An appropriate error message should be displayed and the user shouldn’t be allowed directing to the search result web page.
  • Correct input: Fill in all requirement fields in correct format.
  • Pass criteria: If the all requirement fields are correctly filled on the web form then the user should be directed to the search result web page.

Test 2:

  • Incorrect input: Wrong check-in date and/or wrong check-out date.
  • Pass criteria: An appropriate error message should be displayed and the user shouldn’t allowdirecting to the search result web page.
  • Correct input: Right check in date, right check out date and other requirement fields on the web form are filled in correct format.
  • Pass criteria: The user should bedirected to the search result web page.

5.2.Test Case 2 –Login

Test1:

  • Incorrect input: An empty requirement field.(user name and password)
  • Pass criteria: An appropriate error message should be displayed and the user shouldn’t be allowed to login.
  • Correct input: Right user name and password.
  • Pass criteria: The user should be directed to the secure web page which the user is requested.

Test 2:

  • Incorrect input: Wrong user name and/or wrong password.
  • Pass criteria: The user shouldn’t be allowed to login to the HRS and an appropriate error message should be displayed.
  • Correct input: Right user name and password.
  • Pass criteria: The user should be login to the HRS and directing to the requested secure web page.

5.3.Test Case 3 – Apply for an Account (Travel Agent)

  • Incorrect input: An empty requirement field. (company name, address, city, state, phone number, user name, password, and e-mail address)
  • Pass criteria: An appropriate error message should be displayed and the user should not be allowed forapplying an account for the HRS.
  • Correct input: Fill in all requirement fields in correct format.
  • Pass criteria: The user should be directed to the confirmation web page.

5.4.Test Case 4 –Generate Report (Travel Agent)

Test 1:

  • Incorrect input: An empty requirement field. (starting date and ending date)
  • Pass criteria: An appropriate error message should be displayed and the user should not be able to generate a report.
  • Correct input: Correct starting date and ending date.
  • Pass criteria: The user should be allowed to generate the report.

Test 2:

  • Incorrect input: Wrong starting date and/or wrong ending date
  • Pass criteria: An appropriate error message should be displayed and the user should not be able to generate the report.
  • Correct input: right starting date and right ending date
  • Pass criteria: The user shouldbe allowed to generate the report.

5.5.Test Case 5 – New Customer Register

  • Incorrect input: An empty requirement field. (first name, last name, address, city, state, zip code, phone number, user name, password, e-mail address, credit card type, credit card number and credit card’s expiration date)
  • Pass criteria: An appropriate error message should be displayed and the user shouldn’t be allowed to create an account for the HRS.
  • Correct input: Fill in all requirement fields in correct format.
  • Pass criteria: The user should be allowedto create a new account and the user information should beadded into the database.

5.6.Test Case 7 – Cancel a Reservation

  • Incorrect input: empty or wrong reservation confirmation number.
  • Pass criteria: An appropriate error message should be displayed.
  • Correct input: Correct confirmation number.
  • Pass criteria: The reservation information should be deleted from the database.

5.7.Test Case 8 – Add or Update a Hotel

  • Incorrect input: An empty requirement field. (hotel id, hotel name, address, city, state, zip code, phone number, and star rating)
  • Pass criteria: An appropriate message should be displayed and the information shouldn’t be added or updated into the database.
  • Correct input: Fill in all requirement fields in the correct format.
  • Pass criteria: The hotel information should be added or updated into the database.

5.8.Test Case 9 – Add or Update a Room

  • Incorrect input: An empty requirement field. (room number, bed type, smoking type, handicap accessible, and price)
  • Pass criteria: An appropriate error message should be displayed and the information shouldn’t be added or updated into the database.
  • Correct input: Fill in all requirement fields in the correct format.
  • Pass criteria: The room information should be added or updated into the database.

5.9.Test Case 10 – Approve Travel Agent Account

  • Input: None
  • Pass criteria: If the administrator approves the travel agent’s application, the travel agent information should be added into the database and an e-mail sent to the applicant. If the administrator disapproves the travel agent’s application, the travel agent information should not be added into the database and an e-mail sent to the applicant.

7.Item Pass/Fail Criteria

The testing of HRS will be considered accomplished when all the tests cases have been successfully completed.

8.Suspension Criteria

If any test case is failed during testing, the related code will be fixed, and then testing will be resumed. Testing will continue until all test cases are passed.

9.Performance Testing

JMeter will be used for load testing. The load testing will be conducted by one, ten, and 30 users. The result of the load resting will be analyzed.

10.Test Deliverables

The following artifacts will be produced after the tests are conducted on the HRS software:

  • Test Plan
  • Test Cases
  • Test Log

11.Environmental needs.

All tests will be performed using Internet Explorer and JMeter running under Windows XP.