Question: Test Cases for library management system console application Program start: Check enter char instead of int Check enter different char case ( upper / lower

Test Cases for library management system console application
Program start:
Check enter char instead of int
Check enter different char case ( upper / lower)
Check Invalid input ( incorrect choice / blank choice )
Registration:
Check Email and Password format ( email must be @ .com/edu), password must be at least 8 characters and
including uppercase char, lower case char, digit, and symbol
Check duplication ( no duplicate ( userID, adminID, user names, user emails, admin names, admin emails))
Check exit option saves all the changes In admin and user files
Login:
Use inputs ( email, password, re-enter password)
Check valid email and password ( if email is correct and password is wrong say the password is wrong, if the email is
wrong say the user/admin is not registered and ask if he need to register )
Admin menu:
each category name along with books count in each one, total number of copies of all books, total number of
all borrowed books, total number of all returned books )
LogOut
Check that the logout option ends this menu, save all changes in books file, redirect to main program menu
User menu:
Options to show :
First thing after the user login is that you check if he has current books overdue or not ( overdue means the
return date has passed)
if yes : only return books option will be Shawn
if No: all the option will be Shawn
Borrow Book
Check display all the books available to the user so he can choose by ID
Check he cannot borrow books that have Copies and borrowed copies equal
Check he is not currently borrowing the same book ( user must not be currently borrowed the same book and
didn't return yet )
Check in books file the borrowing Copies increase by 1
Check in borrowing file the isReturn equal false by default, actual return date is N/A (null), and rating is N/A
After borrow is succeed show him the suggestion for upcoming borrows
Return Book
Check display all the books that he currently borrowing and didn't return yet to chooce only from them ( he
only can return the books that he currently borrow and didn't return )
Check in books file the borrowing Copies decreased by 1, and IsReturn eaual true
Show for him a message to enter the rating of book
Show profile
Display his Id, name, email, and the books he currently borrowed and didn't returned, and the books he
previously borrowed and returned along with the date he returned and if he returned it on time or overdue
Search Books
Check that when user enter search word you display all the books that have the same word in its name along
with all their data ( id, name, author .... Etc )
View Books
Print Out the list of bod , use csharp to solve this qustion, no using lamda, no using oop, no using advance code beacuse we still no stydy it
Test Cases for library management system console

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!