Professional Documents
Culture Documents
Group Assignment
UCDF1909ICT(SE)
NAME TP Number
Chan Chun Yew TP057374
Lim Huan Yang TP057627
Ryan Lee Jun Wei TP058099
Kuhentren Jia Hao A/L TP057919
Saravanan
Table of Contents
Acknowledgement.................................................................................................................................3
Abstract.................................................................................................................................................3
Workload Matrix...................................................................................................................................3
Introduction...........................................................................................................................................4
Problem Context................................................................................................................................4
Proposed Solution.............................................................................................................................4
Proposed Objectives..........................................................................................................................4
Project Scope.....................................................................................................................................4
Project Plan...........................................................................................................................................5
System Hierarchy Chart.........................................................................................................................6
ERD........................................................................................................................................................7
Context Diagram....................................................................................................................................8
DFD Level 0............................................................................................................................................9
Individual Part DFD 1...........................................................................................................................10
Data Dictionary (Manage Booking).............................................................................................15
Flowchart.....................................................................................................................................17
Data Dictionary................................................................................................................................25
Flowchart.........................................................................................................................................28
Screen Design and User Manual..........................................................................................................30
Report Design......................................................................................................................................51
Test Plan..............................................................................................................................................52
Significant Source Code.......................................................................................................................76
Conclusion...........................................................................................................................................77
References...........................................................................................................................................77
Appendix.............................................................................................................................................77
Installation Guide................................................................................................................................77
3
Acknowledgement
This project has been successfully completed by our team. Firstly, we would like to thank
NIK SAKINAH BINTI NIK AB AZIZ for teaching us, being so kind and giving us more
knowledge on this software development project.
We would also like to thank Asia Pacific University for giving us nice environment for
learning both soft and hard skills.
Lastly, we would like to thank our friends for supporting us and helping us overcome the
difficulties we’ve faced throughout the making of this project.
Abstract
In this project we have completed an library system. Users can use this website to book books
listed on the website by sending a booking request. The booking request is then accepted by
the librarian to allow the book to be borrowed by the user.
R&A library is created for the ease of borrowing books for students with everything sorted
out therefore minimizing human errors.
Workload Matrix
Student 1 Student 2 Student 3 Student 4
Name RYAN LEE JUN CHAN CHUN LIM HUAN YANG Kuhentren Jia Hao A/L
WEI YEW Saravanan
TP Number TP058099 TP057374 TP057627 TP057919
Introduction
R&A University is a private university in Kuala Lumpur, Malaysia. It was formed in 2019. It
has a 10-hectare campus comprising academic and residential blocks adjacent. It offers
undergraduate and postgraduate programmers taught in English. Since this school is just
established, we recently ordered a lot of books on learning and provided them to our school’s
students in the library. Too many books result in insufficient manpower to maintain the
library. So, our team decided to make a library system in web application.
Problem Context
-not enough staff
-too much book
-hard to manage
-hard to track down the status of the book
Proposed Solution
-create a library system
-create a database to store the information of the users and the books
-add function for the librarian so that they can add new book or delete book
-create a page that shows the information and status of the book
Proposed Objectives
-increase the efficiency of the management on the book
-allow the user to store information
-allow librarian to add book and delete book
-allow user to view information and status of the book
Project Scope
User (librarian and student)
-register
-login
-change password
-check book info
Librarian
-add new book
-delete book
-able to track down the borrower info
Student
-check borrowing and return date
-check borrow history
-cancel booking
- view book info
- can only borrow 3 book or less
Head Librarian
-help new librarian to register
5
Project Plan
The system development methodology that we are going to use for this project is the
waterfall model. The waterfall model is one of the most common methodology. In the
waterfall model, Each phase needs to be completed before beginning the other phases and the
phases cant be overlapped. This model is really useful for this project because the waterfall
model has very clear set of steps and the structure of it is uncomplicated. The five phases of
the waterfall model are requirements, design, implementation, verification and maintenance.
After writing down the requirements for the project, we can do the second phase which is
design. Then we can follow down the other phases in waterfall model.
6
7
ERD
8
Context Diagram
9
DFD Level 0
10
Data Dictionary
External Entity
Name Librarian
Description Librarian Side
Input Data Flow Account Details
Output Data Flow Librarian Details, Account Details, Delete Librarian
Process
Name 1.1 Create Librarian
Description Create a Librarian’s account
Input Data Flows Librarian Details
Output Data Flow Account Details, User Details
Process Description -
11
Data Store
Name D1. Librarian
Description Store librarian
Input Data Flow Account details, librarian details, delete account
Output Data Flow -
Data Structure LibrarianID, Librarian Name, Email, Password,
PhoneNo, Address
Flow Chart
Create
13
Update
14
Delete
15
Process
Name 3.1 List of book
Description Add the book the student want into list
Input Data Flow Add book to list
Output Data Flow Manage book list
Data Flow
Name Add book to list
Description Allow student add book to their book list
Origin Student
Destination 3.4 Booking
Destination D5 Booking
Data Store
Name Booking
Description Store the information of booking
Input Data Flow Confirmed Booking Info
Output Data Flow Booking Info, cancel booking info
Data Structure BookingID, StudentName, StudentID, BookingDate,
StudentEmail, StudentPhoneNo, StudentAddress
Flowchart
Create
18
Read
Update
19
Delete
20
Data Dictionary
Data dictionary
External Entity
Name Student
Description Student
Input Data Flow Book
Output Data Flow Manage Borrow, Cancel Borrow
Process
Data Store
Name Borrow
Description Data Store for borrow info
Input Data Flow Book Info
Output Data Flow Check Book
Data Structure BookID,Name,Email
Data Flow
Name Book
Description The book
Origin Book availability
Destination 5.2 Book Availability
Flow Chart
Create
\
23
Read/View Borrow
Cancel Borrow
24
Update Borrow
25
Data Dictionary
External Entity
External Entity
Name Librarian
Description Librarian able add new book, update book information, view
book info and delete book
Input Data Flow Book Info
Output Data Flow Manage Book
Process
Name 6.1 Manage Book
Description Allow user to choose what they want to do
Input Data Flow Manage Book
Output Data Flow Book Info, Book New Info, Delete Request
Data Store
Name Book
Description Store the information of books
Input Data Flow Book Info
Output Data Flow Book Info
Data Structure serial_no, title, description
Data Flow
Name Manage Book
Description Function that librarian needed to use
Origin Librarian
Destination 6.1 Manage Book
Flowchart
Add book
Update Book
29
Delete Book
View Book
30
Student Login
Label Function
Name Input Name This is the page where the
student will need to type in
Password Input Password their name and password to
Login Login user login into the website. If a
Register Here Redirect user to student student doesn’t have a
register account, they can click on
“register here” and it will
lead them to the register
31
page.
Librarian Login
Student Register
Librarian Register
Student Homepage
Student Homepage
Book Directory
Booking Status
36
Borrowing Page
37
Borrow History
38
Student Profile
39
Librarian Homepage
41
Return Page
43
Create Book
46
Edit Book
47
Report Design
Test Plan
Student Login
Test ID Test Objectives Precondition Steps Test Data Expected Result Actual Result Status
SL01 Successfully Login Valid info 1. student enter Valid details 1. able to enter info able to login
valid information ex. name, 2. Direct user to
2. click login password, homepage direct user to Success
email homepage
SL02 Successfully Login Valid info 1. student enter Valid details 1. able to enter info
valid information ex. name, 2. Direct user to Unable to login Failed
2. click login password, homepage
email
SL03 Unsuccessful login – Required box 1. student enter Important 1. display “please fill “Please fill out
all info not filled up is left empty valid information details are out this field” when this field” is
but few of the left empty login button is clicked displayed when Success
box is left empty ex. name, with boxes left empty boxes are left
2. click login password, empty
email
SL04 Unsuccessful login – Put incorrect 1. student enter Wrong 1. display error Able to login
incorrect format of information invalid info information message Failed
text in box 2. Click login on details 2. Unable to login
SL05 Unsuccessful login – Put incorrect 1. user enter Wrong 1. display error Unable to login
incorrect format of format on invalid format format on message Success
text in box data 2. Click login data 2. Unable to login display error
message
SL06 Link direct user to Click on the 1. User click on href 1. user is directed to user is directed
register page button the register the register page to the register Successful
button page
SL07 Link direct user to Click on the 1. User click on href 1. user is directed to user is not
register button the register the register page directed to the Failed
button register page
53
Librarian Login
Test ID Test Objectives Precondition Steps Test Data Expected Result Actual Result Status
LL01 Successfully Login Valid info 1. librarian enter Valid details 1. able to enter info able to login
valid information ex. name, 2. Direct user to
2. click login password, homepage Direct user to Success
email homepage
LL02 Successfully Login Valid info 1. librarian enter Valid details 1. able to enter info
valid information ex. name, 2. Direct user to Unable to login Failed
2. click login password, homepage
email
LL03 Unsuccessful login – Required box 1. librarian enter Important 1. display “please fill “Please fill out
all info not filled up is left empty valid information details are out this field” when this field” is
but few of the left empty login button is clicked displayed when Success
box is left empty ex. name, with boxes left empty boxes are left
2. click login password, empty
email
LL04 Unsuccessful login – Put incorrect 1. user enter Wrong 1. display error Able to login
incorrect format of format on invalid format format on message Failed
text in box data 2. Click login data 2. Unable to login
LL05 Unsuccessful login – Put incorrect 1. librarian enter Wrong 1. display error Unable to login
incorrect format of information invalid info information message Success
text in box 2. Click login on details 2. Unable to login display error
message
54
Test ID Test Objectives Precondition Steps Test Data Expected Result Actual Result Status
HLL01 Successfully Login Valid info 1. head librarian Valid details 1. able to enter info able to login
enter valid ex. name, 2. Direct user to
information password, homepage Direct user to Success
2. click login email homepage
HLL02 Successfully Login Valid info 1. head librarian Valid details 1. able to enter info
enter valid ex. name, 2. Direct user to Unable to login Failed
information password, homepage
2. click login email
HLL03 Unsuccessful login – Required box 1. head librarian Important 1. display “please fill “Please fill out
all info not filled up is left empty enter valid details are out this field” when this field” is
information but left empty login button is clicked displayed when Success
few of the box is ex. name, with boxes left empty boxes are left
left empty password, empty
2. click login email
HLL04 Unsuccessful login – Put incorrect 1. user enter Wrong 1. display error Able to login
incorrect format of format on invalid format format on message Failed
text in box data 2. Click login data 2. Unable to login
HLL05 Unsuccessful login – Put incorrect 1. head librarian Wrong 1. display error Unable to login
incorrect format of information enter invalid info information message Success
text in box 2. Click login on details 2. Unable to login display error
message
55
Student Register
Test ID Test Objectives Precondition Steps Test Data Expected Result Actual Result Status
SR01 Successfully Valid info 1. student enter Valid details 1. able to register User able to
registered input valid information ex. name, 2. Info stored to register
in each box password, database
email 3. Display Data is stored in
“successfully database Successful
registered”
“Successfully
registered” is
display
SR02 Successfully Valid info 1. student enter Valid details 1. able to register User unable to
registered input valid information ex. name, 2. Info stored to register
in each box password, database Failed
email 3. Display
“successfully
registered”
SR03 Unsuccessful register Required box 1. student enter Important 1. display “please fill “Please fill out
– all info not filled up is left empty valid information details are out this field” when this field” is
but few of the left empty register button is displayed when Success
box is left empty ex. name, clicked with boxes boxes are left
2. click register password, left empty empty
email
SR04 Unsuccessful register Put incorrect 1. user enter Wrong 1. display error Able to register
– incorrect format of format on invalid format format on message Failed
text in box data 2. Click register data 2. Unable to register
SR05 Unsuccessful register Put incorrect 1. student enter Wrong 1. display error Unable to
– incorrect format of information invalid info information message register Success
text in box 2. Click register on details 2. Unable to register display error
message
56
Librarian Register
Test ID Test Objectives Precondition Steps Test Data Expected Result Actual Result Status
LR01 Successfully Valid info 1. Librarian enter Valid details 1. able to register User able to
registered input valid information ex. name, 2. Info stored to register
in each box password, database
email 3. Display Data is stored in
“successfully database Successful
registered”
“Successfully
registered” is
display
LR02 Successfully Valid info 1. Librarian Valid details 1. able to register User unable to
registered input enter valid ex. name, 2. Info stored to register
information in password, database Failed
each box email 3. Display
“successfully
registered”
LR03 Unsuccessful register Required box 1. Librarian Important 1. display “please fill “Please fill out
– all info not filled up is left empty enter valid details are out this field” when this field” is
information but left empty register button is displayed when Success
few of the box is ex. name, clicked with boxes boxes are left
left empty password, left empty empty
2. click register email
LR04 Unsuccessful register Put incorrect 1. user enter Wrong 1. display error Able to register
– incorrect format of format on invalid format format on message Failed
text in box data 2. Click register data 2. Unable to register
LR05 Unsuccessful register Put incorrect 1. Librarian Wrong 1. display error Unable to
– incorrect format of information enter invalid info information message register Success
text in box 2. Click register on details 2. Unable to register display error
message
57
Test ID Test Objectives Precondition Steps Test Data Expected Result Actual Result Status
HLR01 Successfully Valid info 1. Head Librarian Valid details 1. able to register User able to
registered input enter valid ex. name, 2. Info stored to register
information in password, database
each box email 3. Display Data is stored in
“successfully database Successful
registered”
“Successfully
registered” is
display
HLR02 Successfully Valid info 1. Head Librarian Valid details 1. able to register User unable to
registered input enter valid ex. name, 2. Info stored to register
information in password, database Failed
each box email 3. Display
“successfully
registered”
HLR03 Unsuccessful register Required box 1. head librarian Important 1. display “please fill “Please fill out
– all info not filled up is left empty enter valid details are out this field” when this field” is
information but left empty register button is displayed when Success
few of the box is ex. name, clicked with boxes boxes are left
left empty password, left empty empty
2. click register email
HLR04 Unsuccessful register Put incorrect 1. user enter Wrong 1. display error Able to register
– incorrect format of format on invalid format format on message Failed
text in box data 2. Click register data 2. Unable to register
HLR05 Unsuccessful register Put incorrect 1. head librarian Wrong 1. display error Unable to
– incorrect format of information enter invalid info information message register Success
text in box 2. Click register on details 2. Unable to register display error
message
58
Login Page
Test ID Test Objectives Precondition Steps Test Data Expected Result Actual Result Status
LP01 Link direct user to Click on the 1. User click on href 1. user is directed to user is directed
login page button the user the the login page of the to the login page
want to log in as user log in they of the user log in
clicked on they clicked on Successful
LP 02 Link direct user to Click on the 1. User click on href 1. user is directed to user isn’t
login page button the user the the login page of the directed to the
want to log in as user log in they login page of the
clicked on user log in they Failed
clicked on
59
Test ID Test Objectives Precondition Steps Test Data Expected Result Actual Result Status
Show 1 book 1. Student click on Book Image Show Book Image Show 1 book
record Book in navigation link and book and Title record
VB001 — Success
bar title
Show all book 1. Student click on Book Image Show all book Show few book
records Book in navigation link and book records records
VB002 — Fail
bar title
Show all book 1. Student click on Book Image Show all book Show all book
book in navigation link and book records records
VB003 — Success
bar title
60
Test ID Test Objectives Precondition Steps Test Data Expected Result Actual Result Status
Redirect from Login with Student ID 1. Click on one of the Serial no Echo serial no Error
book.php to books in book.php
VB001 detail.php with Fail
variable
Redirect from Login as a student 1. Click on one of the Serial no Echo serial no Echo serial no
book.php to books in book.php
VBI002 detail.php with Success
variable
Show books Login as a student 1. Click on one of the book image, Show all book Show all book
information books in book.php book title, information information
VBI003 book,descrip Success
tion
61
StudentBooking
Test ID Test Objectives Precondition Steps Test Data Expected Result Actual Result Status
If the book is Login as a student 1. Click on one of the Booking Booking button Error
booked by other books in book.php button didn’t appear
people, the Choose one of the
BK001 booking button books from book.php Fail
will not appear
If the book is Login as a student 1. Click on one of the Booking Booking button Booking button
booked by other books in book.php button didn’t exist don’t appear
people, the Choose one of the
BK002 booking button books from book.php Success
will not appear
New booking Login as a student 1. Click on the Serial no and New record appears Nothing happens
record booking button student id in borrow table
Choose one of the
BK003 Fail
books from book.php
New booking Login as a student 1. Click on the Serial no and New record appears New record
record booking button student id in borrow table appears in
Choose one of the borrow table
BK004 Success
books from book.php
Student has Less
than 3 booking
Cannot booking, Login as a student 1. Click on the Serial no and Notification that Notification that
if the students booking button student id write “Only three write “Only three
BK005 has more than 3 Choose one of the books can be books can be Success
bookings already books from book.php borrowed at once” borrowed at
once”
Student Booking Status
62
Test ID Test Objectives Precondition Steps Test Data Expected Result Actual Result Status
BS001 Successfully Login as a student 1. Login as a Booking Status New booking record Show Notification
booking book student in booking table write” Book has
No booking and 2. Click Booking been booked
borrow records of from list box successfully.”
other students Success
No allow student
booking more than 3
books
BS002 Cancel a booking Login as a student 1. Click the cancel Cancel Booking One of the book Show Notification
booking button button already booked will write “Successfully
Choose one of the on one of the be delete Cancel Booking.”
book already booked books already Success
in booking
status.php
63
Test ID Test Objectives Precondition Steps Test Data Expected Result Actual Result Status
Show Bar Chart Number of borrow Show Chart Show Nothing
record and Number of
S001 — — Fail
return record
Show Bar Chart Have records in Number of borrow Show data of this Show data of this
with data in this borrow table record and Number of month in the bar month in the bar
month return record chart chart
S003 — Success
64
Borrow Book
Test ID Test Objectives Precondition Steps Test Data Expected Result Actual Result Status
B001 Successfully Valid Info Input 1. Enter Serial No Serial No and New borrow record Show Notification
Borrow of the book and Student ID in borrow table that write “ This
No booking record on student id book has been
this book by other 2. Click borrow borrowed by other
student button student.”
No borrow record on
this book
B002 Success
The student has
borrowed less than 3
books
65
Unsuccessful Valid Info Input 1. Enter Serial No Serial No and Show Notification Show Notification
borrow – Borrow of the book and Student ID that write “ This book that write “ This
by another Has 1 booking record student id has been borrowed book has been
B003 student on this book by 2. Click borrow by other student.” borrowed by other Success
another student button student.”
Unsuccessful Valid Info Input 1. Enter Serial No Serial No and Show Notification Show Notification
borrow – The of the book and Student ID that write “ Only 3 that write “ Only 3
B004 student has The student has 3 student id books can be books can be Success
borrowed 3 or record in borrow 2. Click borrow borrowed at a time.” borrowed at a
more books record button time.”
Unsuccessful Valid Info Input 1. Enter Serial No Serial No and Show Notification Show Notification
borrow – The of the book and Student ID that write “ This that write “ This
book had been The booking table student id book has been book has been
B005 Success
booked by has a record of the 2. Click borrow booked by other booked by other
another student specific book and button student.” student.”
another
Delete booking Valid Info Input 1. Enter Serial No Serial No and Less one record in Less one record in
record if the of the book and Student ID booking table booking table
student had The booking table student id
B006 Success
booked the book has a record that 2. Click borrow
show the student button
had booked the book
66
Return Book
Test ID Test Objectives Precondition Steps Test Data Expected Result Actual Result Status
R001 Successfully Valid Info Input 1. Enter Serial No Serial No and Show Notification Show Notification
Return of the book and Student ID that write “ This that write “ This
No borrow record on student id book has successfully book is not
Fail
this book 2. Click return been returned.” borrowed.”
button
Successfully Valid Info Input 1. Enter Serial No Serial No and Show Notification Show Notification
Return of the book and Student ID that write “ This that write “ This
R002 No borrow record on student id book has successfully book has Success
this book 2. Click return been returned.” successfully been
button returned.”
Unsuccessfully Valid Info Input 1. Enter Serial No Serial No and Show Notification Show Notification
Return – The of the book and Student ID that write “ This that write “ This
R003 book is not Has a borrow record student id book is not book is not Success
borrowed on this book 2. Click return borrowed.” borrowed.”
button
67
Student Profile
Test ID Test Objectives Precondition Steps Test Data Expected Result Actual Result Status
SP01 Profile Updated Able to change Click on the placeholder Details such as Profile will be Profile Not
Succesfully profile of the thing that u want username,email,pho updated and it Updated
name,email,phone_n to change and enter ne no, password will lead u back
Fail
o and password new information and to the login
click on the update page
button.
Profile Updated Able to change Click on the placeholder Details such as Profile will be Profile updated
Succesfully profile of the thing that u want username,email,pho updated and it and it will lead u
name,email,phone_n to change and enter ne no, password will lead u back back to the login
SP02 Success
o and password new information and to the login page
click on the update page
button.
To check if the Able to go back to Click on the logout logout User will be User is logged out
logout button the login page after button logged out and and it leads them
SP03 works clicking on the logout it will lead them to the login page Success
button to the login
page
68
Librarian Profile
Test ID Test Objectives Precondition Steps Test Data Expected Result Actual Result Status
LPP01 Profile Updated Able to change Click on the placeholder Details such as Profile will be Profile Not
Succesfully profile name,email, of the thing that u want username,email, updated and it will Updated
and password to change and enter password lead u back to the
Fail
new information and login page
click on the update
button.
Profile Updated Able to change Click on the placeholder Details such as Profile will be Profile updated
Succesfully profile name,email, of the thing that u want username,email, updated and it will and it will lead u
and password to change and enter password lead u back to the back to the login
LPP02 Success
new information and login page page
click on the update
button.
To check if the Able to go back to Click on the logout logout User will be logged User is logged out
logout button the login page after button out and it will lead and it leads them
LPP03 works clicking on the logout them to the login to the login page Success
button page
69
Test ID Test Objectives Precondition Steps Test Data Expected Result Actual Result Status
HLP01 Profile Updated Able to change Click on the placeholder Details such as Profile will be Profile Not
Succesfully profile name,email, of the thing that u want username,email, updated and it will Updated
and password to change and enter password lead u back to the
Fail
new information and login page
click on the update
button.
Profile Updated Able to change Click on the placeholder Details such as Profile will be Profile updated
Succesfully profile name,email, of the thing that u want username,email, updated and it will and it will lead u
and password to change and enter password lead u back to the back to the login
HLP02 Success
new information and login page page
click on the update
button.
To check if the Able to go back to Click on the logout logout User will be logged User is logged out
logout button the login page after button out and it will lead and it leads them
HLP03 works clicking on the logout them to the login to the login page Success
button page
70
Test ID Test Objectives Precondition Steps Test Data Expected Result Actual Result Status
LAB001 Successfully add Valid info input 1. Librarian enter valid Details such as 1. Book info stored 1. Librarian able to
a new book info of book and image title, image and in database. add a new book.
link of book. description. 2. Display 2. Book info stored
“Successfully add a in database. Success
book” 3. Display
“Successfully add a
book”
LAB002 Successfully add Valid info input 1. Librarian enter valid Details such as 1. Book info stored 1. Book info didn’t
a new book info of book and image title, image and in database. store in database.
link of book. description. 2. Display
Fail
“Successfully add a
book”
LAB003 Unsuccessful to Required textbox is 1. Librarian enter valid Input incomplete 1. Display “ Please Display “ Please fill
add a new book empty info of book but few of details such as fill out this field” out this field”
the box is empty. title, image and when click the when click the
Success
description. submit button and submit button and
textbox still empty. textbox still empty.
LAB004 Unsuccessful to Required textbox is 1. Librarian enter valid Input incomplete 1. Display “ Please Able upload to
add a new book empty info of book but few of details such as fill out this field” database when
the box is empty. title, image and when click the click the submit
Fail
description. submit button and button and textbox
textbox still empty still empty.
71
Test ID Test Objectives Precondition Steps Test Data Expected Result Actual Result Status
LEB001 Successfully edit Able to change 1. Librarian click edit Change detail of 1. Book info already 1. Book info
book info information of book button that below at the book such as stored in database already stored in
such as title, image book list title, image and have been database have
and description. description. changed. been changed.
2. Input valid
Success
information on the book 2.Display”Book 2.Display”Book
info to be changed. Updated Updated
Successful” when Successful” when
click the Update click the Update
button. button.
LEB002 Successfully edit Able to change 1. Librarian click edit Change detail of 1. Book info already 1. Book Info didn’t
book info information of book button that below at the book such as stored in database change in the
such as title, image book list title, image and have been database.
and description. description. changed.
2. Input valid
Fail
information on the book 2.Display”Book
info to be changed. Updated
Successful” when
click the Update
button.
72
Test ID Test Objectives Precondition Steps Test Data Expected Result Actual Result Status
LDB001 Successfully to Able to delete a book 1. Librarian click delete Delete book info 1. Book info already 1. Book info
delete a book info from database button. from database stored in database already stored in
2.The book permanently have been deleted. database have
deleted at database. been deleted.
2.Display Success
”Successfully 2.Display
Delete Book” when ”Successfully
click the Delete Delete Book” when
button. click the Delete
button.
LDB002 Successfully to Able to delete a book 1. Librarian click delete Delete book info 1. Book info already Book didn’t delete
delete a book info from database button. from database stored in database from database
2.The book permanently have been deleted.
deleted at database. Fail
2.Display
”Successfully
Delete Book” when
click the Delete
button.
73
Test ID Test Objectives Precondition Steps Test Data Expected Result Actual Result Status
HAB001 Successfully add Valid info input 1. Head of librarian Details such as 1. Book info stored 1. Librarian able to
a new book enter valid info of book title, image and in database. add a new book.
and image link of book. description. 2. Display 2. Book info stored
“Successfully add a in database. Success
book” 3. Display
“Successfully add a
book”
HAB002 Successfully add Valid info input 1. Head of librarian Details such as 1. Book info stored 1. Book info didn’t
a new book enter valid info of book title, image and in database. store in database.
and image link of book. description. 2. Display
Fail
“Successfully add a
book”
HAB003 Unsuccessful to Required textbox is 1.Head of librarian enter Input incomplete 1. Display “ Please Display “ Please fill
add a new book empty valid info of book but details such as fill out this field” out this field”
few of the box is empty. title, image and when click the when click the
Success
description. submit button and submit button and
textbox still empty. textbox still empty.
HAB004 Unsuccessful to Required textbox is 1.Head of librarian enter Input incomplete 1. Display “ Please Able upload to
add a new book empty valid info of book but details such as fill out this field” database when
few of the box is empty. title, image and when click the click the submit
Fail
description. submit button and button and textbox
textbox still empty still empty.
74
Test ID Test Objectives Precondition Steps Test Data Expected Result Actual Result Status
HEB001 Successfully edit Able to change 1. Head of librarian click Change detail of 1. Book info already 1. Book info
book info information of book edit button that below book such as stored in database already stored in
such as title, image at the book list title, image and have been database have
and description. description. changed. been changed.
2. Input valid
Success
information on the book 2.Display”Book 2.Display”Book
info to be changed. Updated Updated
Successful” when Successful” when
click the Update click the Update
button. button.
HEB002 Successfully edit Able to change 1.Head of librarian click Change detail of 1. Book info already 1. Book Info didn’t
book info information of book edit button that below book such as stored in database change in the
such as title, image at the book list title, image and have been database.
and description. description. changed.
2. Input valid
Fail
information on the book 2.Display”Book
info to be changed. Updated
Successful” when
click the Update
button.
75
Test ID Test Objectives Precondition Steps Test Data Expected Result Actual Result Status
HDB001 Successfully to Able to delete a book 1. Head of librarian click Delete book info 1. Book info already 1. Book info
delete a book info from database delete button. from database stored in database already stored in
2.The book permanently have been deleted. database have
deleted at database. been deleted.
2.Display Success
”Successfully 2.Display
Delete Book” when ”Successfully
click the Delete Delete Book” when
button. click the Delete
button.
HDB002 Successfully to Able to delete a book 1. head of librarian click Delete book info 1. Book info already Book didn’t delete
delete a book info from database delete button. from database stored in database from database
2.The book permanently have been deleted.
deleted at database. Fail
2.Display
”Successfully
Delete Book” when
click the Delete
button.
76
}else{
$check_num_borrow_result=mysqli_query($conn,$check_num_borrow);
if (mysqli_affected_rows($conn)>=3){
}else{
$check_booking_result=mysqli_query($conn,$check_booking);
if (mysqli_affected_rows($conn)>0){
}else{
$booking_result=mysqli_query($conn,$booking);
if(mysqli_affected_rows($conn)==1){
$delete_booking_booking=mysqli_query($conn,$delete_booking);
};
$insert_borrow_result=mysqli_query($conn,$insert_borrow);
if (mysqli_affected_rows($conn)==1){
};
};
};
This code is used to check if the students is eligible to borrow book or not. IF the student meet the condition
below the student will not be able to
If the student did not meet the condition above the student will be able to borrow to book successfully. If the
student had booked the book before,
Conclusion
We would like to conclude that this system is a huge success making borrowing and returning
books well organised and reduces a huge hazzle in the R&A library deducing works for
employee and making things easier for our customers
References
Paul, S., 1914. Saint Paul Public Library. [online] Available at: https://sppl.org/>
[Accessed 15 May 2021].
Coxe, J, 2005, 8 models of the system development life cycle. [online] Available at:
<https://www.innovativearchitects.com/KnowledgeCenter/basic-IT-systems/8-SDLC-
models.aspx>
[Accessed 15 May 2021].
Appendix
Meetings Date Duration
1 14th May 2021 30 mins
2 17th May 2021 40mins
3 22nd May 2021 20mins
4 23rd May 2021 20mins
5 13th June 2021 10mins
6 15th June 2021 1hour
7 29th June 2021 1hour
8 15th July 2021 45mins
9 17th July 2021 20mins
Installation Guide