- Normal Testing 2(Book already issued)
Test Data : Mcode: 1001
Bcode: EF02
Expected Result : Issue transaction comes to a halt.
Display message ‘Book is actually issued to another member. Check entry
again for transcription errors). Display message ‘More issue of books’
Comments : As expected, when book code EF04 was entered the message shown above
was displayed since the book has already been issued to another member
and it cannot be entered again until the book is returned.
- Normal Testing 3(Book requested by another member)
Test Data : Mcode: 1004
Bcode: DC01
Expected Result : Display Message ‘Book has been requested by another member. Continue
Issue this book’
Comments : When book code DC01 was entered, the message shown above was displayed. In the message, the member code of the member who requested that particularly was also displayed. But still the user was asked whether he wants to confirm the issue or cancel transaction.
- Abnormal Testing 1(Record not found)
Test Data : Mcode: 1004
Bcode: EF99
Expected Result : Display message ‘Book code is invalid or does not exist’
Display message ‘More issue of books’
Comments : Issue was successfully interrupted since member code does not exist. After
that user was asked if he had more issues to perform.
- Abnormal Testing 2(Blank Input)
Test Data : Mcode: 1004
Bcode:
Expected Result : Display message ‘Book code does not exist.’
Display message ‘More issue of books’
Comments : The message shown above was displayed when Bcode remained
blank and user requested validation. When ‘Ok’ was pressed, user was
asked if he had more books to issue.
Test messages
- Test message ‘Book requested by another member. Continue Issue this book?’
Test Data : (a) Choice is ‘Yes’
Expected Result : User is asked to confirm issue
Comments : The message shown on the right was correctly displayed when user confirm that he wanted to continue the book in question.
Test Data : (b) Choice is ‘No’
Expected Result : Issue transaction stops
Display message ‘More issue of books’
Comments : The issue transaction was correctly stopped and user was asked if he had
more books to issue.
- Test confirmation ‘Are you sure to issue this book’
Test Data : (a) Choice is ‘Yes’
Expected Result : Save transaction in Issue file
Display message ‘More issue of books’
The table below shows the table issue after issue of book EF04 to member 1001 was confirmed (see test no. 9.6 for more details).
Comments : As shown from the table on the right, issue transaction was correctly
save in the file issue.
Test Data : (b) Choice is ‘No’
Expected Result : Issue transaction stops. Record is not saved.
Display message ‘More issue of books’
Comments :When no was chosen, the message shown was correctly displayed. Record was not saved in the issue database.
- Test message ‘More issue of books’
Test Data : (a) Choice is ‘Yes’
Expected Result : Screen is cleared and user is allowed to enter member code.
Comments : When ‘Yes’ was chosen, the screen was cleared and the user was asked to
enter the member code for the issue of another book. The test was
successful.
Test Data : (b) Choice is ‘No’
Expected Result : Screen is cleared and main menu options are accessible again.
Comments : When ‘No’ was chosen, the screen was cleared and Main Menu options
were accessible again.
- Test Return of Book – Return.prg
- Press ‘Return’ button’ in main menu
Test Data :
Expected Result : Opens ‘Return’ screen
User is asked to enter member code
Comments : When option ‘Return’ was chosen from the main menu, the screen shown
above was displayed. The user was correctly asked to enter a member
code.
Test input of member code
- Normal Testing
Test Data : Mcode: 1001
Expected Result : Book details are displayed
Display message ‘Confirm return’
Comments: When member code 1001 was entered, the transaction records were correctly
displayed (i.e. book details). The message ‘Confirm Return’ was also correctly
displayed.
- Abnormal Testing 1(Invalid member code)
Test Data : Mcode: 9999
Expected Result : Display message ‘Such a member does not exist in the library.’
Display message ‘More return of book’
Comments : Return was successfully interrupted since member code does not exist. After that user was asked if he had more returns to perform.
- Abnormal Testing 2 (Record not found)
Test Data : Mcode: 1004
Expected Result : Display message ‘This member has not taken any book. Check entry
again’. Display message ‘More return of book’
Comments : When member code 1000 was entered, the message shown above was
displayed. This shows that test was successful since member 1000 does
not have a book in his possession at this time.
- Abnormal Testing 3(Blank Input)
Test Data : Mcode:
Expected Result : Display message ‘Please enter a member code first.’
Display message ‘More return of books’
Comments : The message shown on the right was displayed when Mcode remained
blank and user requested validation. When ‘Ok’ was pressed, user was
asked if he had more books to issue.
Other tests
- Test requested book being returned
Test Data : Mcode: 1003
Bcode: FL02
Expected Result : Display message ‘This book was requested by another member’
Highlight member code of member who requested that book
Comments : When return for member code 1003 was confirm, the message shown
above was displayed. This message contains the member code of the
member who has requested that book.
- Test fining
Test Data : Mcode: 1003
Bcode: FL02
Expected Result : Display calculated fine. Print fine receipt.
Display message ‘More return transactions’
Comments : When member code 1002 was entered, the transaction details were correctly displayed. The book details as well as the amount of fine were correctly displayed.
A sample of the fine receipt, which was automatically printed for this transaction, is shown on the following page.
- Test confirmation ‘Are you sure to return this book’
Test Data : (a) Choice is ‘Yes’
Expected Result : Delete record in Issue file
Display message ‘More return of books’
The table below shows the table issue after return of book FL02 from member 1003 was confirmed (see test no. 10.2 for more details).
Comments : As shown from the table on the right, return transaction was correctly
completed, record was deleted from the file issue.
Test Data : (b) Choice is ‘No’
Expected Result : Issue transaction stops. Record is not saved.
Display message ‘More issue of books’
Comments : When no was chosen, the shown on the right was correctly
displayed. Record was not saved in the issue database.
- Test message ‘More return of books’
Test Data : (a) Choice is ‘Yes’
Expected Result : Screen is cleared and user is allowed to enter member code.
Comments : When ‘Yes’ was chosen, the screen was cleared and the user was asked to
enter the member code for the return of another book. The test was
successful.
Test Data : (b) Choice is ‘No’
Expected Result : Screen is cleared and main menu options are accessible again.
Comments : When ‘No’ was chosen, the screen was cleared and Main Menu options
were accessible again.
User correctly asked to enter member code
User correctly asked to enter book code
Message successfully displayed
Message correctly displayed
Book details correctly displayed
Book code EF04 has been entered
Message correctly displayed
Book code EF04 has been entered
Book requested by another member has been entered
Mcode of member who requested book code 1000 was correctly displayed
Record correctly saved to file issue
Fine correctly displayed
Book details correctly displayed
Member code 1003 has been entered
Record correctly deleted from file issue