Upload
muhammad-usman
View
242
Download
14
Tags:
Embed Size (px)
DESCRIPTION
Interactive web based university map
Citation preview
BSCS FINAL PROJECT
Interactive Web Based UCP Map
Presented by:Group ID: F11S009
Name: Muhammad UsmanRegistration No.: L1S08BSCS0016
Name: Ahmad SharifRegistration No.: L1S08BSCS0017
Faculty of Information TechnologyUniversity of Central Punjab
Interactive Web Based UCP MapProject Advisor
Dr. Ali Afzal Malik
By
L1S08BSCS0016 Muhammad UsmanL1S08BSCS0017 Ahmad Sharif
Project submitted to
Faculty of Information Technology,
University of Central Punjab,
Lahore, Pakistan.
in partial fulfillment of the requirements for the degree of
BACHELOR OF SCIENCEIN
COMPUTER SCIENCE
Project Advisor Manager Projects
ABSTRACTGenerally speaking, it is quite difficult to explore and navigate a large building whichyou havent visited before. In such situations, one of the best approaches is toconsult a map. These location maps are commonly used for big entertainment parks,shopping malls, and university campuses. Our project - Interactive Web-Based UCPMap - is a comprehensive browser-based interactive 2D map of the University ofCentral Punjabs campus located in Lahore. It is designed to provide context-sensitiveinformation for each part of the UCP campus e.g. auditorium, caf, library, academicblock, basements, etc. Different types of users such as faculty members, students,visitors, etc. are accommodated by assigning different access rights. Theaccompanying admin panel enables access control, floor management, usermanagement, and other features designed to incorporate flexibility in theapplication.
iDEDICATIONWe dedicate our work to:Dr. Ali Afzal Malik For support he provided and steered us into completing of thisfinal year project.Our Friends For helping us in solving problems, regarding the development of theproject.
ii
PREFACE
This book contains the entire documentation of our project Interactive Web BasedUCP Map which is a two dimensional floor plan of the University of Central Punjabproviding information about the current happenings in the campus. Along with thedetails about the current functionality of the project, important source codes arealso added with related information so that it can be used to further improve the
project.
iii
TABLE OF CONTENT
Abstract .......................................................................................................................iDedication ...................................................................................................................iPreface........................................................................................................................ii
Chapter 1: Introduction ..............................................................................................2Product .......................................................................................................................2Scope..........................................................................................................................2Business Goals ...........................................................................................................2Document Conventions..............................................................................................2References..................................................................................................................2
Chapter 2 : Overall Description .................................................................................4Product Features.........................................................................................................4User Classes and Characteristics ...............................................................................4Operating Environment..............................................................................................4Design and Implementation Constraints ....................................................................5Assumptions and Dependencies ................................................................................5Functional Requirements/System Features:...............................................................5
Chapter 3 : Functional Requirements........................................................................8Floor Map...................................................................................................................8Sign in ........................................................................................................................8Change Password .......................................................................................................9UCP Auditorium Status .............................................................................................9Meeting Room Status...............................................................................................10Class Room Status ...................................................................................................10Reset Password ........................................................................................................11Add new user ...........................................................................................................11Delete user ...............................................................................................................12Library Status...........................................................................................................13Check Faculty member office location ....................................................................13View parking Status.................................................................................................14Logout ......................................................................................................................14Sign up .....................................................................................................................15
Chapter 4 : Nonfunctional Requirements................................................................17Performance Requirements......................................................................................17Safety Requirements ................................................................................................17Security Requirements .............................................................................................17
Chapter 5 ....................................................................................................................18Use Case Diagram: ..................................................................................................19Entity-relationship Diagram: ...................................................................................20Class Diagram..........................................................................................................21
Chapter 6 ....................................................................................................................22Sequence Diagrams:.................................................................................................23Component Diagram:...............................................................................................28
Chapter 7 : Test Cases...............................................................................................291.1 Floor Map (Ground Floor) ............................................................................301.2 Floor Map (1st Floor) ....................................................................................301.3 Floor Map (2nd Floor)...................................................................................311.4 Floor Map (3rd Floor) ...................................................................................311.5 Floor Map (4th Floor) ...................................................................................32
iv
1.6 Floor Map (Basement1) ................................................................................321.7 Floor Map (Basement 2) ...............................................................................331.8 Floor Map (UCP Auditorium).......................................................................331.9 Login .............................................................................................................341.10 Login Alternative.......................................................................................341.11 Delete User ................................................................................................351.12 Delete User Alternative .............................................................................351.13 Cafeteria Information Input .......................................................................361.14 Change password.......................................................................................361.15 Change password Alternative....................................................................371.16 UCP Auditorium Status .............................................................................371.17 Meeting Room Status ................................................................................381.18 Class Room Status .....................................................................................381.19 Add class room data ..................................................................................391.20 Add class rooms.........................................................................................391.21 Add User....................................................................................................401.22 Add User Alternative.................................................................................401.23 Library Status ............................................................................................411.24 Faculty Member availability......................................................................411.25 Parking Status (Basement1).......................................................................421.26 Parking Status (Basement 2)......................................................................42
Chapter 8 : Screenshots.............................................................................................43Signup Page .............................................................................................................44Sign in Page .............................................................................................................44Ground Floor............................................................................................................45First Floor.................................................................................................................45Second Floor ............................................................................................................46Third Floor ...............................................................................................................46Fourth Floor .............................................................................................................47Auditorium Info .......................................................................................................47Faculty Offices Info .................................................................................................48Caf Info ..................................................................................................................48Admin Panel.............................................................................................................49Add Class Room Data..............................................................................................49View Class rooms Data............................................................................................50Home........................................................................................................................50
Chapter 9 : Important Piece of Code .......................................................................52Chapter 10 : Summary ..............................................................................................60
Interactive Web Based UCP Map
1
Chapter 1
Interactive Web Based UCP Map
2
IntroductionProductInteractive Web-Based UCP Map works on the basic idea, inspired from Google mapsand a sophisticated transformation of Google map view by University of SouthernCalifornia maps (USC Maps). This map provides context-sensitive information foreach part of the building represented by graphical icons. Due to which, onlyauthorized people, like faculty members, administration and management staff areable to get up-to-date information of each and every current happening on thecampus. Students and visitors have limited information access. Back-end data andinformation can be taken from UCP portal i.e. universitys complete academic timetable etc if it is connected. The whole data and information is being managed by anadmin panel with complete access to add any type of information, through variousinput forms, to be shown on the front end of the maps.
ScopeGuide visitors where to get required information and assist faculty to get informedabout current updated info of all the happenings in the campus.
Business GoalsThe goal is to facilitate all kind of users, the general and most basic objectives are:
Deans will know which faculty member is available for a quick meeting. PAs will know whether there is a meeting, in the meeting room or not. Faculty members would know the current events happening in UCP
Auditorium. Students would know whether the library is open or not. Visitors will know where the admissions office is located and where to get
required information.
Document ConventionsVisitor is the unregistered person while Registered User is the registered entity.
ReferencesGoogle Maps http://www.maps.google.comUniversity of Southern California Maps, http://web-app.usc.edu/maps/
Interactive Web Based UCP Map
3
Chapter 2
Interactive Web Based UCP Map
4
Overall DescriptionProduct FeaturesThis map allows the users to view the detailed floor plans of each floor andbasement of UCPs campus from any web-enabled terminal. It provides context-sensitive information for each part of the building represented by graphical icons.Clicking on the cafeteria displays the menu. Clicking on classrooms displays thedetails of the class being conducted (course schedule information from the UCPOnline portal can be used for this). Clicking on a faculty offices displays a list offaculty members present there. Clicking on the library displays library timings.Clicking on the meeting room displays the booking status of the meeting room.Clicking on UCP auditorium shows what event is currently happening there. All of theabove data managements is handled by admin panel of the portal.
User Classes and CharacteristicsUsers are categorized into following classes; Visitor, Student, Staff, Faculty,Administrator, Dean
Visitor: Can only just view the complete floor plan.
Student: Can view the complete floor plan with limited visible options like accesslibrary resources etc.
Staff: Can view complete floor plan with extra visible options available like; can viewevent or meeting by clicking on those areas.
Faculty: Can view complete floor plan with complete visible options available.
Administrator: Can have complete backend access.
Dean: Can view complete floor plan with extra visible options available like; can viewfaculty staff availability and events or meetings by clicking on those areas.
Operating EnvironmentWindows XP or Higher with any latest version, of any web browser, with flashinstalled.
Interactive Web Based UCP Map
5
Design and Implementation ConstraintsEach user, other than visitor, must keep his/her password confidential. Moreover,the user must have individual ID for creating an account in the system.
Only Administrators can control user addition or deletion in the system.
Assumptions and DependenciesThere are some of the assumption we take in the project which are following
1. User means registered user, having a complete profile on website database.2. Visitors does not means user. They have no account on website.
Functional Requirements/System Features:The system features or the functional requirements are as follows:
Visitor
View floor plan
Student
View floor planLoginView Library StatusCafeteria MenuChange passwordView UCP Auditorium StatusParking StatusLogout
Staff
View floor planLoginView Class Room StatusMeeting Room StatusChange passwordFaculty member Availability
Interactive Web Based UCP Map
6
Cafeteria MenuView UCP Auditorium StatusParking StatusLogout
Faculty
View floor planLoginView Class Room StatusView Library StatusChange passwordFaculty member AvailabilityCafeteria MenuView UCP Auditorium StatusParking StatusLogout
Administrator
Add floor dataLoginChange passwordReset passwordsAdd new userDelete userLogout
Dean
View floor planLoginChange passwordView Library StatusView Class Room StatusView Meeting Room StatusView UCP Auditorium StatusFaculty member AvailabilityCafeteria MenuLogout
Interactive Web Based UCP Map
7
Chapter 3
Interactive Web Based UCP Map
8
Functional RequirementsFloor MapIdentifier UC-1Purpose Anyone can view floor plan.Priority HighPre-conditions No pre-conditionPost-conditions No post-condition
Typical Course of ActionS# Actor Action System Response1 Anyone clicks on floor number
2 Navigate to desired floorsplanAlternate Course of Action
S# Actor Action System Response12
Table 1: UC-1
Sign inIdentifier UC-2Purpose Anyone can view floor plan.Priority HighPre-conditions Must have username and passwordPost-conditions Username and password will be verified
Typical Course of ActionS# Actor Action System Response1 Clicks on the sign in button
Navigate to sign in page2 Enter the email and password
Verify email and password,navigate to home page
Alternate Course of ActionS# Actor Action System Response1
Table 2: UC-2
Interactive Web Based UCP Map
9
Change PasswordIdentifier UC-3Purpose Change access passwordPriority MediumPre-conditions Must have username and passwordPost-conditions Username and password must be verified
Typical Course of ActionS# Actor Action System Response
1 User clicks on the changepassword hyperlink
2 Navigate to change passwordwindow3 Enter old password
Verify old password4 Enter new password twice
Match and update passwordAlternate Course of Action
S# Actor Action System Response
1 User clicks on the changepassword hyperlinkNavigate to change passwordwindow
2 Enter invalid old passwordCheck password, if invalidEnter old password againVerified
3 Enter new password twiceMatch both password fieldsMatched, update newpassword
Table 3: UC-3
UCP Auditorium StatusIdentifier UC-4
Purpose To know about the current event happening inUCP AuditoriumPriority MediumPre-conditions Must have username and passwordPost- Username and password must be verified
Interactive Web Based UCP Map
10
conditionsTypical Course of Action
S# Actor Action System Response
1 Dean/Faculty member clicks onUCP AuditoriumOpen pop-up window showingthe current event happeningthere.
Alternate Course of ActionS# Actor Action System Response
1 Registered user clicks on UCPAuditoriumNo pop-up window/ Restricted
Table 4: UC-4
Meeting Room StatusIdentifier UC-5
Purpose To know about the current event happening inMeeting RoomPriority MediumPre-conditions Must have username and passwordPost-conditions Username and password must be verified
Typical Course of ActionS# Actor Action System Response1 Dean/Faculty member/Staffclicks on Meeting Room
Open pop-up window showingthe current meetinghappening there.
Alternate Course of ActionS# Actor Action System Response
Table 5: UC-5
Class Room StatusIdentifier UC-6Purpose To know about class statusPriority MediumPre-conditions Must have username and passwordPost-conditions Username and password must be verified
Interactive Web Based UCP Map
11
Typical Course of ActionS# Actor Action System Response1 Dean clicks on UCP Auditorium
Open pop-up window showingthe class status
Alternate Course of ActionS# Actor Action System Response
Table 6: UC-6
Reset PasswordIdentifier UC-7Purpose Provide new password, If old password is lostPriority MediumPre-conditions Must have username and passwordPost-conditions Username and password must be verified
Typical Course of ActionS# Actor Action System Response1 Administrator clicks on thereset password button
Navigate to reset passwordwindow
2 Enter verified username andnew passwordUpdate password
Alternate Course of ActionS# Actor Action System Response1
Table 7: UC-7
Add new userIdentifier UC-8Purpose Add new userPriority MediumPre-conditions Must have username and password
Interactive Web Based UCP Map
12
Post-conditions Username and password must be verified
Typical Course of ActionS# Actor Action System Response1 Administrator clicks on the addnew user button
Navigate to add user page
2 Assign username andpasswordUpdate database
Alternate Course of ActionS# Actor Action System Response1
Table 8: UC-8
Delete userIdentifier UC-9Purpose Delete userPriority MediumPre-conditions Must have username and passwordPost-conditions Username and password must be verified
Typical Course of ActionS# Actor Action System Response
1 Administrator clicks on thedelete user buttonNavigate to delete user page
2 Enter username and clickdelete buttonUpdate database
Alternate Course of ActionS# Actor Action System Response1
Table 9: UC-9
Interactive Web Based UCP Map
13
Library StatusIdentifier UC-10
Purpose To know about the current event happening inUCP AuditoriumPriority MediumPre-conditions Must have username and passwordPost-conditions Username and password must be verified
Typical Course of ActionS# Actor Action System Response
1 Registered User clicks onLibraryOpen pop-up window showingthe timing.
Alternate Course of ActionS# Actor Action System Response1 Visitor clicks on library
No pop-up window/ Restricted
Table 10: UC-10
Check Faculty member office locationIdentifier UC-11Purpose Quick meetingPriority MediumPre-conditions Must have username and passwordPost-conditions Username and password will be verified
Typical Course of ActionS# Actor Action System Response1 Click on the faculty offices
Show faculty members namesand offices numbers
Alternate Course of ActionS# Actor Action System Response1
Table 11: UC-11
Interactive Web Based UCP Map
14
View parking StatusIdentifier UC-12Purpose Parking space availabilityPriority MediumPre-conditions Must have username and passwordPost-conditions Username and password must be verified
Typical Course of ActionS# Actor Action System Response1 Clicks on parking
Remaining car space available
Alternate Course of ActionS# Actor Action System Response1
Table 12: UC-12
LogoutIdentifier UC-13Purpose End sessionPriority HighPre-conditions Must have username and passwordPost-conditions Username and password must be verified
Typical Course of ActionS# Actor Action System Response1 User clicks on the logouthyperlink2 Navigate to login page
Alternate Course of ActionS# Actor Action System Response1
Table 13: UC-13
Interactive Web Based UCP Map
15
3.14 Caf menu
Identifier UC-14Purpose See Current Caf MenuPriority MediumPre-conditions Must have username and passwordPost-conditions Username and password will be verified
Typical Course of ActionS# Actor Action System Response1 Click on the caf
Show MenuAlternate Course of Action
S# Actor Action System Response1
Table 14: UC-14
Sign upIdentifier UC-15Purpose Anyone can view floor plan.Priority HighPre-conditions Must have username and passwordPost-conditions Username and password will be verified
Typical Course of ActionS# Actor Action System Response1 Clicks on the sign up button
Navigate to sign up page
2 Enter the first and last name,email and passwordAdd user in the database,navigate to home page
Alternate Course of ActionS# Actor Action System Response1
Table 15: UC-15
Interactive Web Based UCP Map
16
Chapter 4
Interactive Web Based UCP Map
17
Nonfunctional RequirementsPerformance Requirements
Accessible from anywhere Can operate on your own corporate intranet orover the internet, thus providing access from anywhere in the world via yourPC web browser even from home (24/7).
Safety Requirements Application relies on certain pieces of software to run variety of operations
and have certain protocols that ensure that the software will work properlyat majority of time.
Having password security in place will prohibit unauthorized people fromgetting into the inner workings of the software.
Security Requirements Keep hackers out of the web service. Web service developed with server base languages (no one can seen what is
doing in background). Secure web service with IP blocking.
The system must provide security and control access to those functions based onpermissions.
Interactive Web Based UCP Map
18
Chapter 5
Interactive Web Based UCP Map
19
Use Case Diagram:
Interactive Web Based UCP Map
20
Entity-relationship Diagram:
Interactive Web Based UCP Map
21
Class Diagram
Interactive Web Based UCP Map
22
Chapter 6
Interactive Web Based UCP Map
23
Sequence Diagrams:
Reset Password
Login
Interactive Web Based UCP Map
24
Login
Login Failed
Interactive Web Based UCP Map
25
Add User Failed
Delete User
Interactive Web Based UCP Map
26
Change Password
Interactive Web Based UCP Map
27
Add User
Interactive Web Based UCP Map
28
Component Diagram:
Interactive Web Based UCP Map
29
Chapter 7
Interactive Web Based UCP Map
30
1.1 Floor Map (Ground Floor)Identifier TC-1Priority HighRelatedrequirement(s) UC-1
Short descriptionThis test case is written to check the functionality toview floor plan.
Pre-condition(s)Application loaded in the browser, to check properfunctionality of view floor plan option.
Input data Floor= Ground
Detailed steps 1. Select the above mentioned floor
Expected result(s) Floor plan of ground floor is shown
Post-condition(s) Application displayed the floor selected by the user
1.2 Floor Map (1st Floor)Identifier TC-2Priority HighRelatedrequirement(s) UC-1
Short descriptionThis test case is written to check the functionality toview floor plan.
Pre-condition(s)Application loaded in the browser, to check properfunctionality of view floor plan option.
Input data Floor=1
Detailed steps 1. Select the above mentioned floor
Expected result(s) Floor Plan of 1st floor is shown
Post-condition(s) Application displayed the floor selected by the user
Interactive Web Based UCP Map
31
1.3 Floor Map (2nd Floor)Identifier TC-3Priority HighRelatedrequirement(s) UC-1
Short descriptionThis test case is written to check the functionality toview floor plan.
Pre-condition(s)Application loaded in the browser, to check properfunctionality of view floor plan option.
Input data Floor=2
Detailed steps 1.Select the above mentioned floor
Expected result(s) Floor plan of 2nd floor is shown
Post-condition(s) Application displayed the floor selected by the user
1.4 Floor Map (3rd Floor)Identifier TC-4Priority HighRelatedrequirement(s) UC-1
Short descriptionThis test case is written to check the functionality toview floor plan.
Pre-condition(s)Application loaded in the browser, to check properfunctionality of view floor plan option.
Input data Floor=3
Detailed steps 1.Select the above mentioned floor
Expected result(s) Floor plan of 3rd floor is shwon
Post-condition(s) Application displayed the floor selected by the user
Interactive Web Based UCP Map
32
1.5 Floor Map (4th Floor)Identifier TC-5Priority HighRelatedrequirement(s) UC-1
Short descriptionThis test case is written to check the functionality toview floor plan.
Pre-condition(s)Application loaded in the browser, to check properfunctionality of view floor plan option.
Input data Floor-4
Detailed steps 1.Select the above mentioned floor
Expected result(s) Floor plan of 4th floor is shown
Post-condition(s) Application displayed the floor selected by the user
1.6 Floor Map (Basement1)Identifier TC-6Priority HighRelatedrequirement(s) UC-1
Short descriptionThis test case is written to check the functionality toview floor plan.
Pre-condition(s)Application loaded in the browser, to check properfunctionality of view floor plan option.
Input data Floor= Basement 1
Detailed steps 1.Select the above mentioned floor
Expected result(s) Floor plan of basement 1 is shown
Post-condition(s) Application displayed the floor selected by the user
Interactive Web Based UCP Map
33
1.7 Floor Map (Basement 2)Identifier TC-7Priority HighRelatedrequirement(s) UC-1
Short descriptionThis test case is written to check the functionality toview floor plan.
Pre-condition(s)Application loaded in the browser, to check properfunctionality of view floor plan option.
Input data Floor- Basement 2
Detailed steps 1.Select the above mentioned floor
Expected result(s) Basement 2 floor plan is shown
Post-condition(s) Application displayed the floor selected by the user
1.8 Floor Map (UCP Auditorium)Identifier TC-8Priority HighRelatedrequirement(s) UC-1
Short descriptionThis test case is written to check the functionality toview floor plan.
Pre-condition(s)Application loaded in the browser, to check properfunctionality of UCP Auditorium plan option.
Input data UCP Auditorium
Detailed steps 1.Select the above mentioned menu item
Expected result(s) UCP Auditorium plan is shown
Post-condition(s) Application displayed the floor selected by the user
Interactive Web Based UCP Map
34
1.9 Login
Identifier TC-9Priority HighRelatedrequirement(s) UC-2
Short descriptionThis test case validates that only Registered usercan login
Pre-condition(s) User must be registered
Input data Username: Usman and Password:1234
Detailed steps1. Click user button on home screen2. Enter the above mentioned input data3. Click login button.
Expected result(s) User with above credentials is logged in
Post-condition(s) 1. Ground floor is displayed
1.10 Login AlternativeIdentifier TC-10Priority HighRelatedrequirement(s) UC-2
Short descriptionThis test case validates that unregistered usercannot login
Pre-condition(s) Login Screen is displayed
Input data Username: virus and Password:1234
Detailed steps1. Enter the above mentioned input data2. Click login button.
Expected result(s) Login not successful Error message is displayed.
Post-condition(s) 1. Login Screen is displayed
Interactive Web Based UCP Map
35
1.11 Delete UserIdentifier TC-11Priority HighRelatedrequirement(s) UC-9
Short descriptionThis test case validates that Administrator canDelete User.
Pre-condition(s) Administrator is logged in.
Input data Username: Ahmad
Detailed steps 1. Click delete button.
Expected result(s) Deleted message is displayed.
Post-condition(s) Same as pre-condition
1.12 Delete User Alternative
Identifier TC-12Priority HighRelatedrequirement(s) UC-9
Short descriptionThis test case validates that Administrator cannotDelete User, which do not exist.
Pre-condition(s) Administrator is logged in.
Input data Username: Rana
Detailed steps 1. Enters username
Expected result(s) User does not exist message displayed
Post-condition(s) Same as pre-condition
Interactive Web Based UCP Map
36
1.13 Cafeteria Information Input
Identifier TC-13Priority HighRelatedrequirement(s) UC-14
Short descriptionThis test case validates that only administrator cangive input information via interface.
Pre-condition(s) Administrator must be logged in
Input data Menu=Chicken Karahi: 600rs
Detailed steps1. Select Cafeteria from left menu2. Enter above given input data3. Click on Submit
Expected result(s) Updated message is displayed.
Post-condition(s) 1. Same as pre-condition
1.14 Change passwordIdentifier TC-14Priority HighRelatedrequirement(s) UC-3
Short description This test case validates that user can changepassword.
Pre-condition(s) User is logged in.
Input data Old password=abc , New Password=123
Detailed steps1. Enter the above given input data2. Click update button.
Expected result(s) Password Updated message is displayed.
Post-condition(s) Same as pre-condition
Interactive Web Based UCP Map
37
1.15 Change password AlternativeIdentifier TC-15Priority HighRelatedrequirement(s) UC-3
Short descriptionThis test case validates that user can changepassword.
Pre-condition(s) User is logged in.
Input data Old password= sdf , New Password=123
Detailed steps1. Enter the above given input data2. Click update button.
Expected result(s) Old Password Incorrect message is displayed.
Post-condition(s) Same as pre-condition
1.16 UCP Auditorium Status
Identifier TC-16Priority MediumRelatedrequirement(s) UC-4
Short descriptionThis test case validates that only Registered usercan view the status of UCP Auditorium
Pre-condition(s) User must be logged in
Input data Selection: Ground Floor, Selection= UCP Auditorium
Detailed steps1. Navigate to Ground Floor.2. Click UCP Auditorium.
Expected result(s)Pop-Up shows the Event and its timings held inUCP Auditorium
Post-condition(s) Same as pre-condition
Interactive Web Based UCP Map
38
1.17 Meeting Room Status
Identifier TC-17Priority MediumRelatedrequirement(s) UC-5
Short descriptionThis test case validates that only Dean/Facultymember/Staff can view the status of meeting room.
Pre-condition(s) User must be logged in
Input data Selection= 1st floor Selection= meeting room
Detailed steps1. Navigate to above floor.2. Click meeting room.
Expected result(s) Pop-Up shows the Meeting Agenda, Start Time
Post-condition(s) Same as pre-condition
1.18 Class Room Status
Identifier TC-18Priority MediumRelatedrequirement(s) UC-6
Short descriptionThis test case validates that registered user canview the status of meeting room.
Pre-condition(s) User must be logged in
Input data Selection:1st floor, Selection:101
Detailed steps1. Navigate to above given floor.2. Click above given class room.
Expected result(s)Pop-Up shows Teacher name, Subject name, starttime, end time
Post-condition(s) Same as pre-condition
Interactive Web Based UCP Map
39
1.19 Add class room data
Identifier TC-19Priority HighRelatedrequirement(s) UC-7
Short descriptionThis test case validates that administrator can addclass room data.
Pre-condition(s) Administrator is logged in.
Input dataRoom id: 002, Day: Monday, Start Time:08:00:00, End Time: 09:30:00, Professor: MUsman, Subject: SE-1
Detailed steps1. Navigate to add class room data page.2. Enter above given username3. Click submit button.
Expected result(s)Class Room Data Added Successfully message isdisplayed.
Post-condition(s) Same as pre-condition
1.20 Add class rooms
Identifier TC-20Priority HighRelatedrequirement(s) UC-7
Short descriptionThis test case validates that administrator can addclass rooms
Pre-condition(s) Administrator is logged in.
Input data Floor Id: 0, Room Id:002, Coordinates:167,35,221,138
Detailed steps1. Enter above given input data2. Click submit button.
Expected result(s) Data Added Successfully message is displayed.
Post-condition(s) Same as pre-condition
Interactive Web Based UCP Map
40
1.21 Add User
Identifier TC-21Priority HighRelatedrequirement(s) UC-8
Short descriptionThis test case validates that administrator can addUser.
Pre-condition(s) Administrator is logged in.
Input data User Name:Ahmads Default Password:111
Detailed steps1. Enter above given username2. Click add button.
Expected result(s) User Added message is displayed.
Post-condition(s) Same as pre-condition
1.22 Add User AlternativeIdentifier TC-22Priority HighRelatedrequirement(s) UC-8
Short descriptionThis test case validates that administrator can addUser.
Pre-condition(s) Administrator is logged in.
Input data Username: Invisible, Default Password:111
Detailed steps 1. Enter above given username
Expected result(s) Invalid Username message is displayed.
Post-condition(s) Same as pre-condition
Interactive Web Based UCP Map
41
1.23 Library Status
Identifier TC-23Priority MediumRelatedrequirement(s) UC-10
Short description This test case validates that only Registered usercan view the status of Library
Pre-condition(s) User is be logged in
Input data Selection: 1st floor, Selection: Library
Detailed steps1. Navigate to above given floor2. Click on Library
Expected result(s) Pop-Up shows the library timing
Post-condition(s) Same as pre-condition
1.24 Faculty Member availabilityIdentifier TC-24Priority MediumRelatedrequirement(s) UC-11
Short descriptionThis test case validates that only Registered usercan view the availability of teacher.
Pre-condition(s) User is be logged in
Input data Selection: 1st floor Selection: faculty cabin area
Detailed steps1. Navigate to above given floor.2. Click faculty cabin area
Expected result(s)Pop-Up shows that teacher name, cabin numberand visiting hours.
Post-condition(s) Same as pre-condition
Interactive Web Based UCP Map
42
1.25 Parking Status (Basement1)Identifier TC-25Priority MediumRelatedrequirement(s) UC-12
Short descriptionThis test case validates that only Registered usercan view the status of parking
Pre-condition(s) User is logged in
Input data Selection= basement 1
Detailed steps 1. Click basements 1.
Expected result(s) Pop-Up shows the available parking space
Post-condition(s) Same as pre-condition
1.26 Parking Status (Basement 2)Identifier TC-26Priority MediumRelatedrequirement(s) UC-12
Short descriptionThis test case validates that only Registered usercan view the status of parking
Pre-condition(s) User is logged in
Input data Selection= basement 2
Detailed steps 1.Click basement 2.
Expected result(s) Pop-Up shows the available parking space
Post-condition(s) Same as pre-condition
Interactive Web Based UCP Map
43
Chapter 8
Interactive Web Based UCP Map
44
Signup Page
Sign in Page
Interactive Web Based UCP Map
45
Ground Floor
First Floor
Interactive Web Based UCP Map
46
Second Floor
Third Floor
Interactive Web Based UCP Map
47
Fourth Floor
Auditorium Info
Interactive Web Based UCP Map
48
Faculty Offices Info
Caf Info
Interactive Web Based UCP Map
49
Admin Panel
Add Class Room Data
Interactive Web Based UCP Map
50
View Class rooms Data
Home
Interactive Web Based UCP Map
51
Chapter 9
Interactive Web Based UCP Map
52
Important Piece of Code//adds data of all the class rooms on the map//add data of ground floorfunction addroom_ground($arrProd)
{$sql = " select RoomID from tbl_ground where
StartTime='".date('h:i:s',strtotime($arrProd[2]))."' and day='".$arrProd[6]."' andRoomID='".$arrProd[0]."'";
$result = mysql_query($sql);
if(mysql_num_rows($result)==0){$query = "INSERT INTO tbl_ground
(`RoomID` ,`StartTime`,`EndTime`,`Prof`,`Subject`,`coordinates`,`day`)
VALUES (
'".mysql_real_escape_string($arrProd[0])."',
'".mysql_real_escape_string(date('g:iA',strtotime($arrProd[1])))."',
'".mysql_real_escape_string(date('g:iA',strtotime($arrProd[2])))."',
'".mysql_real_escape_string($arrProd[3])."',
'".mysql_real_escape_string($arrProd[4])."',
'".mysql_real_escape_string($arrProd[5])."',
'".mysql_real_escape_string($arrProd[6])."'
)";if( mysql_query($query)==1)
{
$msg = "Request Completed Successfully ";
}else
$msg = "Your Request Not Completed";
Interactive Web Based UCP Map
53
}else{
$msg = "Your RequestNot Completed";
}return $msg;
}
function addroom_floor($arrProd){
$query = "INSERT INTOfloor_rooms (`floor_id` ,`room_id`,`cordinates`)
VALUES (
'".mysql_real_escape_string($arrProd[0])."',
'".mysql_real_escape_string($arrProd[1])."',
'".mysql_real_escape_string($arrProd[2])."'
)";if( mysql_query($query)==1)
{
$msg = "Request Completed Successfully ";
}else
$msg = "Your Request Not Completed";return $msg;
}
//add data of first floor
function addroom_floor1($arrProd){
$sql = " select RoomID from tbl_1floor whereStartTime>='".date('G:i:s',strtotime($arrProd[1]))."' andEndTime
Interactive Web Based UCP Map
54
if(mysql_num_rows($result)==0){$query = "INSERT INTO tbl_1floor
(`RoomID` ,`StartTime`,`EndTime`,`Prof`,`Subject`,`coordinates`,`day`)
VALUES (
'".mysql_real_escape_string($arrProd[0])."',
'".mysql_real_escape_string(date('G:iA',strtotime($arrProd[1])))."',
'".mysql_real_escape_string(date('G:iA',strtotime($arrProd[2])))."',
'".mysql_real_escape_string($arrProd[3])."',
'".mysql_real_escape_string($arrProd[4])."',
'".mysql_real_escape_string($arrProd[5])."',
'".mysql_real_escape_string($arrProd[6])."'
)";if( mysql_query($query)==1)
{
$msg = "Request Completed Successfully ";
}else{$msg = "Your Request Not Completed";}
}else{$msg = "Your Request Not Completed";
}
return $msg;}
Interactive Web Based UCP Map
55
//add data of second floorfunction addroom_floor2($arrProd)
{
$sql = " select RoomID from tbl_2floor whereStartTime>='".date('G:i:s',strtotime($arrProd[1]))."' andEndTime
Interactive Web Based UCP Map
56
}}
else{
$msg = "Your RequestNot Completed";
}return $msg;
}
//add data of third floorfunction addroom_floor3($arrProd)
{
$sql = " select RoomID from tbl_3floor whereStartTime>='".date('G:i:s',strtotime($arrProd[1]))."' andEndTime
Interactive Web Based UCP Map
57
if( mysql_query($query)==1){
$msg = "Request Completed Successfully ";
}else
$msg = "Your Request Not Completed";}else{
$msg = "YourRequest Not Completed";
}return $msg;
}//add data of second floorfunction addroom_floor4($arrProd)
{
$sql = " select RoomID from tbl_4floor whereStartTime>='".date('G:i:s',strtotime($arrProd[1]))."' andEndTime
Interactive Web Based UCP Map
58
'".mysql_real_escape_string($arrProd[4])."',
'".mysql_real_escape_string($arrProd[5])."',
'".mysql_real_escape_string($arrProd[6])."'
)";if( mysql_query($query)==1)
{
$msg = "Request Completed Successfully ";
}else
$msg = "Your Request Not Completed";}else{$msg = "Your Request Not Completed";}
return $msg;}
Interactive Web Based UCP Map
59
Chapter 10
Interactive Web Based UCP Map
60
SummaryInteractive Web-Based UCP Map is a 2d portal, designed for students, facultymembers, Deans and staff, which provide context-sensitive information for each partof the building represented by graphical icons. Due to which, only authorized peopleare able to get up-to-date information of each and every current happening on thecampus. Students and visitors have limited information access.
This web based portal is facilitated with the complete map of the entire universitycomprising of all seven floors including basements and comes with a full fledgeadmin pane, to handle all the information. This information is basicallydepartmentalized into two parts. One comprising of all the class room and universityprograms schedule which can be added for a complete term or semester all at onceand application will show appropriate information with respect to time. The otherpart is comprised of text area based input system where data is not time sensitiveand once added can be changed at random.