1. A Project Report on
ONLINE BUS RESERVATION SYSTEM
Submitted as partial fulfillment of the requirement
for M.Sc. IT - Semester IV
Prepared for Subject: PROJECT WORK (P401)
Prepared By
2012
PROJECT
WORK P401
Semester-IV
2016
2. Name of Student : Patel Astha J.
Enrollment No.:1416it22025
Exam No.:425
Shri Maneklal M. Patel Institute of Sciences and Research,
Department of M.Sc. (IT), Gandhinagar.
Shri Maneklal M. Patel Institute of Sciences and Research,
Department of M.Sc. (IT) Gandhinagar.
Date:
PROJECT WORK CERTIFICATE
This is to certify that the project report submitted by Astha Patel, having
enrollment no. 1416it22025 , a student of M.Sc. IT Semester- IV, has completed
3. his/her project titled Online Bus Reservation System satisfactorily during the
academic year 2015-16.
We appreciate the enthusiasm & dedication towards work submitted.
ACKNOWLEDGMENT
I am grateful to my internal guide Dinkan Patel for providing me valuable guidance for the
PROJECT WORK and other domain related information.
I would like to express my endless thanks to Mr. Sunil Panchal, for giving invaluable
advice, direction, support and transferring knowledge throughout the project work.
Also my hearty gratitude to Head of Department, Prof. (Dr.) B. R. Pandya for giving me
an opportunity for learning through the process of project work by which I can improve my
technical skills along with practical exposure and its applicability in the industry.
Internal Project Guide
Mr. /Ms. Dinkan Patel
Asst. Professor
Department of M.Sc. IT
Prof. (Dr.). B. R. Pandya
Head of Department, M.Sc. IT
4. Name of Student: Signature of Student:
Astha Patel
Enrollment No.:1416it22025
Index
Sr.no Title
1 Scope & Objective 1
2 Functional Requirement 2
3 System Architecture, Tools & Technology 3
4 System Design 5
- ER Diagram
- Data Dictionary
5. 5 Coding 14
6 Testing 17
7 Screen Layout 20
8 Bibliogrphy 38
1) Scope:
The scope of the online Bus Reservation System is : A Person should be able to
Registration and then Login into the system through the application
Change password after logging into the system and view booking
Able to choose the seats which are available
6. 2) Objective:
Bus Information, route Information
Select seats , date and departure place
Generate ticket and print ticket and cancellation ticket with Cancellation charge
3) Functional And Non -Functional Requirement:
Functional Requirement:
• A functionality to manage routs and buses by admin.
• User can easily manage their profile.
7. • A facility to cancel already booked ticket at any time via system.
• Facilitate admin to analyst the business by providing different types of
reports.
Non – Functional Requirement:
• A less time consuming process in compare to other booking process.
• Save user time and reduce the complication of payment option process.
Admin Requirement:
• Manage for Bus, Time, route
• Cancellation charge.
• Change ticket price , update route , bus
• View and manage report
• In present bus type is Seater & Sleeper
• In present there are 49 seater bus.
• Sleeper 20 seater bus.
User Requirement:
• Registration
• Login
• Search and View New added bus and route
• Book ticket
8. • Cancel ticket
• Manage his/her account
• View print ticket
• View welcome mail
4) System Architecture, Tools And Technology
• Code Building language:-
- Web Developer 2012
• Scripting Language:-
- Css3
- HTML5
- JAVA Script
• Application Browser:-
- Chrome (preferable) or any other
• Front end:-
- ASP.NET MVC
• Back end:-
- Sqlserver 2012
9. Hardware Requirement
• Server side:-
- 160 GB available hard disk space
- 2 GB RAM
- Intel Pentium 4 processer
• Client side:-
- 256 MB RAM
- Intel Pentium 4 processer
Software Requirement
• Server side-
- Operating system:-Windows 7
- Front end: - Web Developer 2012
- Back end: - SQL server 2012
- Web browser: Chrome, Mozila any preferable
10. • Client Side
- Web Browser:-Chrome, Mozila any preferable
- Operating System:-Windows 7
5) System Design:
E-R Diagram
12. 1) City:
Field Name Data Type Size Constraint
city_id Int 5 Primary Key
city_name Varchar 50 Not null
13. 2) Bus:
Field Name Data Type Size Constraint
bus_id Int 5 Primary Key
bus_name Varchar 50 Not null
Bus_type Varchar 50 Not Null
Bno Varchar 50 Not null
3) Route
14. Field Name Data Type Size Constraint
Route_id Int 5 Primary Key
Bus_id int 5 Foreign Key
Dep_time Varchar 50 Not Null
Dep_station Int 5 Foreign Key
Arr_station Int 5 Foreign Key
Fare Varchar 50 Not null
4) Registration
Field Name Data Type Size Constraint
15. Reg_id Int 5 Primary Key
Firstname Varchar 50 Not Null
Lastname Varchar 50 Not Null
Contect_no Varchach 50 Not null
Address Varchar 50 Not null
email Varchar 50 Not null
Images Varchar 50 Not null
5) Book
Field Name Data Type Size Constraint
16. Book_id Int 5 Primary Key
Route_id Int 5 Foreign Key
Reg_id Int 5 Foreign Key
Contect_no Varchach 50 Not null
Date Varchar 50 Not null
Seat Varchar 50 Not null
Total_rate Numeric 18 Not null
Status(is_deleted) smallInt - Not null
6) Cancel:
Field Name Data Type Size Constraint
Cancel_id Int 5 Primary Key
Min_hr Varchar 50 Not null
17. Max_hr Varchar 50 Not null
Charge Int 5 Not null
7) Cancel Detail:
Field Name Data Type Size Constraint
Canceldetail_id Int 5 Primary Key
Book_id Int 5 Foreign Key
18. Reg_id Int 5 Foreign Key
Total_fare Int 5 Not Null
Charge Int 5 Not Null
Ref_amount Int 5 Not Null
6) Coding:
SearBus.aspx:
using System;
19. using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using OBR.Model;
using OBR.Controller;
using System.Data;
using System.Data.SqlClient;
namespace OBR.View.User
{
public partial class Searchbus : System.Web.UI.Page
{
SqlConnection cn = new SqlConnection(@"Data
Source=(LocalDB)v11.0;AttachDbFilename=C:UsersuserDesktopOBROBROBROBRApp_
DataTravels.mdf;Integrated Security=True;MultipleActiveResultSets=True;Application
Name=EntityFramework");
RouteController rc = new RouteController();
protected void Page_Load(object sender, EventArgs e)
{
if (Session["userid"] == null)
{
Response.Redirect("Login.aspx");
}
if (!IsPostBack)
{
fordepstationb();
forarrstation();
}
}
private void forarrstation()
{
DropDownList2.DataTextField = "cname";
DropDownList2.DataValueField = "c_id";
DropDownList2.DataSource = rc.getarr();
DropDownList2.DataBind();
DropDownList2.Items.Insert(0, "---- Select Arrival ---- ");
}
private void fordepstationb()
{
22. 7) Testing:
Test Case: Registration
1. User Name
1.1. email Must be Unique
2. E-Mail
2.1. E-mail Must be in proper format like(abc@example.com)
Project : Online Bus Reservation Group No. - 15 Date :
Reviewer : Date :
Module : registration Stage :
TC
id
Requ
ireme
nts/
Scen
ario/
Use
case
ID
Pre-
condition
Test
case
Descri
ption
Steps
Test
Data
Expected
Result
Actual
Result
Smoke (Yes/No)
23. TC_1 1.1 User’s
username
is required
This
test
case for
use for
the
user’s
registra
tion
form.
1) Enter
mail in
“signup.a
spx” page.
2) Check
validation
of
username
1)
Email
=”pate
lastha2
13@g
mail.
com
IF email
is
registered
then
MSG
(“email is
not
valid”)
Else
success
Yes
2)
Userna
me
=”pate
lastha2
13”
IF
username
is
registered
then
MSG
(“email is
not
valid”)
Else
success
YES
TC_2 2.1 User’s
email is
required
Checki
ng of
E-Mail
format
for
Registr
ation.
1)Enter E-
mail in
“txtemail
”’ box
2)check
validation
of
“txtemail
”’
1)
“txte
mail”’
=
abc@e
xampl
e
MSG
(“Invalid
Email ”)
Yes
2)
“txte
mail”’
=
abc@e
MSG
(“Valid
Email”)
Yes
24. xampl
e.com
Test Case: Seat Booking
1. Select Seat
1.1. Select (If You Select 1 Seat Then Booked only 1 Seat)
Project : Online Bus
Reservation
Author: Group No. – 15 Date :
Reviewer : Date :
Module : seat Stage :
TC
id
Requir
ements
Pre-
condit
Test case Steps Test Data Expected Actual Smoke
(Yes/No
Regre
ssion
Passed / F
25. /
Scenar
io/
Use
case ID
ion Description Result Result )
(Yes /
No)
TC_1 1.1 Select
seat
And
journy
date
Th
is
tes
t
ca
se
us
e
for
the
sel
ect
pe
rti
cul
er
se
at
An
d
dat
e
selectseat
“seat”
select show
“Journy
date”
1)Seat=1,2
Date=12-4-
2016
(Departure
time:”09:00
AM)
MSG
(“You
Can not
select
more
then
select”
Yes Fail
2)
Seat=1
Date=13-4-
2016
(Departure
time:”09:45
AM)
MSG (“”) Yes Pass