Online Leave Management Project

61
CE00425-2-Web Programming Leave Management System Page 1 of 61 WEB PROGRAMMING CE00425-2 Online Leave Management System (PT128/COM) Bachelor of Engineering (Hons.) In Computing Staffordshire University A project submitted in complete fulfillment of the award of the Bachelor of Engineering (Hons.) in Computing Level 2 Asia Pacific Institute of Information Technology 2015

Transcript of Online Leave Management Project

Page 1: Online Leave Management Project

CE00425-2-Web Programming Leave Management System Page 1 of 47

WEB PROGRAMMING

CE00425-2

Online Leave Management System (PT128/COM)

Bachelor of Engineering (Hons.)

In

Computing

Staffordshire University

A project submitted in complete fulfillment of the award of the Bachelor of Engineering (Hons.) in Computing

Supervised by: - Ms. Ravi Sachdeva

Submitted by: - Kumar Anuj (PT1282245)

Level 2 Asia Pacific Institute of Information Technology 2015

Page 2: Online Leave Management Project

CE00425-2-Web Programming Leave Management System Page 2 of 47

Certificate

Semester: VI

This is to certify that Kumar Anuj (PT1282245) Third year student of APIIT SD

INDIA has successfully completed his 6th SEM Project on “WEB

PROGRAMMING (CE00425-2)” under the sheer guidance of Mr. Ravi Sachdeva.

Student Name Batch Code

Kumar Anuj PT1282245

______________ ______________ (Signature) (Signature)

Mr. Ravi SachdevaAPIIT SD INDIA (Project Supervisor)

Level 2 Asia Pacific Institute of Information Technology 2015

Page 3: Online Leave Management Project

CE00425-2-Web Programming Leave Management System Page 3 of 47

TABLE OF CONTANTTABLE OF CONTANT.....................................................................................................................................3

Acknowledgement.......................................................................................................................................6

Project Profile..............................................................................................................................................7

Introduction.................................................................................................................................................8

SOFTWARE ENGINEERING PRACTICE...........................................................................................................9

Function Usage........................................................................................................................................9

One Time Classes.....................................................................................................................................9

Usage of Object Oriented Concepts........................................................................................................9

Usability...................................................................................................................................................9

SCREEN MOCK-UPS:- A screen shot (sometimes called a screen capture) is an image of a computer desktop that can be saved as a graphics file. Various programs are available for creating screen shots, but it is easy to do without any special program..............................................................................................10

Home Page of admin:-...........................................................................................................................10

Insert Leave:-.....................................................................................................................................10

Search, Delete Leave:-.......................................................................................................................11

Insert Staff:-.......................................................................................................................................11

Update Staff:-....................................................................................................................................12

Apply Leave:-.....................................................................................................................................13

Check Status:-....................................................................................................................................13

Home Page of Program Coordinator:-...................................................................................................14

View staff History:-............................................................................................................................14

View Leave Request:-........................................................................................................................15

Storyboards...............................................................................................................................................16

Login Page.............................................................................................................................................16

Administrator Home page:-...................................................................................................................17

Insert, Search, Update, Delete Leave:-..................................................................................................18

Insert, Search, Update, Delete Staff:-....................................................................................................19

Logout for admin page:-........................................................................................................................20

Home Page of staff:-..............................................................................................................................21

Apply leave:-......................................................................................................................................22

Level 2 Asia Pacific Institute of Information Technology 2015

Page 4: Online Leave Management Project

CE00425-2-Web Programming Leave Management System Page 4 of 47

Check Status:-....................................................................................................................................23

Logout Staff page:-.............................................................................................................................24

Home Page of Program Coordinator:-...................................................................................................25

View Staff History:-............................................................................................................................26

View Leave Request:-........................................................................................................................27

Logout page of Program Coordinator:-..............................................................................................28

Navigation Design: -...................................................................................................................................29

Testing:-.....................................................................................................................................................30

System testing:-.....................................................................................................................................30

Testing Process......................................................................................................................................30

Unit Testing:-.........................................................................................................................................32

Unit testing for Login page:-..............................................................................................................32

Unit testing for leave page:-..................................................................................................................34

Add types of leave:-...........................................................................................................................34

Search/delete types of leave:-...........................................................................................................35

Testing for logout admin page:-.........................................................................................................36

Unit testing for Staff page:-...................................................................................................................37

Add staff details:-...............................................................................................................................37

Search / update / delete the staff details:-........................................................................................38

Unit testing for logout the staff details:-............................................................................................40

Unit testing for program coordinator:-..................................................................................................41

Testing for view leave request or approved and rejected:-...............................................................41

Testing for view staff details:-............................................................................................................42

Testing for logout program coordinator page:-.................................................................................43

INTEGRATION TESTING:-........................................................................................................................44

Critical analysis of software against testing plan:-.....................................................................................45

Conclusion.................................................................................................................................................46

Limitations.............................................................................................................................................46

Assumptions..........................................................................................................................................46

Future Enhancements...........................................................................................................................47

References:-..............................................................................................................................................47

Level 2 Asia Pacific Institute of Information Technology 2015

Page 5: Online Leave Management Project

CE00425-2-Web Programming Leave Management System Page 5 of 47

Acknowledgement

Thanks to almighty and my parents for giving me the strength and skills to complete this project

successfully. Without their blessings it would not have been such a cherished achievement. I

would like to use this opportunity to thank all who lend their hand for completing my third year

project successfully. First of all I would like to thanks our supervisor Mr. Ravi Sachdeva. Who

supported me at different aspects of the assignment and without their guidance the project would

have been a tedious task for me.

Over a period of two months I had been working hard to achieve my goal. Now after the project

has been completed I am happy to see the best results. This project holds a high position in my

career. I have strived hard to complete my project. My goal was to give an outstanding and

appreciating performance. Though there were lots of problems I had to face but I worked hard

and moved on and on.

Also I would like to thanks lab assistants, the librarian and APIIT SD INDIA management

for providing us with good services and creating an environment for carrying out our project. At

last I would like to extend my thankfulness to college administration as well as my friends who

have helped me at their level in the project.

Level 2 Asia Pacific Institute of Information Technology 2015

Page 6: Online Leave Management Project

CE00425-2-Web Programming Leave Management System Page 6 of 47

Project Profile

Name of The Project : Online Leave Management System

Project Details : Web application Leave Management System

Project Category : Web based

Developer : Kumar Anuj

Project Supervisor : Mr. Ravi Sachdeva

Tools and technologies used:

Operating System : Windows 7

Front end : XHTML 1.0

Logic layer : PHP

Back end : MySQL

Support Tools : Adobe Dreamweaver CS5, MS Word, MS

Visio, Paint, XAMPP, APACHE

Level 2 Asia Pacific Institute of Information Technology 2015

Page 7: Online Leave Management Project

CE00425-2-Web Programming Leave Management System Page 7 of 47

IntroductionAs the web technology and its viewers are growing, more and more websites are beginning to

adapt more and more of dynamic contents. This is the reason why development of dynamic web

applications are increasing and people are getting more interested in to dynamic websites as

compared to the past days. This website helps for employee like he/she can apply the leave

without any types of facing problems. As a part of our assignment, we have proposed to design

and develop an Online Leave Management System. These website users select the leave types

according to user choice and fill all details and apply for the leave and user can check

information about leave like Pending, Reject, and Approved by the program coordinator. The

primary goal of a Leave Management site is goods services online.

Implementation of the web site should include the following:

1. Login: Only authorized staff members, program coordinator and administrator should be able to login.

2. Administratori. Can define types of leaves (insert/delete type of leave)

ii. Can set number of leaves to be allocated to the staff members for each type of leave

iii. Can insert/update/delete staff member

3. Staff Memberi. Can apply for the leave

ii. Can view his/her own leave historyiii. Can view the status of applied leave as updated by program coordinator

(approved/rejected)

4. Program Coordinatori. Can view the leave requests received from staff members

ii. Can approve/reject the leave request receivediii. Can view the leave history of any staff member

Level 2 Asia Pacific Institute of Information Technology 2015

Page 8: Online Leave Management Project

CE00425-2-Web Programming Leave Management System Page 8 of 47

SOFTWARE ENGINEERING PRACTICEThe Software Engineering Large Practical exposes student to the problem that arise with the design and implementation of large scale computer system, and to method of copping with sach problem. In-text: (Anon, 2015)

The whole Development phase has been done following impeccable usage of various methods.

Function Usage The usage of functions helps to break the code into meaningful blocks and hence makes the code

readable plus allows the coder or the other person to make changes easily.

One Time Classes The things that have been repeatedly uses are combed into one PHP file and then it is bundled to

the page via calling method and hence saves the overhead programming complexity.

Usage of Object Oriented Concepts The PHP is very modern language with very vast flexibility provided still various functions and

global array has been used to make the work easier.

Usability What the point of making an application if it does not satisfy the client? It is only possible to

meet the requirements in our case, if we undoubtedly make sure that there are no issues in

operating the website. The website has to be user friendly such that a novice user can even

operate it. Utmost care has been taken for the same so that the website is easy to for new

members as well.

Level 2 Asia Pacific Institute of Information Technology 2015

Page 9: Online Leave Management Project

CE00425-2-Web Programming Leave Management System Page 9 of 47

SCREEN MOCK-UPS:- A screen shot (sometimes called a screen capture) is an image of a computer desktop that can be saved as a graphics file. Various programs are available for creating screen shots, but it is easy to do without any special program.

Login page

Home Page of admin:-

Level 2 Asia Pacific Institute of Information Technology 2015

Admin Page where admin can insert, search, delete the staff

Insert, Search, Delete the leave by the admin

Enter a valid username

Enter a valid password

Submit button

Name of the website

Page 10: Online Leave Management Project

CE00425-2-Web Programming Leave Management System Page 10 of 47

Insert Leave:-

Search, Delete Leave:-

Level 2 Asia Pacific Institute of Information Technology 2015

Admin Insert the Leave

Search the Leave and delete by the admin

Enter leave type by the admin

Enter no of days for leave by the admin

Page 11: Online Leave Management Project

CE00425-2-Web Programming Leave Management System Page 11 of 47

Insert Staff:-

Update Staff:-

Level 2 Asia Pacific Institute of Information Technology 2015

INSERT STAFF BY THE ADMIN

SEARCH AND AFTER UPDATE STAFF

FILL UP ALL THE DETAILS OF STAFF MEMBER BY THE ADMIN

THIS PAGE ADMIN CAN UPADTE THE DETAILS OF STAFF

Page 12: Online Leave Management Project

CE00425-2-Web Programming Leave Management System Page 12 of 47

Home Page of Staff:-

Apply Leave:-

Level 2 Asia Pacific Institute of Information Technology 2015

THIS IS THE HOME PAGE OF STAFF MEMBER

Select the leave type and date also for apply leave

In this page staff can apply the leave and also check leave status (approved or rejected)

Page 13: Online Leave Management Project

CE00425-2-Web Programming Leave Management System Page 13 of 47

Check Status:-

Home Page of Program Coordinator:-

Level 2 Asia Pacific Institute of Information Technology 2015

Staff can check his/her own status it is approved by the program coordinator or not

HOME PAGE OF PROGRAM COORDINATOR

In this page program coordinator can view the staff history and also view the leave request

Page 14: Online Leave Management Project

CE00425-2-Web Programming Leave Management System Page 14 of 47

View staff History:-

View Leave Request:-

Level 2 Asia Pacific Institute of Information Technology 2015

VIEW LEAVE REQUEST

This page program coordinator can view the staff history after enter the user id

In this page program coordinator can approved or reject the leave request

Page 15: Online Leave Management Project

CE00425-2-Web Programming Leave Management System Page 15 of 47

Storyboards: - A sequence of drawings, typically with some directions and

dialogue, representing the shots planned for a film or television production.

Login Page

Project Title:-Online Leave Management System

Date on which this story board is develop:14th April2015 Welcome Users

Username

Password

2 buttons has taken login and cancel

Functionality/InteractivityThis screen contains all the necessary information regarding Leave Management System after login the page

Color Scheme: White-Grey.

Audio: NoVideo: No

Text attributes: Title, Home page & Menu Bars.Stills: Background Images.

Footer

Level 2 Asia Pacific Institute of Information Technology 2015

Login Cancel

ENTER A VALID USERNAME

ENTER SECRET PASSWORD

Page 16: Online Leave Management Project

CE00425-2-Web Programming Leave Management System Page 16 of 47

Administrator Home page:-

Project Title:-Online Leave Management System

Date on which this story board is develop:14th April2015

Screen:4 of 4 Screen Description:

Link to screen:4, link name Home, Leave, Staff, Logout

Functionality/InteractivityThis screen contains all the necessary information regarding Leave Management System

Click home page go to the home page of admin

This storyboard has 4 links that allow Navigating whole system.

Welcome Administrator

Home

Leave

Staff

Logout

Image Slider

Footer

4 buttons for home, Leave, Staff, LogoutBackground: Plain Image

Color Scheme: White-Grey.

Audio: NoVideo: No

Text attributes: Title, Home page & Menu Bars.Stills: Background Images.

Level 2 Asia Pacific Institute of Information Technology 2015

This is the title of the

Menu Bar

This page display Home page

Page 17: Online Leave Management Project

CE00425-2-Web Programming Leave Management System Page 17 of 47

Insert, Search, Update, Delete Leave:-

Project Title:-Online Leave Management System

Date on which this story board is develop:14th April2015

Screen:2 of 4 Screen Description:

Link to screen:4, link name Home, Leave, Staff, Logout

Functionality/InteractivityThis screen contains all the necessary information regarding Leave Management System

This storyboard has 4 links and 2 sub links (insert, search, delete) that allow Navigating whole system.

Level 2 Asia Pacific Institute of Information Technology 2015

This page display Leave page (Insert, Search, Delete)

Page 18: Online Leave Management Project

CE00425-2-Web Programming Leave Management System Page 18 of 47

Welcome Administrator

Home

Leave

Staff

Logout

Image Slider

Footer

4 buttons for home, Leave, Staff, LogoutBackground: Plain Image

Color Scheme: White-Grey.

Audio: NoVideo: No

Text attributes: Title, Home page & Menu Bars.Stills: Background Images.

Insert, Search, Update, Delete Staff:-

Project Title:-Online Leave Management System

Date on which this story board is develop:14th April2015

Screen: 3 of 4 Screen Description:

Link to screen:4, link name Home, Leave, Staff, Logout

Functionality/InteractivityThis screen contains all the necessary information regarding Leave Management System

4 Buttons for insert, Search, Update, Delete for staff member

This storyboard has 5 links that allow Navigating whole system.

Level 2 Asia Pacific Institute of Information Technology 2015

This is the title of the

Menu Bar

This page display the staff member

Page 19: Online Leave Management Project

CE00425-2-Web Programming Leave Management System Page 19 of 47

Welcome Administrator

Home

Leave

Staff

Logout

Image Slider

Footer

4 buttons for home, Leave, Staff, Logout

Background: Plain Image

Color Scheme: White-Grey.

Audio: NoVideo: No

Text attributes: Title, Home page & Menu Bars.Stills: Background Images.

Logout for admin page:-

Project Title:-Online Leave Management System

Date on which this story board is develop:14th April2015

Screen:4 of 4 Screen Description:

Link to screen:4, link name Home, Leave, Staff, Logout

Functionality/InteractivityThis screen contains all the necessary information regarding Leave Management System

Click Logout buttons go to the login pages

This storyboard has 5 links that allow Navigating whole system.

Level 2 Asia Pacific Institute of Information Technology 2015

This is the title of the

Menu Bar

This page display Logout page

Page 20: Online Leave Management Project

CE00425-2-Web Programming Leave Management System Page 20 of 47

Welcome Administrator

Home

Leave

Staff

Logout

Image Slider

Footer

4 buttons for home, Leave, Staff, LogoutBackground: Plain Image

Color Scheme: White-Grey.

Audio: NoVideo: No

Text attributes: Title, Home page & Menu Bars.Stills: Background Images.

Home Page of staff:-

Project Title:-Online Leave Management System

Date on which this story board is develop:14th April2015

Level 2 Asia Pacific Institute of Information Technology 2015

This is the title of the

Menu Bar

Page 21: Online Leave Management Project

CE00425-2-Web Programming Leave Management System Page 21 of 47

Screen:1 of 4 Screen Description:

Link to screen:4, link name Home, Apply Leave, Check Status, Logout

Functionality/InteractivityThis screen contains all the necessary information regarding Leave Management System

This storyboard has 4 links that allow Navigating whole system.

Welcome Staff

Home

Apply Leave

Check Status

Logout

Image Slider

Footer

4 buttons for home, Apply Leave, Check Status, LogoutBackground: Plain Image

Color Scheme: White-Grey.

Audio: NoVideo: No

Text attributes: Title, Home page & Menu Bars.Stills: Background Images.

Apply leave:-

Project Title:-Online Leave Management System

Level 2 Asia Pacific Institute of Information Technology 2015

This is the title of the

Menu Bar

This page display Home page

Page 22: Online Leave Management Project

CE00425-2-Web Programming Leave Management System Page 22 of 47

Date on which this story board is develop:14th April2015

Screen:2 of 4 Screen Description:

Link to screen:4, link name Home, Apply Leave, Check Status, Logout

Functionality/InteractivityThis screen contains all the necessary information regarding Leave Management System User can apply leave when he/she click Apply leave button

This storyboard has 4 links that allow Navigating whole system.

Welcome Staff

Home

Apply Leave

Check Status

Logout

Image Slider

Footer

4 buttons for home, Apply Leave, Check Status, LogoutBackground: Plain Image

Color Scheme: White-Grey.

Audio: NoVideo: No

Text attributes: Title, Home page & Menu Bars.Stills: Background Images.

Check Status:-

Project Title:-Online Leave Management System

Level 2 Asia Pacific Institute of Information Technology 2015

This is the title of the

Menu Bar

This page display Apply Leave page where user can apply leave

Page 23: Online Leave Management Project

CE00425-2-Web Programming Leave Management System Page 23 of 47

Date on which this story board is develop:14th April2015

Screen:3 of 4 Screen Description:

Link to screen:4, link name Home, Apply Leave, Check Status, Logout

Functionality/InteractivityThis screen contains all the necessary information regarding Leave Management System User can check his/her status (Pending, Reject, Approved) after click Check Status Button

This storyboard has 4 links that allow Navigating whole system.

Welcome Staff

Home

Apply Leave

Check Status

Logout

Image Slider

Footer

4 buttons for home, Apply Leave, Check Status, LogoutBackground: Plain Image

Color Scheme: White-Grey.

Audio: NoVideo: No

Text attributes: Title, Home page & Menu Bars.Stills: Background Images.

Logout Staff page:-

Project Title:-Online Leave Management System

Level 2 Asia Pacific Institute of Information Technology 2015

This is the title of the

Menu Bar

This page display Check Status page

Page 24: Online Leave Management Project

CE00425-2-Web Programming Leave Management System Page 24 of 47

Date on which this story board is develop:14th April2015

Screen: 4 of 4 Screen Description:

Link to screen:4, link name Home, Apply Leave, Check Status, Logout

Functionality/InteractivityThis screen contains all the necessary information regarding Leave Management System Click Logout buttons go to the login pages

This storyboard has 4 links that allow Navigating whole system.

Welcome Staff

Home

Apply Leave

Check Status

Logout

Image Slider

Footer

4 buttons for home, Apply Leave, Check Status, LogoutBackground: Plain Image

Color Scheme: White-Grey.

Audio: NoVideo: No

Text attributes: Title, Home page & Menu Bars.Stills: Background Images.

Home Page of Program Coordinator:-

Project Title:-Online Leave Management System

Level 2 Asia Pacific Institute of Information Technology 2015

This is the title of the

Menu Bar

This page display Logout page

Page 25: Online Leave Management Project

CE00425-2-Web Programming Leave Management System Page 25 of 47

Date on which this story board is develop:14th April2015

Screen:1 of 4 Screen Description:

Link to screen:4, link name Home, View Staff history, View Leave Request, Logout.

Functionality/InteractivityThis screen contains all the necessary information regarding Leave Management System

This storyboard has 4 links that allow Navigating whole system.

Welcome Program Coordinator

Home

View Staff History

View Leave Request

Logout

Image Slider

Footer

4 buttons for home, Apply Leave, Check Status, LogoutBackground: Plain Image

Color Scheme: White-Grey.

Audio: NoVideo: No

Text attributes: Title, Home page & Menu Bars.Stills: Background Images.

View Staff History:-

Project Title:-Online Leave Management System

Level 2 Asia Pacific Institute of Information Technology 2015

This is the title of the

Menu Bar

This page display Home page

Page 26: Online Leave Management Project

CE00425-2-Web Programming Leave Management System Page 26 of 47

Date on which this story board is develop:14th April2015

Screen:2 of 4 Screen Description:

Link to screen:4, link name Home, View Staff history, View Leave Request, Logout.

Functionality/InteractivityThis screen contains all the necessary information regarding Leave Management System

Program Coordinator can view staff history by clicking on view Staff history Button.

This storyboard has 4 links that allow Navigating whole system.

Welcome Program Coordinator

Home

View Staff History

View Leave Request

Logout

Image Slider

Footer

4 buttons for home, Apply Leave, Check Status, LogoutBackground: Plain Image

Color Scheme: White-Grey.

Audio: NoVideo: No

Text attributes: Title, Home page & Menu Bars.Stills: Background Images.

View Leave Request:-

Project Title:-Online Leave Management System

Level 2 Asia Pacific Institute of Information Technology 2015

This is the title of the

Menu Bar

This page display View Staff History page

Page 27: Online Leave Management Project

CE00425-2-Web Programming Leave Management System Page 27 of 47

Date on which this story board is develop:14th April2015

Screen:3 of 4 Screen Description:

Link to screen:4, link name Home, View Staff history, View Leave Request, Logout.

Functionality/InteractivityThis screen contains all the necessary information regarding Leave Management System

Program Coordinator can view leave request by clicking on view leave request Button.

This storyboard has 4 links that allow Navigating whole system.

Welcome Program Coordinator

Home

View Staff History

View Leave Request

Logout

Image Slider

Footer

4 buttons for home, Apply Leave, Check Status, LogoutBackground: Plain Image

Color Scheme: White-Grey.

Audio: NoVideo: No

Text attributes: Title, Home page & Menu Bars.Stills: Background Images.

Logout page of Program Coordinator:-

Project Title:-Online Leave Management System

Date on which this story board is develop:14th April2015

Level 2 Asia Pacific Institute of Information Technology 2015

This is the title of the

Menu Bar

This page display View Leave Request page

Page 28: Online Leave Management Project

CE00425-2-Web Programming Leave Management System Page 28 of 47

Screen:4 of 4 Screen Description:

Link to screen:4, link name Home, View Staff history, View Leave Request, Logout.

Functionality/InteractivityThis screen contains all the necessary information regarding Leave Management System

Program Coordinator can view leave request by clicking on view leave request Button.

Click Logout buttons go to the login pages

This storyboard has 4 links that allow Navigating whole system.

Welcome Program Coordinator

Home

View Staff History

View Leave Request

Logout

Image Slider

Footer

4 buttons for home, Apply Leave, Check Status, LogoutBackground: Plain Image

Color Scheme: White-Grey.

Audio: NoVideo: No

Text attributes: Title, Home page & Menu Bars.Stills: Background Images.

Navigation Design: - Navigation is often taken for granted, but it plays a crucial role in getting site visitors to view more than just the home page. If navigation choices are unclear, visitors may elect to hit the “Back”button on their first (and final) visit to a Web site. In-text: (Developer.com, 2015)

Level 2 Asia Pacific Institute of Information Technology 2015

This is the title of the

Menu Bar

This page display View Leave Request page

Page 29: Online Leave Management Project

CE00425-2-Web Programming Leave Management System Page 29 of 47

Level 2 Asia Pacific Institute of Information Technology 2015

Page 30: Online Leave Management Project

CE00425-2-Web Programming Leave Management System Page 30 of 47

Testing:-

System testing:-A type of testing to confirm that all code modules work as specified, and that the system as a

whole performs adequately on the platform on which it will be deployed.

System testing should be performed by testers who are trained to plan, execute, and report on

application and system code. They should be aware of scenarios that might not occur to the end

user, like testing for null, negative, and format inconsistent values. A tester should be able to

repeat the steps that caused an error.

Components of Testing are given below

Testing process

Requirements traceability

Tested items

Testing schedule

Test recording procedure

Hardware and software requirements

Constraints

Testing Process Testing process as the name suggests is the systematic step by step approach to testing.

They are listed in number below: -

1. Unit Testing.

2. Module Testing.

3. System Testing.

They are others as well but they hardly matter given the scenario we are working on.

Level 2 Asia Pacific Institute of Information Technology 2015

Page 31: Online Leave Management Project

CE00425-2-Web Programming Leave Management System Page 31 of 47

The given image is of a V Model that is software development process that includes testing at

every phase in order to provide quality work.

Broadly the testing is divided into white box testing and black box testing, but let’s follow the

approach that would be used for the website.

Test Cases

Test cases in short are set of inputs under conditions and the expected output tabulated against

the real one.

Level 2 Asia Pacific Institute of Information Technology 2015

Page 32: Online Leave Management Project

CE00425-2-Web Programming Leave Management System Page 32 of 47

Unit Testing:-

Unit testing for Login page:-

Project Name “Online Leave Management System”

Test ID TID 01

Testing Module Login

Testing Method Unit Testing

Date 18th April 2015

Name of tester Kumar Anuj

Description of module This module allows to access login page

Pre-condition Go to the website and navigate to the login

page

Level 2 Asia Pacific Institute of Information Technology 2015

Page 33: Online Leave Management Project

CE00425-2-Web Programming Leave Management System Page 33 of 47

No Actual Input Expected

Result

Actual

Result

Status Error Correction

Measure

TC 1 Username=”1”

Password=”Admin”

Authentication

successful and

user is

hovered to

home page

As

expected

Pass None NA

TC 2 Username=”1”

Password=”Adm”

Authentication

failed as

username and

password

doesn’t match

As

expected

Pass None NA

TC 3 Username=”2”

Password=”staff”

Authentication

successful and

user is

hovered to

home page

As

expected

Pass None NA

TC 4 Username=”2”

Password=”stf”

Authentication

failed as

username and

password

doesn’t match

As

expected

Pass None NA

TC 5 Username=”3”

Password=”pc”

Authentication

successful and

user is

hovered to

home page

As

expected

Pass None NA

TC 6 Username= “3”

Password=”pz”

Authentication

unsuccessful

As

expected

Pass None NA

Level 2 Asia Pacific Institute of Information Technology 2015

Page 34: Online Leave Management Project

CE00425-2-Web Programming Leave Management System Page 34 of 47

Unit testing for leave page:-

Add types of leave:-

Project Name “Online Leave Management System”

Test ID TID 02

Testing Module Add leave types

Testing Method Unit Testing

Date 18th April 2015

Name of tester Kumar Anuj

Description of module This module allows to insert leave types by the

admin

Pre-condition Home page

No Actual

Input

Expected

Result

Actual

Result

Status Error Correction

Measure

TC 1 Insert leave

types and

date also

Successfully

inserted

leave

As expected Pass None NA

TC 2 Insert leave

types and

date is not

inserted.

Leave not

inserted and

date is

required

As expected Pass Validation

(required)

Apply

reduction

technique in

date page of

php code

TC 3 Inserted

leave date

Leave types

is required

As expected Pass Validation

(required)

NA

Level 2 Asia Pacific Institute of Information Technology 2015

Page 35: Online Leave Management Project

CE00425-2-Web Programming Leave Management System Page 35 of 47

but not

inserted

leave types

TC 4 No data is

inserted

Leave types

and date is

required

As expected Fail Not inter

the data in

database

Apply

correction

technique

Search/delete types of leave:-

Project Name “Online Leave Management System”

Test ID TID 03

Testing Module Search /delete leave types

Testing Method Unit Testing

Date 18th April 2015

Name of tester Kumar Anuj

Description of module This module allows searching leave types and

after access admin can delete it.

Pre-condition Home page

No Actual

Input

Expected

Result

Actual

Result

Status Error Correction

Measure

TC 1 Search

leave types

Search

successfully

As

expected

Pass None NA

TC 2 No input is

given in

Please enter

search filed

As

expected

Pass None NA

Level 2 Asia Pacific Institute of Information Technology 2015

Page 36: Online Leave Management Project

CE00425-2-Web Programming Leave Management System Page 36 of 47

search field (required)

TC 3 Input is

given in

search filed

Data is

search

successfully

Leave is

delete

successfull

y by the

click of

delete

button

Pass None NA

TC 4 Search

leave types

Leave types

is

successfully

search

Leave is

not deleted

after click

on delete

button

Fail Php error Check php

code and

corrected it

Testing for logout admin page:-

Project Name “Online Leave Management System”

Test ID TID 04

Testing Module Logout the administrator page.

Testing Method Unit Testing

Date 18th April 2015

Name of tester Kumar Anuj

Description of module This section allows to logout the admin page

after click on logout button.

Pre-condition Home page

Level 2 Asia Pacific Institute of Information Technology 2015

Page 37: Online Leave Management Project

CE00425-2-Web Programming Leave Management System Page 37 of 47

No Actual Input

Expected Result

Actual Result

Status Error Correction Measure

TC 1 Click to logout button

Logout successfully

Open login page (as expected)

Pass None NA

TC 2 Click logout page

Logout not successfully

As expected

Fail Link is not connected in admin home page

Connect the logout link in the admin page

Unit testing for Staff page:-

Add staff details:-

Project Name “Online Leave Management System”

Test ID TID 05

Testing Module Add staff types

Testing Method Unit Testing

Date 18th April 2015

Name of tester Kumar Anuj

Description of module This module allows to insert leave types by the

admin

Pre-condition Home page

Level 2 Asia Pacific Institute of Information Technology 2015

Page 38: Online Leave Management Project

CE00425-2-Web Programming Leave Management System Page 38 of 47

No Actual

Input

Expected

Result

Actual

Result

Status Error Correction

Measure

TC 1 Insert staff

details

Successfully

inserted

staff

As expected Pass None NA

TC 2 Input is

empty

Input is

required

As expected Pass None NA

TC 3 Some of

data is fill

up in staff

details and

some are

empty

Empty data

is fill up

after staff

details is

inserted

As expected Pass None NA

TC 4 Insert staff

details

Staff details

is not

inserted in

database

As expected Fail Some error

in php code

Go to php

code and

correct it

Search / update / delete the staff details:-

Project Name “Online Leave Management System”

Test ID TID 06

Testing Module Search / update / delete the staff details.

Testing Method Unit Testing

Date 18th April 2015

Name of tester Kumar Anuj

Level 2 Asia Pacific Institute of Information Technology 2015

Page 39: Online Leave Management Project

CE00425-2-Web Programming Leave Management System Page 39 of 47

Description of module This module allows searching / updating /

deleting the staff details.

Pre-condition Home page

No Actual Input

Expected Result

Actual Result

Status Error Correction Measure

TC 1 Search staff details

Search successfully

As expected

Passed None NA

TC 2 Input is not given by the searcher

Please enter the staff details(id)

As expected

Passed None NA

TC 3 Search staff details with the help of id

Staff details is successfully searched

Update the staff details

Passed None NA

TC 4 Search staff details with the help of id

Staff details is not searched

Staff details is not update

Fail Unexpected error in php code

Check php code and correct the error

TC 5 Search the staff details for delete the staff

Search successfully

As excepted

Pass None NA

TC 6 Search the staff details for delete

Search successfully

Staff details is not deleted

Fail Undefined error in php code

Check php code and correct the code

Level 2 Asia Pacific Institute of Information Technology 2015

Page 40: Online Leave Management Project

CE00425-2-Web Programming Leave Management System Page 40 of 47

Unit testing for logout the staff details:-

Project Name “Online Leave Management System”

Test ID TID 07

Testing Module Logout the staff details.

Testing Method Unit Testing

Date 18th April 2015

Name of tester Kumar Anuj

Description of module This module allows searching / updating /

deleting the staff details.

Pre-condition Home page

No Actual Input

Expected Result

Actual Result

Status Error Correction Measure

TC 1 Click to logout button

Logout successfully

Open login page (as expected)

Pass None NA

TC 2 Click logout page

Logout not successfully

As expected

Fail Error in php code

Correct the php code

Level 2 Asia Pacific Institute of Information Technology 2015

Page 41: Online Leave Management Project

CE00425-2-Web Programming Leave Management System Page 41 of 47

Unit testing for program coordinator:-

Testing for view leave request or approved and rejected:-

Project Name “Online Leave Management System”

Test ID TID 08

Testing Module View the leave request and send feedback to

staff(approved / rejected-)

Testing Method Unit Testing

Date 18th April 2015

Name of tester Kumar Anuj

Description of module This module allows viewing the leave request

and after approved or rejected by the program

coordinator.

Pre-condition Home page

No Actual Input

Expected Result

Actual Result

Status Error Correction Measure

TC 1 View leave request

Successfully view leave request

As excepted

Pass None NA

TC 2 View leave request

Not successfully view the leave request

As excepted

Pass Syntax error in code (link not be connected )

Go to the program coordinator page and linked the view leave page

TC 3 View the request

Successfully view

Approved the leave by the program coordinator

Pass None NA

TC 4 View the request

Not view the request

As expected

Fail Unexpected error

Correct the error

Level 2 Asia Pacific Institute of Information Technology 2015

Page 42: Online Leave Management Project

CE00425-2-Web Programming Leave Management System Page 42 of 47

details TC 5 View the

request Successfully view

Reject the leave request by the program coordinator

Pass None NA

TC 6 View the request

Not view the leave request

As expected

Fail Undefined error

Check the php code and resolve it

Testing for view staff details:-

Project Name “Online Leave Management System”

Test ID TID 09

Testing Module Testing for view staff details

Testing Method Unit Testing

Date 18th April 2015

Name of tester Kumar Anuj

Description of module This module allows viewing the staff details by

the program coordinator.

Pre-condition Home page

No Actual Input

Expected Result

Actual Result

Status Error Correction Measure

TC 1 View the staff details

View successfully

As expected

Pass None NA

TC 2 View staff details

Not view No action is applied

Pass None Connect view staff link in program coordinator home page

Level 2 Asia Pacific Institute of Information Technology 2015

Page 43: Online Leave Management Project

CE00425-2-Web Programming Leave Management System Page 43 of 47

Testing for logout program coordinator page:-

Project Name “Online Leave Management System”

Test ID TID 10

Testing Module Logout the program coordinator page.

Testing Method Unit Testing

Date 18th April 2015

Name of tester Kumar Anuj

Description of module This section allow to logout the program

coordinator page after click on logout button.

Pre-condition Home page

No Actual Input

Expected Result

Actual Result

Status Error Correction Measure

TC 1 Click to logout button

Logout successfully

Open login page (as expected)

Pass None NA

TC 2 Click logout page

Logout not successfully

As expected

Fail Session not be close

Correct the php code and close the session

INTEGRATION TESTING:-

Level 2 Asia Pacific Institute of Information Technology 2015

Page 44: Online Leave Management Project

CE00425-2-Web Programming Leave Management System Page 44 of 47

Project Name “Online Leave Management System”

Test ID TID 01

Testing Module Logout the program coordinator page.

Testing Method Unit Testing

Date 18th April 2015

Name of tester Kumar Anuj

Description of module This section allows to logout the program

coordinator page after click on logout button.

Pre-condition Home page

No Actual Input Expected Result

Actual Result

Status

Error Correction Measure

TC 1 Login Access admin home page

As expected

Pass None NA

TC 2 Home page of admin and insert /search /delete the leave type

Successfully insert /search /delete the leave type

As expected

Pass None NA

TC 3 Insert/search/update/delete the staff

Successfully insert/search/update/ delete the staff details by the admin

As expected

Pass None NA

TC 4 Login Access the staff page

As expected

Pass None NA

TC 5 Apply leave Successfully applied the leave

As expected

Pass None NA

TC 6 Check status Access the status page and tack action by pc

As expected

Pass None NA

TC 7 Login Access the program coordinator

As expected

Pass None NA

Level 2 Asia Pacific Institute of Information Technology 2015

Page 45: Online Leave Management Project

CE00425-2-Web Programming Leave Management System Page 45 of 47

home pageTC 8 View the leave

details Access the view leave request page and sand feedback to staff member

As expected

Pass None NA

TC 9 View staff page Access the staff page and getting the details of staff

As expected

Pass None NA

Critical analysis of software against testing plan:-

The process of testing necessitates utmost and sufficient amount of time in the whole

development process. Its purpose is to recognize and determine all the errors found, and to check

whether the system developed is in accordance to the user necessities. In order to achieve these

objectives all testing have been made.

Every pace is consummated through a sequence of orderly test techniques that aid in the design

of test cases. With each testing step, the level of abstraction with which site is considered

expands. My website online leave management system was tested through the planned steps of

testing at various stages and errors were recognized and resolute to a larger extent. All the

techniques are mentioned in the above test plan.

Any system depends on testing for its failure or success to a much superior degree as regressive

and successive testing uncovers all the errors and ensures that the functionality of the system is

according to the necessities with positive stricture like system performance, graphical user

interface etc.

System testing will remain one of the best tools we have at our disposal to ensure software

dependability. Empirical studies are crucial to software testing research in order to compare and

improve software testing techniques and practices. In fact, there is no other way to assess the

Level 2 Asia Pacific Institute of Information Technology 2015

Page 46: Online Leave Management Project

CE00425-2-Web Programming Leave Management System Page 46 of 47

cost-effectiveness of testing techniques, since all of them are, of various extents, based on

heuristics and simplifying assumptions.

After critically analysing, the following errors were encountered, in the construction of the Leave

management system are as follow:

Conclusion

The learning process was very extensive. Learning a new language is always a challenge and I

savored he whole process especially because this was related to web programming.

The teacher i.e. Mr. Ravi Sachdeva was more than just a teacher for me, regular source of

encouragement, listening to my utter stupid questions and then politely answering them and

helped me along the way.

I don’t usually connect this well with people and I felt some motherly vibes from the same and

that always been a source of inspiration for me to strive harder and harder.

I am rather satisfied with what I have learned, not completely for sure as there are things in this

sector that are still untouched and I’m sure I will keep the learning light on and gather things on

my own.

Limitations Certain validation might be added to have peculiar format

Sometimes certain pages go blank and after clearing caches and all they work properly

Blank values may be encountered due to fluctuation of flow

Assumptions The user must follow the line of role command

The admin expects that the testing that has been done would be enough to patch errors

Future Enhancements To have better appearance of the website

Level 2 Asia Pacific Institute of Information Technology 2015

Page 47: Online Leave Management Project

CE00425-2-Web Programming Leave Management System Page 47 of 47

Add slider onto the admin panel so that it can be edited

Better validations might be done

Use of more classes using frameworks would be the best thing.

References:-

Bibliography: 4.bp.blogspot.com, (2015). [Online]. 2015. Available from:

http://4.bp.blogspot.com/_FyoapI2Yg4M/S_sHO_pbKFI/AAAAAAAAABA/jy_0Xxe3f

K8/s1600/sdlc_v_model.gif. [Accessed: 19 April 2015].

Bibliography: Anon (2015). [Online]. 2015. Available from: http://In-text:

(Developer.com, 2015). [Accessed: 19 April 2015]. Bibliography: W3schools.com,

(2015). PHP 5 Tutorial. [Online]. 2015. Available from:

Bibliography: Developer.com, (2015). Developer.com PHP Articles. [Online]. 2015.

Available from: http://www.developer.com/lang/php. [Accessed: 19 April 2015].

Bibliography: Developer.com, (2015). Developer.com PHP Articles. [Online]. 2015.

Available from: http://www.developer.com/lang/php. [Accessed: 19 April 2015].

Welling, L. and Thomson, L. (2008). PHP and MySQL Web development. 1st ed. Upper

Saddle River, NJ: Addison-Wesley.

Level 2 Asia Pacific Institute of Information Technology 2015