SlideShare a Scribd company logo
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
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
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
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 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
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.
• 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
• 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
 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
• Client Side
- Web Browser:-Chrome, Mozila any preferable
- Operating System:-Windows 7
5) System Design:
 E-R Diagram
 Data Dictionary:
1) City:
Field Name Data Type Size Constraint
city_id Int 5 Primary Key
city_name Varchar 50 Not null
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
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
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
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
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
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;
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()
{
DropDownList1.DataTextField = "cname";
DropDownList1.DataValueField = "c_id";
DropDownList1.DataSource = rc.getdep();
DropDownList1.DataBind();
DropDownList1.Items.Insert(0, "---- Select Departure ---- ");
}
protected void Button1_Click(object sender, EventArgs e)
{
TravelsEntities2 db = new TravelsEntities2();
RouteController rc = new RouteController();
route r = new route();
if (db.routes.Any(c => c.dep_station == DropDownList1.SelectedIndex & c.arr_station ==
DropDownList2.SelectedIndex))
{
int seats = Convert.ToInt16(DropDownList3.SelectedValue);
Session["seats"] = seats.ToString();
Session["date"] = txtdate.Text;
Response.Redirect("Buslist.aspx?dep_station=" + DropDownList1.SelectedValue +
"&arr_station=" + DropDownList2.SelectedValue + "&seats=" + DropDownList3.SelectedValue);
}
else
{
Response.Write("<script>alert('Sorry!!! Route No Avilabel')</script>");
}
}
protected void txtdate_TextChanged(object sender, EventArgs e)
{
try
{
if (txtdate.Text != "")
{
DateTime dt = DateTime.Now;
DateTime dt1 = Convert.ToDateTime(txtdate.Text);
if (dt1 <= dt)
{
Label2.Text = "Date Not Valid";
Label2.Visible = true;
txtdate.Text = "";
return;
}
else
{
Label2.Visible = false;
}
}
}
catch (Exception ex)
{
Label2.Text = ex.Message.ToString();
Label2.Visible = true;
txtdate.Text = "";
return;
}
}
}
}
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)
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
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
/
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
8) Screen Layout
Admin
Login:
Default:
Add City:
Add Route:
View Register User
View Booking
View Cancel Booking
Send Mail
Online Bus Reservation
User
Online Bus Reservation
Online Bus Reservation
Online Bus Reservation
Online Bus Reservation
Online Bus Reservation
Online Bus Reservation
Online Bus Reservation
Online Bus Reservation
Online Bus Reservation
Online Bus Reservation
9) Bibliogrphy
 www.Google.com
 www.redbus.in
 www.w3schools.com

More Related Content

PPTX
Online Bus Reservation System
PDF
Hard copy of proj doc
DOCX
Online Bus Ticket Reservation System
DOCX
Online bus ticket booking
PPTX
ONLINE BUS BOOKING SYSTEM
PDF
Online Bus ticket reservation
DOC
Airline reservation system documentation
PPTX
Bank management system
Online Bus Reservation System
Hard copy of proj doc
Online Bus Ticket Reservation System
Online bus ticket booking
ONLINE BUS BOOKING SYSTEM
Online Bus ticket reservation
Airline reservation system documentation
Bank management system

What's hot (20)

PPT
railway reservation software documentaion
PPTX
Online Bus Service
DOCX
Online Railway Reservation System
DOC
Bus Booking Management System
DOCX
Bus Ticket Management System Documentation
PDF
Railway reservation system
PPTX
Online travel booikng
PPTX
Railway Reservation system
PPTX
online bus ticket booking system
PPTX
Online Ticket Reservation System-SRS, ERD, DFD, Structured Charts
PDF
Bus Ticket Management System
PPTX
Bus Management System
PPT
Train ticket reservation
PPTX
Online Railway reservation
DOC
us reservation System Report
PPTX
online bus ticket booking system
PDF
Railway Reservation System - Software Engineering
PPTX
Railway reservation system
PDF
JUSTCABS - an Online Cab Reservation System (Final Year Project)
DOCX
Documentation of railway reservation system
railway reservation software documentaion
Online Bus Service
Online Railway Reservation System
Bus Booking Management System
Bus Ticket Management System Documentation
Railway reservation system
Online travel booikng
Railway Reservation system
online bus ticket booking system
Online Ticket Reservation System-SRS, ERD, DFD, Structured Charts
Bus Ticket Management System
Bus Management System
Train ticket reservation
Online Railway reservation
us reservation System Report
online bus ticket booking system
Railway Reservation System - Software Engineering
Railway reservation system
JUSTCABS - an Online Cab Reservation System (Final Year Project)
Documentation of railway reservation system
Ad

Viewers also liked (9)

PPTX
Online Bus Reservatiom System
DOCX
SIMPLIFIED SECURED WIRELESS RAILWAY / AIRWAY FOR RESERVATION
DOCX
Feasibility report
PPT
Feasibility Report Powerpoint
DOCX
GPS based Bus management system
DOCX
Dbms project list
DOCX
Online railway reservation system
PPTX
Online Bus Reservation System
PDF
Project planning and feasibility study
Online Bus Reservatiom System
SIMPLIFIED SECURED WIRELESS RAILWAY / AIRWAY FOR RESERVATION
Feasibility report
Feasibility Report Powerpoint
GPS based Bus management system
Dbms project list
Online railway reservation system
Online Bus Reservation System
Project planning and feasibility study
Ad

Similar to Online Bus Reservation (20)

DOCX
Online final report
DOCX
Bus transportation query report
PDF
COMPUTER SCIENCE PROJECT OF RAILWAY RESERVATION SYSTEM PYTHON PROGRAMMING.pdf
PDF
Presentation of Turbo C++ || Railway Reservation System project || B.Sc. student
PPT
Hr management
DOCX
srs for railway reservation system
DOCX
Visual c
PDF
Airline Reservation System - Software Engineering
PDF
Airlineppt 160621085220 (1)
DOCX
E-TICKETING ON RAILWAY TICKET RESERVATION
PPTX
Software
PPTX
PBL2.0.pptx
PPTX
PBL2.0.pptx
PDF
Report on online bus management
PPTX
Scope Definition of Online Ticketing System
DOC
Srs mine
PPT
Software Engineering ppt
PPTX
Scope definition of ticketing automation bangladesh
PDF
PPTX
Online Car Rental System PHP and Mysql project
Online final report
Bus transportation query report
COMPUTER SCIENCE PROJECT OF RAILWAY RESERVATION SYSTEM PYTHON PROGRAMMING.pdf
Presentation of Turbo C++ || Railway Reservation System project || B.Sc. student
Hr management
srs for railway reservation system
Visual c
Airline Reservation System - Software Engineering
Airlineppt 160621085220 (1)
E-TICKETING ON RAILWAY TICKET RESERVATION
Software
PBL2.0.pptx
PBL2.0.pptx
Report on online bus management
Scope Definition of Online Ticketing System
Srs mine
Software Engineering ppt
Scope definition of ticketing automation bangladesh
Online Car Rental System PHP and Mysql project

Recently uploaded (20)

PPTX
PPH.pptx obstetrics and gynecology in nursing
PPTX
human mycosis Human fungal infections are called human mycosis..pptx
PPTX
Introduction_to_Human_Anatomy_and_Physiology_for_B.Pharm.pptx
PDF
Insiders guide to clinical Medicine.pdf
PDF
Business Ethics Teaching Materials for college
PDF
Pre independence Education in Inndia.pdf
PPTX
Renaissance Architecture: A Journey from Faith to Humanism
PPTX
Final Presentation General Medicine 03-08-2024.pptx
PDF
STATICS OF THE RIGID BODIES Hibbelers.pdf
PPTX
Microbial diseases, their pathogenesis and prophylaxis
PDF
ANTIBIOTICS.pptx.pdf………………… xxxxxxxxxxxxx
PDF
2.FourierTransform-ShortQuestionswithAnswers.pdf
PDF
O7-L3 Supply Chain Operations - ICLT Program
PDF
FourierSeries-QuestionsWithAnswers(Part-A).pdf
PDF
102 student loan defaulters named and shamed – Is someone you know on the list?
PDF
Classroom Observation Tools for Teachers
PDF
VCE English Exam - Section C Student Revision Booklet
PDF
Saundersa Comprehensive Review for the NCLEX-RN Examination.pdf
PPTX
Introduction to Child Health Nursing – Unit I | Child Health Nursing I | B.Sc...
PDF
The Lost Whites of Pakistan by Jahanzaib Mughal.pdf
PPH.pptx obstetrics and gynecology in nursing
human mycosis Human fungal infections are called human mycosis..pptx
Introduction_to_Human_Anatomy_and_Physiology_for_B.Pharm.pptx
Insiders guide to clinical Medicine.pdf
Business Ethics Teaching Materials for college
Pre independence Education in Inndia.pdf
Renaissance Architecture: A Journey from Faith to Humanism
Final Presentation General Medicine 03-08-2024.pptx
STATICS OF THE RIGID BODIES Hibbelers.pdf
Microbial diseases, their pathogenesis and prophylaxis
ANTIBIOTICS.pptx.pdf………………… xxxxxxxxxxxxx
2.FourierTransform-ShortQuestionswithAnswers.pdf
O7-L3 Supply Chain Operations - ICLT Program
FourierSeries-QuestionsWithAnswers(Part-A).pdf
102 student loan defaulters named and shamed – Is someone you know on the list?
Classroom Observation Tools for Teachers
VCE English Exam - Section C Student Revision Booklet
Saundersa Comprehensive Review for the NCLEX-RN Examination.pdf
Introduction to Child Health Nursing – Unit I | Child Health Nursing I | B.Sc...
The Lost Whites of Pakistan by Jahanzaib Mughal.pdf

Online Bus Reservation

  • 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() {
  • 20. DropDownList1.DataTextField = "cname"; DropDownList1.DataValueField = "c_id"; DropDownList1.DataSource = rc.getdep(); DropDownList1.DataBind(); DropDownList1.Items.Insert(0, "---- Select Departure ---- "); } protected void Button1_Click(object sender, EventArgs e) { TravelsEntities2 db = new TravelsEntities2(); RouteController rc = new RouteController(); route r = new route(); if (db.routes.Any(c => c.dep_station == DropDownList1.SelectedIndex & c.arr_station == DropDownList2.SelectedIndex)) { int seats = Convert.ToInt16(DropDownList3.SelectedValue); Session["seats"] = seats.ToString(); Session["date"] = txtdate.Text; Response.Redirect("Buslist.aspx?dep_station=" + DropDownList1.SelectedValue + "&arr_station=" + DropDownList2.SelectedValue + "&seats=" + DropDownList3.SelectedValue); } else { Response.Write("<script>alert('Sorry!!! Route No Avilabel')</script>"); } } protected void txtdate_TextChanged(object sender, EventArgs e) { try { if (txtdate.Text != "") { DateTime dt = DateTime.Now; DateTime dt1 = Convert.ToDateTime(txtdate.Text); if (dt1 <= dt) { Label2.Text = "Date Not Valid"; Label2.Visible = true; txtdate.Text = "";
  • 21. return; } else { Label2.Visible = false; } } } catch (Exception ex) { Label2.Text = ex.Message.ToString(); Label2.Visible = true; txtdate.Text = ""; return; } } } }
  • 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
  • 34. User
  • 45. 9) Bibliogrphy  www.Google.com  www.redbus.in  www.w3schools.com