Document Navigator For The Design Index (Testing Document)
Previous Section
(Summary)
This Section
(Book Administration)
Next Section
(Customer Administration)
Previous (Data Flow Diagrams) Add A Book Next (Add Book Copy)

 


Unit Tests                                   

 

Objective                                   
     The following will be checked for correctness:
     
  1. user can enter the data into the Add Book page,
  2. syntax errors will be checked and displayed by the system,
  3. ensure that the book does not already exist in the database, and
  4. ensure that book is actully entered into the database.

 

Data Used                                   
     
To check 1):
input:
ISBN #: 1234567908
Title : The Truth About Existentialism
Author : Ronald McDonald
Publisher : Santa Clause Publishing House Inc.
Subject : existentialism
Book Category : each of {overnight, two week, reserved}
Media Type : each of {Book, CD, CD-ROM, Film, Laserdisk, Journal}
Cost : $19.95
Version : 1 (optional)
Edition : 1 (optional)
Location : Main Branch
Floor : 3
Circulation status : each of {available, on loan, overdue, on hold, out of circulation}

Expected Results - All fields will allow entry of data

To check 2):
All individual field testing will assume that all other fields are syntactically correct.

 

Error Condition(s) Input To Test
ISBN # :
a) empty
b) too short 123456789
c) alphabetic input 123a456789

Expected Results - error window is displayed stating that the ISBN # field is invalid.

 

Title :
a) empty
b) too long

Expected Results - error window is displayed stating that the title field is invalid.

 

Author :
a) empty
b) too long

Expected Results - error window is displayed stating that the author field is invalid.

 

Publisher :
a) empty
b) too long

Expected Results - error window is displayed stating that the publisher field is invalid.

 

Subject :
a) empty
b) too long

Expected Results - error window is displayed stating that the subject field is invalid.

 

Book catergory :
none

 

Media Type :
none

 

Cost :
a) empty
b) alphabetic input 12.b3

Expected Results - error window is displayed stating that the cost field is invalid.

 

Version : (optional)
a) alphabetic input a.2

Expected Results - error window is displayed stating that the version field is invalid.

 

Edition : (optional)
a) alphabetic input 3.c

Expected Results - error window is displayed stating that the edition field is invalid.

 

Location :
none

 

Floor :
a) empty
b) alphabetic input g7

Expected Results - error window is displayed stating that the floor field is invalid.

 

Circulation Status :
none

To check 3):
input:
ISBN # : 1234567908
Title : Breaking Windows 95
Author : Samuel L. Jackson
Publisher : Macrosoft Books
Subject : computers
Book Category : two week
Media Type : CD-ROM
Cost : $100.00
Version :
Edition :
Location : Main Branch
Floor : 6
Circulation Status : on loan

Expected Results - Expected Results - Error window will be displayed stating that the book with that ISBN number already exists in the database.

To check 4):
input:
ISBN # : 1234567909
Title : Breaking Windows 95
Author : Samuel L. Jackson
Publisher : Macrosoft Books
Subject : computers
Book Category : two week
Media Type : CD-ROM
Cost : $100.00
Version :
Edition :
Location : Main Branch
Floor : 6
Circulation Status : on loan

Expected Results - Expected Results - A "Book Added" message will be displayed and the book will be added to the database.

 


Integration Tests                                   

 

Objective:                                   
     The following will be checked for correctness:
     
  1. Add Book page can be accessed.
  2. QUIT button returns user to Book Administration page.

 

Data Used                                   
     
To check 1):
Pressing "Add Book" button on Book Administration page.

Expected Results - Add Book page will be displayed.

To check 2):
Pressing the QUIT button.

Expected Results - User will be returned to Book Administration page.

 


Document Navigator For The Design Index (Testing Document)
Previous Section
(Summary)
This Section
(Book Administration)
Next Section
(Customer Administration)
Previous (Data Flow Diagrams) Add A Book Next (Add Book Copy)

Copyright ©1997 VoidWorks Software Inc.

Send mail to the Group Leader or the Webmaster
Pages created and maintained with Mortar