domain object test

profilelvlupnow
sts_randy_delk__version_0_1.docx

4.2 Service Test

This test is for the Services module. It designed to test the software routines that perform the service functions of the BBMS. {{Add some more here about the white-box testing, etc}}

4.2.1 CalendarLookup Service

(See SDD sections 5.1.2 and 6.1.1)

This tests the algorithm that displays a calendar with reservation days highlighted in calendar days.

{{ Refer to the section number with the screen in the SDD and the section with the module in the module detailed design section of the SDD }}

{{ Also there is a description of what the module is supposed to do in the module detailed design of the SDD detail design section }}

Input Specifications

Output Specifications

Click Reservations button from the main menu.

Calendar screen will come up.

Click Room 1 button

setRoomId has value of 1

getPrice retutns a value of 80.00

getReservedFlag returns false value

all calendar display day have white value

Click Room 2 button

setRoomId has value of 2

getPrice returns a value of 90.00

getReservedFlag returns true value

all calendar display day have white value except days 15 and 16 which a have blue value

Click Room 3 button

setRoomId has value of 3

getPrice returns a value of 100.00

getReservedFlag returns false value

all calendar display day have white value

Click Exit Button

Calendar screen closes and main menu screen is displayed

4.2.2 MakeReservation Service

(See SDD sections 5.1.3 and 6.1.2)

Input Specifications

Output Specifications

Click Room 3 button

setRoomId to Rooms has value 3

getPrice from Rooms has value 100.00

Click the calendar pop-up button the Reservation Start Date box

GUI function to pop-up small calendar is executed

Click 14 on the pop-up calendar

GUI calendar puts value 14 in putStartDate

Click the calendar pop-up button in the Reservation End Date box

GUI function to pop-up small calendar is executed

Click 16 on the pop-up calendar

GUI calendar puts value 16 in putEndDate

Click the Guaranteed box

setGuaranteed is set to true

Click the calendar pop-up button in the Guaranteed Date box

GUI function to pop-up small calendar is executed

Click 10 on the pop-up calendar

GUI calendar puts value 20141110 putGuaranteedDate

Click Create Reservation button

addReservation executes to create a new reservation record in the Reservation domain object.

It returns a new reservation index value which is put into reservationId of Rooms domain object to link the reservation to the room.

It puts the values inputted from user interface into new reservation record.

4.2.3 AddGuest Service

(See SDD sections 5.1.4 and 6.1.3)

Input Specifications

Output Specifications

Enter James in the First Name box and press the enter key.

Value nameFirst associated with the reservationId is set to “James”

Enter Markman in the Last Name box and press the enter key.

Value nameLast associated with nameFirst and reservationId is set to “Markman”

Enter 101 Fairview Street and press the enter key.

Value cusAddress associated with active reservationId is set to “101 Fairview Street”

Enter Pawtucket and press the enter key

Value cusCity associated with active reservationId is set to “Pawtucket”

Enter RI 02860 and click the Phone box

Value cusState associated with active reservationId is set to “Rhode Island”

Value cusZip associated with active reservationId is set to “02860”

Phone Box screen opens

Enter 4011234567 and press the enter key

Value cusPhone associated with active reservationId is set to “4011234567”

Enter 1234 5678 9012 3465 and press enter

Value cusCardNum associated with active reservationId is set to “1234567890123465”

Enter 073016 and press enter

Value cusCardExpDate associated with cusCardNum is set to “073016”

Click the Save Guest button

Verification dialog opens for confirmation of inputted data

4.2.4 MakePayment Service

(See SDD sections 5.1.5 and 6.1.4)

Input Specifications

Output Specifications

Save Guest button was clicked in previous test

getCustomerData

Data displayed on screen

Enter 90.00

Confirmation screen to validate total inputted appears

If confirmation button is pressed, then Value billTotal is set to 90.00

Click Make Payment button

Customer credit card is billed based on billTotal value

Confirmation window displays

Click the OK button

Confirmation window closes

4.2.5 CheckOut Service

(See SDD sections 5.1.6 and 6.1.5)

Input Specifications

Output Specifications

Click Check Out button from main menu

Reservation window opens

Click James Markman from the list

Confirmation button appears

Click the OK button

ReservedFlag is set to false

4.2.6 ProfitReport Service

(See SDD sections 5.1.7 and 6.1.6)

Input Specifications

Output Specifications

Click the Reports button from the main menu

Profit report screen opens

Enter 1 in the Starting Month box

Value startMonth is set to 1

Enter 2014 in the Starting Year box

Value startYear is set to 2014

Enter 12 in the Ending Month box

Value endMonth is set to 12

Enter 2014 in the Ending Year box

Value endYear is set to 2014

Press return key

Time period and profit report for specified period is displayed

An error box appears if end dates are before start date and vice versa

Click the Exit button

Main menu screen is displayed