You are on page 1of 77

1

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 
 
 
 

Module Title: Software Development Project 


Module Code: 052021-NKS 
Lecturer: NIK SAKINAH BINTI NIK AB AZIZ 
2

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 

Student 1 Student 2 Student 3 Student 4


CLO Tasks Contribution Contribution Contribution Contribution
Percentage Percentage Percentage Percentage
1 Introduction 25% 25% 25% 25%
2 Project Plan 25% 25% 25% 25%
3 System Hierarchy Chart 25% 25% 25% 25%
4 Context Diagram 25% 25% 25% 25%
5 DFD 0 25% 25% 25% 25%
6 DFD 1 25% 25% 25% 25%
7 Data Dictionary 25% 25% 25% 25%
8 ERD 25% 25% 25% 25%
9 Flowchart 25% 25% 25% 25%
10 Screen Design 25% 25% 25% 25%
11 Report Design 25% 25% 25% 25%
12 Test Plan 25% 25% 25% 25%
13 Significant Source Code 25% 25% 25% 25%
14 Conclusion 25% 25% 25% 25%
15 References 25% 25% 25% 25%
16 Appendix 25% 25% 25% 25%
4

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

System Hierarchy Chart 

 
 
 
 
7

 ERD
8

Context Diagram
9

DFD Level 0
10

Individual Part DFD 1


Manage librarian (Ryan Lee Jun Wei) DFD 1

Data Dictionary

External Entity
Name Librarian
Description Librarian Side
Input Data Flow Account Details
Output Data Flow Librarian Details, Account Details, Delete Librarian

Name Head Of Librarian


Description Head Of Librarian Side
Input Data Flow Account Details, Search Results
Output Data Flow Delete Librarian, Search 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

Name 1.2 View Librarian


Description View Librarian’s account details
Input Data Flows -
Output Data Flow Account Details
Process Description -

Name 1.3 Update Librarian


Description Update Librarian account details
Input Data Flows Account Details
Output Data Flow Account Details
Process Description -

Name 1.4 Delete Librarian


Description Delete librarian’s account
Input Data Flows Delete librarian
Output Data Flow Delete Account
Process Description -

Name 1.5 Search Librarian


Description Search for librarian
Input Data Flows Search librarian
Output Data Flow Search Results
Process Description -
Data Flow
Name Librarian Details
Description Account to be created by librarian
Origin Librarian
Destination D1 Librarian

Name Account Details


Description Librarian’s account details
Origin D1 Librarian
Destination Librarian

Name Account Details


Description Head of librarian to view account details
Origin Head of librarian
Destination Librarian

Name Account Details


Description Librarian to view account details
Origin Librarian
Destination Head of librarian
12

Name Account Details


Description Librarian to view account details
Origin Librarian
Destination Head of librarian

Name Account Details


Description Librarian to update account details
Origin Librarian
Destination D1 Librarian

Name Delete Request


Description Librarian request to delete account
Origin Librarian
Destination D1 librarian

Name Delete Request


Description Head of librarian request to delete account
Origin Head of librarian
Destination D1 librarian

Name Search Librarian


Description Head of librarian to search for librarian
Origin Head of librarian
Destination Head of librarian

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

View (Read + Search)

Update
14

Delete
15

DFD Level-1 Manage Booking (CHAN CHUN YEW)

Data Dictionary (Manage Booking)


External Entity
Name Student
Description Student have the authority to booking and cancel booking
Input Data Flow Confirm Booking, Cancel Booking
Output Data Flow Booking Info

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

Name 3.2 Edit book list


Description To allow student edit their book list
Input Data Flow Manage book list
Output Data Flow Confirm booking

Name 3.3 View book list


Description To allow student view their book list
Input Data Flow View book
16

Output Data Flow Confirm booking

Name 3.4 Booking


Description To manage student’s booking
Input Data Flow Confirm booking
Output Data Flow Confirmed booking info

Name 3.5 Cancel booking


Description To cancel student’s booking
Input Data Flow Cancel booking request
Output Data Flow Cancel booking info

Name 3.6 Booking Status


Description To allow student to view their booking status
Input Data Flow Booking info
Output Data Flow Booking info

Data Flow
Name Add book to list
Description Allow student add book to their book list
Origin Student
Destination 3.4 Booking

Name Manage book list


Description Allow student to edit their book list
Origin Student
Destination 3.4 Booking

Name View book


Description Allow student to view their book list
Origin Student
Destination 3.4 Booking

Name Confirm booking


Description To confirm student’s booking
Origin Student
Destination 3.4 Booking

Name Confirmed booking info


Description Send the confirmed booking information to proceed order
Origin Student
17

Destination D5 Booking

Name Cancel booking request


Description To allow student cancel their booking request
Origin Student
Destination 3.5 Cancel Booking

Name Cancel booking info


Description To cancel booking that existed booking
Origin Student
Destination D5 Booking

Name Booking Info


Description The information of booking
Origin D5 Booking
Destination Student, 5.0 Manage Book

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

Manage Borrow (KUHENTREN JIA HAO A/L SARAVANAN)

Data Dictionary

Data dictionary

External Entity

Name Student
Description Student
Input Data Flow Book
Output Data Flow Manage Borrow, Cancel Borrow

Process

Name 5.0 Manage Borrow


Description Managing Borrow
21

Input Data Flow Manage Borrow


Output Data Flow Book Info

Name 5.1 Request Book


Description For requesting Book
Input Data Flow Book Info
Output Data Flow Book Info

Name 5.1 Book availability


Description For checking if book is available
Input Data Flow Check Book
Output Data Flow Book

Name 5.3 Cancel Borrow


Description For cancelling book booking
Input Data Flow Cancel Borrow
Output Data Flow Book Info

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 Info


Description Information of the Book
Origin Manage Borrow
Destination Student

Name Check Book


Description Checking the book
Origin Borrow
Destination 5.2 Book Availability

Name Cancel Borrow


Description For cancelling the book
Origin Student
22

Destination 5.3 Cancel Borrow

Name Book
Description The book
Origin Book availability
Destination 5.2 Book Availability

Name Manage Book


Description Managing the borrow
Origin Student
Destination 5.0 Manage Book

Flow Chart

Create

\
23

Read/View Borrow

Cancel Borrow
24

Update Borrow
25

Manage book DFD Level 1(Lim Huan Yang)

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

Name  6.2 Add Book


26

Description  Allow librarian to add new book to the database


Input Data Flow  Book Info
Output Data Flow  Create Info

Name  6.3 View Book


Description  Show librarian about the information of a specific book
Input Data Flow  Book Info
Output Data Flow  Book Info

Name  6.4 Update Book


Description  Allow librarian to change the information of the book
Input Data Flow  Book New Info
Output Data Flow  Updated Info

Name  6.5 Delete Book


Description  Allow librarian to delete the record of a specific book
Input Data Flow  Delete Request
Output Data Flow  Delete Info

Name  6.6 Update Database


Description  Update Database
Input Data Flow  Create Info, Updated Info, Delete Info
Output Data Flow  Book Info

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

Name Book Info


Description New Book Information
Origin 6.1 Manage Book
Destination 6.2 Add Book
27

Name Book New Info


Description Information that needed to change
Origin 6.1 Manage Book
Destination 6.4 Update Book

Name Delete Request


Description Request for confirmation
Origin 6.1 Manage Book
Destination 6.5 Delete Book

Name Create Info


Description New Book Information that needed to update to database
Origin 6.2 Add Book
Destination 6.6 Update Database

Name Updated Info


Description Information about to change needed to update to database
Origin 6.4 Update Book
Destination 6.6 Update Database

Name Delete Info


Description Recorded needed to be delete to database
Origin 6.5 Delete Book
Destination 6.6 Update Database

Name Book Info


Description Information about to update to the database
Origin 6.6 Update Database
Destination Book

Name Book Info


Description Information about to update to the database
Origin 6.6 Update Database
Destination Book

Name Book Info


Description Information about to show to the user
Origin Book
Destination 6.3 View Book

Name Book Info


28

Description Information about to update to the database


Origin Book
Destination Librarian

Flowchart
Add book

Update Book
29

Delete Book

View Book
30

Screen Design and User Manual


Login Page

Label Function Explanation


Student Redirect user to student This is the first page of
login the website where
Librarian Redirect user to librarian students, librarians and
login head of librarians need to
Head of Librarian Redirect user to head of choose where to login
librarian login from.

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

Label Function Explanation


Name Input Name This is the page where
the librarian need to type
Password Input Password in their name and
Login Login user password to login into
Register Here Redirect user to librarian the website. If the
register librarian type in incorrect
details, then it will not
lead them into the
website.

Head Librarian Login

Label Function Explanation


Name Input Name This is the page where
the head of librarian type
Password Input Password in their name and
Login Login user password to login into
32

Register Here Redirect user to head the website.


librarian register

Student Register

Label Function Explanation


Name Input Name In this page students
need to write down their
Email Input Email personal information to
Phone number Input Phone number register. After registering
Password Input Password the system will increment
a student ID for the
Confirm Password Input Confirm Password
student.
Register Register User

Librarian Register

Label Function Explanation


Name Input Name This is the page where
librarian write down their
Email Input Email information and register.
Phone number Input Phone number After registering the
Password Input Password system will increment a
librarian id.
Confirm Password Input Confirm Password
33

Register Register User

Student Homepage

Label Function Explanation


Home Redirect user to homepage This is the student’s
homepage. The student
Book Redirect user to book page can borrow, book ,check
Booking Redirect user to booking their borrow history and
page edit their profile.
Borrow Redirect user to borrow page
Profile Redirect user to profile page
Logout Logout user
34

Student Homepage

Label Function Explanation


Home Redirect user to homepage In this page, students can
look at the services that
Book Redirect user to book page R&A University provides.
Booking Redirect user to booking
page
Borrow Redirect user to borrow page
Profile Redirect user to profile page
Logout Logout user
35

Book Directory

Label Function Explanation


Home Redirect user to homepage This is the Book directory
page where students can
Book Redirect user to book page look at the description of
Booking Redirect user to booking a book that they are
page interested in. If the
Borrow Redirect user to borrow page students are interested in
Profile Redirect user to profile page the book, they can book
it.
Logout Logout user
Book’s Name Redirect user to book profile
page

Booking Status
36

Label Function Explanation


Home Redirect user to homepage In this page, students can
cancel their booking if
Book Redirect user to book page they don’t want to
Booking Redirect user to booking borrow the book
page anymore.
Borrow Redirect user to borrow page
Profile Redirect user to profile page
Logout Logout user
Cancel Booking Cancel Booking

Borrowing Page
37

Label Function Explanation


Home Redirect user to homepage In this page students can
look at the books that
Book Redirect user to book page they have borrowed and
Booking Redirect user to booking they can see the return
page date of the book there as
Borrow Redirect user to borrow page well.
Profile Redirect user to profile page
Logout Logout user

Borrow History
38

Label Function Explanation


Home Redirect user to homepage In this page students can
look at the books that
Book Redirect user to book page they have borrowed and
Booking Redirect user to booking they can see the return
page date of the book there as
Borrow Redirect user to borrow page well.
Profile Redirect user to profile page
Logout Logout user

Student Profile
39

Label Function Explanation


Student ID List ID of student This is the profile page
where it will display the
Name Input Name logged in student’s
Email Input Email details. Students can
change their Name,
Phone number Input Phone number
email, phone number and
Password Input Password password from here but
Show Password Show Password they cant change their
student ID.
Update Profile Edit user account

Librarian Home Page


40

Label Function Explanation


Home Redirect user to homepage This is the librarian’s
home page. From here
Rules & Regulations Redirect user to Rules & the librarian can click on
Regulations other buttons such as
Borrow Redirect user to borrow page the rules and regulation
Return Redirect user to return page button to check out the
View Book Info Redirect user to view book rules.
info page
Edit Profile Redirect user to edit profile
page
Log Out Log out user

Librarian Homepage
41

Label Function Explanation


Home Redirect user to homepage This is the page where
the librarian can look at
Rules & Regulations Redirect user to Rules & the rules and regulation
Regulations of the library.
Borrow Redirect user to borrow page
Return Redirect user to return page
View Book Info Redirect user to view book
info page
Edit Profile Redirect user to edit profile
page
Log Out Log out user

Librarian Borrow Page


42

Label Function Explanation


Home Redirect user to homepage In this page, the librarian
can help the student to
Rules & Regulations Redirect user to Rules & borrow a book by
Regulations putting in the student’s
Borrow Redirect user to borrow page ID and the book’s serial
Return Redirect user to return page number.
View Book Info Redirect user to view book
info page
Edit Profile Redirect user to edit profile
page
Log Out Log out user
Student ID Enter Student ID
Book Serial Number Enter Book Number
Borrow Borrow book for student

Return Page
43

Label Function Explanation


Home Redirect user to homepage This is the page where
the librarian will put in
Rules & Regulations Redirect user to Rules & the student’s ID and
Regulations book serial number if the
Borrow Redirect user to borrow page student returned the
Return Redirect user to return page book.
View Book Info Redirect user to view book
info page
Edit Profile Redirect user to edit profile
page
Log Out Log out user
Student ID Enter Student ID
Book Serial Number Enter Book Number
Return Return book for student
44

Book Info Page

Label Function Explanation


Home Redirect user to homepage This is the View book
info page where the
Rules & Regulations Redirect user to Rules & librarian can create a
Regulations new book, edit book
Borrow Redirect user to borrow page details and also delete
Return Redirect user to return page book.
View Book Info Redirect user to view book
info page
Edit Profile Redirect user to edit profile
page
Log Out Log out user
Create Book Add a new book to the page
45

Book Info Page

Label Function Explanation


Home Redirect user to homepage This is the View book
info page where the
Rules & Regulations Redirect user to Rules & librarian can create a
Regulations new book, edit book
Borrow Redirect user to borrow page details and also delete
Return Redirect user to return page book.
View Book Info Redirect user to view book
info page
Edit Profile Redirect user to edit profile
page
Log Out Log out user
Edit Edit Book
Delete Delete Book

Create Book
46

Label Function Explanation


Home Redirect user to homepage When the librarian click
on the create a new
Rules & Regulations Redirect user to Rules & book button it will lead
Regulations them to this page where
Borrow Redirect user to borrow page u can create a new book
Return Redirect user to return page by writing down the title,
View Book Info Redirect user to view book put a image and also
info page write down the
Edit Profile Redirect user to edit profile description.
page
Log Out Log out user
Title Enter book title
Image Insert book image
Description Enter book description
Create Create book

Edit Book
47

Label Function Explanation


Home Redirect user to homepage The edit button will lead
the librarian to the page
Rules & Regulations Redirect user to Rules & where they can edit the
Regulations book details, image and
Borrow Redirect user to borrow page title.
Return Redirect user to return page
View Book Info Redirect user to view book
info page
Edit Profile Redirect user to edit profile
page
Log Out Log out user
Serial No List book serial no
Title Enter book title
Image Insert Book Image
Description Enter Book Description
Update Book Edit book
48

Librarian Edit Profile

Label Function Explanation


Home Redirect user to homepage This is the librarian’s
profile page. In this page
Rules & Regulations Redirect user to Rules & the librarian can change
Regulations their name, email and
Borrow Redirect user to borrow page password.
Return Redirect user to return page
View Book Info Redirect user to view book
info page
Edit Profile Redirect user to edit profile
page
Log Out Log out user
Lib ID List Lib ID
Name Enter Name
Email Enter Email
Password Enter Password
Show Password Show Password
Update profile Edit profile
49

Head of Librarian Homepage

Label Function Explanation


Home Redirect user to homepage This is the head of
librarian homepage. This
Book Flow of this Redirect user to book flow of page will appear after the
month this month head of librarian login
View Book Info Redirect user to view book into their account.
info
Register a librarian Redirect user to register a
librarian
Edit Profile Redirect user to edit profile
Log Out Log out user

Head of librarian Edit Profile


50

Label Function Explanation


Home Redirect user to homepage This is the head of
librarian profile page
Book Flow of this Redirect user to book flow of where they can change
month this month their personal details.
View Book Info Redirect user to view book
info
Register a librarian Redirect user to register a
librarian
Edit Profile Redirect user to edit profile
Log Out Log out user
Hol ID List Hol ID
Name Enter Name
Email Enter Email
Password Enter Password
Show password Show password
Update Profile Edit profile
51

Report Design

Label Function Explanation


Home Redirect user to homepage This is the book flow of
the month page where
Book Flow of this Redirect user to book flow of the head of librarian can
month this month check how many books
View Book Info Redirect user to view book students borrow or
info return.
Register a librarian Redirect user to register a
librarian
Edit Profile Redirect user to edit profile
Log Out Log out user
52

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

Head of Librarian Login

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

Head of Librarian Register

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

Student View Book

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

Student View Book Information

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

Statistics in Head of Librarian Home Page

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 Number of borrow Show Chart Show Chart


record and Number of
S002 — — return record Success

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 Fail


this book

The student has


borrowed less than 3
books
Successfully Valid Info Input 1. Enter Serial No Serial No and New borrow record New borrow record
Borrow of the book and Student ID in borrow table in borrow table
No booking record on student id
this book by other 2. Click borrow
student button

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

Head of Librarian Profile

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

Librarian Add Book

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

Librarian Edit Book Information

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

Librarian Delete Book

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

Head of Librarian Add Book

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

Head of Librarian Edit Book Information

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

Head of Librarian Delete Book

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

Significant Source Code


if (mysqli_affected_rows($conn)>0){

echo ("<script>alert('This book has been borrowed by other student.')</script>");

}else{

$check_num_borrow_result=mysqli_query($conn,$check_num_borrow);

if (mysqli_affected_rows($conn)>=3){

echo ("<script>alert('Only 3 books can be borrowed at a time.')</script>");

}else{

$check_booking_result=mysqli_query($conn,$check_booking);

if (mysqli_affected_rows($conn)>0){

echo ("<script>alert('This book has been booked by other student.')</script>");

}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){

echo ("<script>alert('This book has successfully been borrowed.')</script>");

};

};

};

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

borrow the book:

-the specific book had been booked by another student

-the student had borrowed 3 or more books

-the specific book had been borrowed by another student

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,

the booking record will be deleted


77

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

1. Download Xampp in google


2. Download our R&A Library Zip File
3. Extract Zip file to your drive > xampp > htdocs
4. Download R&A Library database
5. Click on mysql admin and import our database

You might also like