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

 


Unit Tests                                   

 

Objective                                   
     The following will be checked for correctness:
     
  1. user can enter the data into the Delete Book page,
  2. syntax errors will be checked and displayed by the system,
  3. ensure that the book exists in the database,
  4. ensure that a check is made whether the book to be deleted is currently out on loan or being held and that a deletion cannot proceed if this is the case, and
  5. ensure that book copy is actually deleted from the database.

 

Data Used                                   
     
To check 1):
input:
Call #: 1

Expected Results - The call number field 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
Call # :
a) empty
b) alphabetic input 123a4

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

To check 3):
input:
Call # : 999999999

Expected Results - The error window will be displayed stating that the book with that Call number does not exist in the database.

To check 4):
Assuming that a book with call number 1 exists in the database and that it is on loan, on hold or both - all three cases will be tested.

input:
Call # : 1

Expected Results - The error window will be displayed stating that the book with that Call number is currently on loan or on hold and cannot be deleted.

To check 5):
Assuming that the book with Call number 2 exists in the database, and the book is neither on loan or being held.

input:
Call # : 2

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

 


Integration Tests                                   

 

Objective                                   
     The following will be checked for correctness:
     
  1. Delete Book Copy page can be accessed,
  2. the book information page for the book to be deleted can be accessed, and
  3. QUIT button returns user to Book Administration page.

 

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

Expected Results - Delete Book page will be displayed.

To check 2):
Pressing the OK button on the Delete Book page with a correct call number.

Expected Results - The window with book data corresponding the call number will be displayed along with a window asking whether the deletion should proceed.

To check 3):
Pressing the QUIT button on the Delete Book page.

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

 


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

Copyright ©1997 VoidWorks Software Inc.

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