Anda di halaman 1dari 6

Expected

Function Test Criteria Test Subject Description Test Data


Results

"MENU
Normal
Value to start the 1 - Check-In
Starting Value 2 - Check-Out
program
3 - Show Customer
Details

1 Choose:"
Welcome
Erroneous 6489 "Error"
Incompatible Lindon "Error"

"Process exited
Value to end the after 1.617
Sentinel Value seconds with
program
Normal 0 return value 0"
Erroneous 7899 "Error"
Incompatible bfsdjkgdn "Error"

Call the function


Normal 1 checkin
To accept a
number 1 and call
Case 1 the function Displays an error
checkin message and
recalls the menu
Erroneous 6 function

Displays an error
message and
recalls the menu
Incompatible f function

Call the function


Normal 2 checkout
To accept the
number 2 and call
Menu Case 2 the function Displays an error
checkout message and
recalls the menu
Erroneous 6 function
number 2 and call
Menu Case 2 the function
checkout

Displays an error
message and
recalls the menu
Incompatible f function

Call the function


Normal 3 details
To accept the
number 3 and call
Case 3 the details Displays an error
function message and
recalls the menu
Erroneous 6 function

Displays an error
message and
recalls the menu
Incompatible f function
The Age of the
Normal guest is assigned
17 to 25
The age of the
Erroneous Age 103 "Error"
guest
The age of the
Incompatible guest is not
k assigned to k

The first name of


the guest would
Normal
be assigned to
Lindon
The first name of Lindon
First Name
the guest
Erroneous fdffsdfasdgr Error Message
eteragfd

Incompatible 123 Error Message


Checkin

The guest’s last


Normal Best name would be
assigned to Best

The last name of


Last Name Asdsdfdgfd
Erroneous the guest Error Message
gdsfa
The last name of
Last Name
the guest

Incompatible 123 Error Message

The value of 54
would be
assigned to the
Normal Aount of days the variable
Amount of days guest spends at guest_info[c].amt
the hotel
days
54
Erroneous 123 "Error"
Incompatible feea "Error"
Room 1 will be
Normal 1
Guest’s room set to 0.
Room
Extreme number 544 "Error"
Incompatible feasd "Error"

The guest will be


Checkout Normal Lindon given the name
Lindon
Name Guest’s name
fjsjfalsjlfsd
Extreme "Error"
fjsh

Incompatible 54 "Error"
Actual Result

"MENU

1 - Check-In
2 - Check-Out
3 - Show Customer
Details

Choose:"
"Error"
"Error"

"Process exited after


1.617 seconds with
return value 0"
"Error"
"Error"

Returns 1 into the main


function then calls
checkin function

Displays to the screen


"ERROR: Invalid." and
recalls the menu function

Keeps on calling the


menu function

Returns 2 into the main


function then calls
checkout funtion

Displays to the screen


"ERROR: Invalid." and
recalls the menu function
Continuously calls the
menu function

Returns 3 into the main


function then calls
details funtion

Displays to the screen


"ERROR: Invalid." and
recalls the menu function

Continuously calls the


menu function

The age of the guest is


assigned to 17

"Error"
The program continues
to the roomNum
function

The first name of the


guest was assigned to
Lindon

The program continues


to the roomNum
function
The program continues
to the roomNum
function

The last name of the


guest was assigned to
Best

The program continues


to the roomNum
function
The program continues
to the roomNum
function

The value of 54 was


assigned to the variable
guest_info[c].amtdays

"Error"
"Error"
"Room 1 is now
empty"
"Error"
"Error"

The guest was given


the name Lindon

The program continued


as normal
The program continued
as normal

Anda mungkin juga menyukai