Bus Reservation Vishnu
Bus Reservation Vishnu
ABSTRACT 1
1
INTRODUCTION
1.1 PROJECT AIMS AND OBJECTIVES
4
1.2 BACKGROUND OF PROJECT
1.3 OPERATION ENVIRONMENT
2 SYSTEM ANALYSIS 6
4 SYSTEM IMPLEMENTATION 22
5 31
SYSTEM TESTING
5.1 UNIT TESTING
5.2 INTEGRATION TESTING
CONCLUSION
6 47
REFERENCES
7 48
1
ABSTRACT
2
ABSTRACT
3
CHAPTER-1
INTROUCTION
4
INTROUCTION
The Bus Reservation System is a digital platform designed to simplify and streamline the process of
booking bus tickets for travelers. It eliminates the need for manual reservations, providing users with a
convenient, fast, and secure way to plan their journeys. By integrating real-time bus schedules, seat
availability, and online payments, this system transforms the traditional ticket booking process into a
modern and user-friendly experience.
OBJECTIVES
User-Centric Features
● Provide an intuitive interface for users to search, book, and manage bus tickets easily. ●
● Enable real-time updates on bus schedules, seat availability, and booking status.
● Integrate notifications for trip reminders, schedule changes, and promotional offers.
5
Efficient Booking Management
● Allow users to view, modify, or cancel their bookings with clear policies.
● Provide detailed booking summaries, including boarding points, seat numbers, and
payment receipts.
Scalability and Reliability
● Design the system to accommodate high volumes of users and transactions without
downtime.
● Ensure data security and privacy through encryption and compliance with industry
standards.
The Bus Reservation System was conceived to address these challenges by leveraging
technology to simplify the booking process for users while improving operational efficiency
for bus service providers. The project aims to bridge the gap between travelers and bus
operators through a seamless, centralized platform that caters to both parties' needs.
6
CHAPTER 2
SYSTEM ANALYSIS
7
SYSTEM ANALYSIS
System analysis involves understanding the requirements, identifying the challenges, and
defining the functionalities of the Bus Reservation System. This phase ensures that the
developed system meets the needs of end-users and administrators effectively.
8
• FRONT END : HTML, CSS,PHP
• BACK END : MYSQL
• OPERATING SYSTEM : WINDOW 10, MACOS, LINUX
9
● Provide a dashboard for users to:
o View current and past bookings.
o Cancel reservations based on operator policies.
o Request refunds where applicable.
o Refund status.
3.2 Search and Filtering:
● Allow users and admins to filter and sort data (e.g., by date, route, operator, or fare).
10
3.3 Reporting and Analytics:
● Generate reports for operators and admins, including:
Booking
trends. o
Reve
nue details. o
Occu
pancy rates.
3.4 Support:
● Provide a contact form or chatbot for users to raise issues or queries.
● Include FAQs for common user questions.
● Web Interface: A responsive, user-friendly design that works across all devices (desktop,
tablet, and mobile) with intuitive navigation.
● Mobile Interface: A seamless mobile application (for iOS and Android) optimized for user-
friendly banking experiences, including easy access.
11
2.2.3 Performance Metrics
1. Response Time:
o Average response time for user actions, such as searching for
buses or booking tickets, must be under 2-3 seconds.
o Payment processing should complete within 5-10 seconds,
depending on the payment gateway.
2. Throughput:
o The system should handle up to 1,000 concurrent users for
small-scale deployment and scale to 10,000+ concurrent
users for larger implementations.
3. Downtime:
o Target system uptime is 99.9%, with minimal downtime for
maintenance. 4. Database Queries:
o Optimize database queries to fetch results in milliseconds,
ensuring quick data retrieval for bus schedules and seat
availability.
12
● Implement database sharding for scalability in high-traffic
scenarios.
● frequently accessed data, reducing database load.
2.3 Network Speed
● Host the system on high-speed, low-latency servers.
● Use CDNs (Content Delivery Networks) to speed up static content
delivery for users across different regions.
2.4 Application Performance
● Minimize the size of frontend assets using techniques like code
minification and image compression.
● Implement asynchronous processing for tasks like sending
notifications or generating reports.
2.5 Load Balancing
● Use load balancers to distribute traffic across multiple servers,
ensuring optimal performance during peak usage times.
2. Database Optimization:
o Use normalized schema designs for reducing redundancy.
o Optimize complex queries using joins and aggregate
functions for batch processing.
13
3. Stress and Load Testing
● Conduct stress testing to identify the maximum user load the
system can handle before performance degrades.
● Perform load testing to simulate real-world scenarios and ensure
system stability under varying traffic conditions.
FRONT END
The whole Project is divided in two parts the front end and the back end.
The front end is designed using of html , Css, php, javascript.
2.3.1 HTML
i. HTML- HTML or Hyper Text Markup Language is the main
markup language for creating web pages and other information
that can be displayed in a web browser.HTML is written in the
form of HTML elements consisting of tags enclosed in angle
brackets (like <html>), within the web page content.
ii. HTML tags most commonly come in pairs like <h1> and </h1>,
although some tags represent empty elements and so are unpaired,
14
for example <img>. The first tag in a pair is the start tag, and the
second tag is the end tag (they are also called opening tags and
closing tags).
15
2.3.2
CSS
2
2.3.3
JAVASCRIPT(JS)
side scripts to interact with the user, control the browser, communicate
asynchronously, a0nd alter the document content that is displayed. It is also
being used in server-side programming, game development and the
creation of desktop and mobile applications.
iii. JavaScript copies many names and naming conventions from Java, but the
two languages are otherwise unrelated and have very different semantics.
The key design principles within JavaScript are taken from the Self and
Scheme programming languages. It is a multi- paradigm language,
supporting object-oriented, imperative, and functional programming
styles.
3
2.3.4
PHP
ii. Embedded in HTML: PHP scripts can be written directly within HTML
pages, enabling dynamic content creation (e.g., form submissions,
databases interaction, session management).
Open Source: PHP is free to use and has a large community that actively
contributes to its development.
iii. An HTML tag is a code element that defines the structure of a web page.
It is used to mark up content on a webpage to specify its meaningand
behaviour. Basic Structure: HTML tags are usually enclosed in angle
brackets (e.g., `<p>` for a paragraph, `<h1>` for a heading).Opening and
Closing Tags: Many HTML tags come in pairs: an opening tag `<tag>` and
a closing tag `</tag>`. For example, `<div>` opens a division, and `</div>`
closes it. Purpose: Tags specify how content should be displayed (e.g., bold
text with `<b>`, links with `<a>`, images `<img>`).
4
BACKEND
MySQL is one of the most popular and widely-used open-source relational
database management systems (RDBMS). It's known for its performance,
reliability, and ease of use. Here are three key points about MySQL:
Scalability: MySQL is highly scalable and can handle large amounts of data and
high traffic loads, making it suitable for both small projects and large enterprise
applications.
Performance: MySQL is known for its fast query performance and low
overhead, thanks to features like indexing, caching, and optimization.
Reliability: It provides robust data security features and backup solutions,
making it reliable for mission-critical applications.
5
USER MODULE
USER LOGIN
HOME PAGE
● The system caters to a wide range of users, including individual passengers,
frequent commuters, and travel agencies. With its easy-to-use interface,
customers can search for routes, select their preferred bus type, book tickets, and
manage reservations effortlessly. Additionally, features like personalized user
accounts, booking history, and notifications ensure a seamless travel experience.
BOOKING DETAILS
● The Booking Details section provides users with comprehensive information about
their ticket reservations, ensuring transparency and convenience. It includes all
the essential data required for a smooth travel experience, such as bus
information, passenger details, and transaction specifics. Here's an overview of
the key elements.
1. Passenger Information
6
● ID Proof (if required): Details of government-issued ID (e.g., Aadhaar, Passport).
2. Trip Information
4. Payment Information
● Booking ID: Unique ID assigned to the reservation for tracking and support.
7
● Ticket ID: Specific identifier for the e-ticket generated after booking.
6. Additional Information
● Email/SMS Alerts: Booking details sent via email and SMS upon confirmation.
● Real-Time Updates: Notifications for schedule changes, delays, or cancellations.
● A prominent search bar is featured on the homepage, allowing users to book tickets
quickly. Users can enter their departure and destination cities, select a travel date, and
search for available buses. This simplifies the process of finding and booking trips,
saving users time.
Example:
8
CHAPTER-3
SYSTEM DESIGN
9
3.1 TABLE DESIGN
VARIOUSTABELSTOMAINTAIN
INFORMATION
⮚ Database Design
10
⮚ ADMIN DATABASE
⮚ USER DATABASE
11
⮚ BUSES DATABASE
⮚ TICKECT DETAILS
12
3.2 DATA FLOW DIAGRAMS:
A data flow diagram (DFD) is a graphical representation of the "flow" of data through an
information system, modeling its process aspects. A DFD shows what kind of information
will be input to and output from the system, where the data will come from and go to, and
where the data will be stored. The development of DFD’S is done in several levels. Each
process in lower level diagrams can be broken down into a more detailed DFD in the next
level. The Top-level diagram is often called context diagram. It consist a single process bit,
which plays vital role in studying the current system. The process in the context level
diagram is exploded into other process at the first level DFD. Figures 3.1 to 3.3 shows a
data flow diagram about the system.
13
3.3 USE CASE DIAGRAM FOR USERS AND ADMIN
14
In other words a use case describes “who” can do “what” with the system in question.
The use case technique is used to capture a system’s behavioural requirements by
detailing scenario-driven threads through the functional requirements.
15
16
CHAPTER 4
SYSTEM
IMPLEMENTATION
17
SYSTEM IMPLEMENTATION
18
4.2 SCREEN SHOTS
19
4.2.2 ADMIN HOME PAGE
20
4.2.3 ADD BUS DETAILS
21
4.2.4 USER LOGIN AND SIGNUP PAGE
22
4.2.5 BOOKING DETAILS
23
4.2.6 BOOKING RESULT
24
4.2.7 SERACH BUS
4.2.8 PROTFOLIO
25
SOURCE CODING
Index:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Transport</title>
<meta content="width=device-width, initial-scale=1.0" name="viewport">
<meta content="" name="keywords">
26
<meta content="" name="description">
</head>
<body id="body">
27
<!--==========================
Top Bar
============================-->
<section id="topbar" class="d-none d-lg-block">
<div class="container clearfix">
<div class="contact-info float-left">
<i class="fa fa-envelope-o"></i> <a
href="mailto:[email protected]">[email protected]</a>
<i class="fa fa-phone"></i> +91 8003649945
</div>
</div>
</section>
<!--==========================
Header
============================-->
<header id="header">
<div class="container">
<nav id="nav-menu-container">
<ul class="nav-menu">
<li class="menu-active"><a href="#body">Home</a></li>
<li><a href="#about">About Us</a></li>
28
<li><a href="#portfolio">Portfolio</a></li>
<li><a href="registration/admin.php">Admin</a></li>
<li><a href="registration/login.php">login</a></li>
</ul>
</nav><!-- #nav-menu-container -->
</div>
</header><!-- #header -->
<!--==========================
Intro Section
============================-->
<section id="intro">
<div class="intro-content">
<h2>Making <span>your Ride</span><br>happen!</h2>
<div>
<a href="profile.php" class="btn-get-started scrollto">Ticket Book</a> </div>
</div>
29
<div class="item" style="background-image: url('img/bus7.jpg');"></div>
<div class="item" style="background-image: url('img/intro-carousel/5.jpg');"></div>
</div>
<main id="main">
<section id="portfolio" class="wow fadeInUp">
<div class="container">
<div class="section-header">
<h2>Our Portfolio</h2>
<p>“The Impulse to Travel is one of the hopeful symptoms of life” ... </p> </div>
</div>
<div class="container-fluid">
<div class="row no-gutters">
<div class="col-lg-3 col-md-4">
<div class="portfolio-item wow fadeInUp">
<a href="img/port1.jpg" class="portfolio-popup">
<img src="img/port1.jpg" alt="" style="height:350px;">
<div class="portfolio-overlay">
<div class="portfolio-info"><h2 class="wow fadeInUp"></h2></div>
</div>
</a>
</div>
</div>
30
<div class="portfolio-item wow fadeInUp">
<a href="img/port2.jpg" class="portfolio-popup">
<img src="img/port2.jpg" alt="" style="height:350px;">
<div class="portfolio-overlay">
<div class="portfolio-info"><h2 class="wow fadeInUp"></h2></div>
</div>
</a>
</div>
</div>
31
</a>
</div>
</div>
32
<a href="img/port7.jpg" class="portfolio-popup">
<img src="img/port7.jpg" alt=""style="height:350px;">
<div class="portfolio-overlay">
<div class="portfolio-info"><h2 class="wow fadeInUp"></h2></div>
</div>
</a>
</div>
</div>
</div>
</div>
</section><!-- #portfolio -->
<section id="Partners" class="wow fadeInUp">
<div class="container">
<div class="section-header">
<h2>Partners</h2>
<p>With there Help and Corporation we make your travel full of Joy and
Memorable</p>
33
</div>
</div>
</section><
<!--==========================
About Section
============================-->
<section id="about" class="wow fadeInUp">
<div class="container">
<div class="row">
<div class="col-lg-6 about-img">
<img src="img/port3.jpg" alt="">
</div>
<script src="lib/jquery/jquery-migrate.min.js"></script>
<script src="lib/bootstrap/js/bootstrap.bundle.min.js"></script>
<script src="lib/easing/easing.min.js"></script>
<script src="lib/superfish/hoverIntent.js"></script>
<script src="lib/superfish/superfish.min.js"></script>
34
<script src="lib/wow/wow.min.js"></script>
<script src="lib/owlcarousel/owl.carousel.min.js"></script>
<script src="lib/magnific-popup/magnific-popup.min.js"></script>
<script src="lib/sticky/sticky.js"></script>
</body>
</html>
Profile:
<?php session_start();
if(!isset($_SESSION['uid'])){
header('location:registration/login.php');
}
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Transport</title>
<meta content="width=device-width, initial-scale=1.0" name="viewport">
<meta content="" name="keywords">
<meta content="" name="description">
35
<!-- Favicons -->
<link href="img/favicon.png" rel="icon">
<link href="img/apple-touch-icon.png" rel="apple-touch-icon">
</head>
<body id="body">
36
<!--==========================
Top Bar
============================-->
<section id="topbar" class="d-none d-lg-block">
<div class="container clearfix">
<div class="contact-info float-left">
<i class="fa fa-envelope-o"></i> <a
href="mailto:[email protected]">[email protected]</a>
<i class="fa fa-phone"></i> +91 8003649945
</div>
</div>
</section>
<!--==========================
Header
============================-->
<header id="header">
<div class="container">
<nav id="nav-menu-container">
<ul class="nav-menu">
37
<li class="menu-active"><a href="#body">Home</a></li>
<li><a href="#portfolio">Portfolio</a></li>
<li><a href="ticket.php">your tickets</a></li>
<!-- <li><a href="#"><?php echo $_SESSION['uname'];?></a></li> -->
<li><a href="registration/logout.php">logout</a></li>
</ul>
</nav><!-- #nav-menu-container -->
</div>
</header><!-- #header -->
<!--==========================
Intro Section
============================-->
<section id="intro">
<div class="intro-content">
<h2>Making <span>your Ride</span><br>happen!</h2>
<div>
<a href="registration/bussearch.php" class="btn-get-started scrollto">Ticket Book</a>
</div>
</div>
38
<div class="item" style="background-image: url('img/bus6.jpg');"></div>
<div class="item" style="background-image: url('img/bus7.jpg');"></div>
<div class="item" style="background-image: url('img/intro-carousel/5.jpg');"></div>
</div>
<main id="main">
<section id="portfolio" class="wow fadeInUp">
<div class="container">
<div class="section-header">
<h2>Our Portfolio</h2>
<p>“The Impulse to Travel is one of the hopeful symptoms of life” ... </p> </div>
</div>
<div class="container-fluid">
<div class="row no-gutters">
39
<div class="col-lg-3 col-md-4">
<div class="portfolio-item wow fadeInUp">
<a href="img/port2.jpg" class="portfolio-popup">
<img src="img/port2.jpg" alt="" style="height:350px;">
<div class="portfolio-overlay">
<div class="portfolio-info"><h2 class="wow fadeInUp"></h2></div>
</div>
</a>
</div>
</div>
40
<div class="portfolio-info"><h2 class="wow fadeInUp"></h2></div>
</div>
</a>
</div>
</div>
41
<div class="col-lg-3 col-md-4">
<div class="portfolio-item wow fadeInUp">
<a href="img/port7.jpg" class="portfolio-popup">
<img src="img/port7.jpg" alt=""style="height:350px;">
<div class="portfolio-overlay">
<div class="portfolio-info"><h2 class="wow fadeInUp"></h2></div>
</div>
</a>
</div>
</div>
</div>
</div>
</section><!-- #portfolio -->
<section id="Partners" class="wow fadeInUp">
<div class="container">
42
<div class="section-header">
<h2>Partners</h2>
<p>With there Help and Corporation we make your travel full of Joy and
Memorable</p>
</div>
</div>
</section><
<!--==========================
About Section
============================-->
<section id="about" class="wow fadeInUp">
<div class="container">
<div class="row">
<div class="col-lg-6 about-img">
<img src="img/port3.jpg" alt="">
</div>
43
</div>
</div>
</section><!-- #about -->
</main>
<!--==========================
Footer
============================-->
<footer id="footer">
<div class="container">
<div class="copyright">
© Copyright <strong>Traveler</strong>. All Rights Reserved
</div>
<div class="credits">
44
<script src="lib/easing/easing.min.js"></script>
<script src="lib/superfish/hoverIntent.js"></script>
<script src="lib/superfish/superfish.min.js"></script>
<script src="lib/wow/wow.min.js"></script>
<script src="lib/owlcarousel/owl.carousel.min.js"></script>
<script src="lib/magnific-popup/magnific-popup.min.js"></script>
<script src="lib/sticky/sticky.js"></script>
</body>
</html>
Ticket:
<?php session_start();
if(!isset($_SESSION['uid'])){
header('location:registration/login.php');
}
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Transport</title>
45
<meta content="width=device-width, initial-scale=1.0" name="viewport">
<meta content="" name="keywords">
<meta content="" name="description">
46
</head>
<body id="body">
<div class="container">
<div id="results"></div>
<!-- - <div class='card'>
<div class='card-header bg-info'>
<h3 class='text-center'>Ticket Detail</h3>
</div>
<div class='card-body bg-dark'>
<div class='card bg-dark '>
<h2 class='text-center text-white'>Passenger Detail</h2><hr>
<div class='row'>
<div class='col-md-6'>
<h4 class=' text-white'>Passenger Name :</h4>
<h4 class='text-white'>Adhar Card No :</h4>
<h4 class='text-white'>Age :</h4>
<h4 class='text-white'>Email :</h4>
</div>
<div class='col-md-6'>
<h4 class=' text-white'>Passenger Name :</h4>
<h4 class='text-white'>Adhar Card No :</h4>
<h4 class='text-white'>Age :</h4>
<h4 class='text-white'>Email :</h4>
</div>
</div>
</div>
47
<div class='card bg-dark '>
<h2 class='text-center text-white'>Bus Detail</h2><hr>
<div class='row'>
<div class='col-md-6'>
<h4 class=' text-white'>Bus Name :</h4>
<h4 class='text-white'>Bus No :</h4>
<h4 class='text-white'>Time :</h4>
<h4 class='text-white'>From :</h4>
<h4 class='text-white'>To :</h4>
</div>
<div class='col-md-6'>
<h4 class=' text-white'>Passenger Name :</h4>
<h4 class='text-white'>Adhar Card No :</h4>
<h4 class='text-white'>Age :</h4>
<h4 class='text-white'>Email :</h4>
<h4 class='text-white'>Email :</h4>
</div>
</div>
</div>
<div class='card bg-dark '>
<h2 class='text-center text-white'>Ticket Detail</h2><hr>
<div class='row'>
<div class='col-md-6'>
<h4 class=' text-white'>Number Of Seat :</h4>
<h4 class='text-white'>Seat No :</h4>
<h4 class='text-white'>Status :</h4>
<h4 class='text-white'>Fare :</h4>
<h4 class='text-white'>Journey Date :</h4>
48
<h4 class='text-white'>Booking Date :</h4>
</div>
<div class='col-md-6'>
<h4 class=' text-white'>Passenger Name :</h4>
<h4 class='text-white'>Adhar Card No :</h4>
<h4 class='text-white'>Age :</h4>
<h4 class='text-white'>Email :</h4>
<h4 class='text-white'>Email :</h4>
<h4 class='text-white'>Email :</h4>
</div>
</div>
</div>
</div>
<div class='card-footer bg-info'>
<a href='profile.php' class='btn btn-outline-danger'>Home</a>
</div>
</div> >
</div>
<footer id="footer">
<div class="container">
<div class="copyright">
© Copyright <strong>Traveler</strong>. All Rights Reserved
</div>
<div class="credits">
49
Designed by <a href="https://bootstrapmade.com/">Bus Transport</a> </div>
</div>
</footer><!-- #footer -->
50
Admin:
<?php session_start();
if(!isset($_SESSION['aname'])){
header('location:registration/admin.php');
}
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Transport</title>
<meta content="width=device-width, initial-scale=1.0" name="viewport">
<meta content="" name="keywords">
<meta content="" name="description">
51
<!-- Libraries CSS Files -->
<link href="lib/font-awesome/css/font-awesome.min.css" rel="stylesheet">
<link href="lib/animate/animate.min.css" rel="stylesheet">
<link href="lib/ionicons/css/ionicons.min.css" rel="stylesheet">
<link href="lib/owlcarousel/assets/owl.carousel.min.css" rel="stylesheet">
<link href="lib/magnific-popup/magnific-popup.css" rel="stylesheet">
<link href="lib/ionicons/css/ionicons.min.css" rel="stylesheet">
</head>
<body id="body">
<!--==========================
Top Bar
============================-->
<section id="topbar" class="d-none d-lg-block">
<div class="container clearfix">
<div class="contact-info float-left">
<i class="fa fa-envelope-o"></i> <a
href="mailto:[email protected]">[email protected]</a>
<i class="fa fa-phone"></i> +91 8003649945
</div>
</div>
52
</section>
<!--==========================
Header
============================-->
<header id="header">
<div class="container">
<nav id="nav-menu-container">
<ul class="nav-menu">
<li class="menu-active"><a href="#body">Home</a></li>
<li><a href="booking.php">Check Booking</a></li>
<li><a href="bookingdetail.php">Journey Date</a></li>
<!-- <li><a href="#"><?php echo $_SESSION['aname'];?></a></li> -->
<li><a href="registration/logout.php">logout</a></li>
</ul>
</nav><!-- #nav-menu-container -->
</div>
</header><!-- #header -->
<!--==========================
Intro Section
============================-->
53
<section id="intro">
<div class="intro-content">
<h2>Making <span>your Ride</span><br>happen!</h2>
<div>
<a href="registration/busdetail.php" class="btn-get-started scrollto">Add Bus Details</a>
</div>
</div>
<main id="main">
<section id="portfolio" class="wow fadeInUp">
<div class="container">
<div class="section-header">
<h2>Our Portfolio</h2>
<p>“The Impulse to Travel is one of the hopeful symptoms of life” ... </p>
</div>
54
</div>
<div class="container-fluid">
<div class="row no-gutters">
55
<div class="portfolio-item wow fadeInUp">
<a href="img/port3.jpg" class="portfolio-popup">
<img src="img/port3.jpg" alt=""style="height:350px;">
<div class="portfolio-overlay">
<div class="portfolio-info"><h2 class="wow fadeInUp"></h2></div>
</div>
</a>
</div>
</div>
56
</a>
</div>
</div>
57
<a href="img/port8.jpg" class="portfolio-popup">
<img src="img/port8.jpg" alt=""style="height:350px;">
<div class="portfolio-overlay">
<div class="portfolio-info"><h2 class="wow fadeInUp"></h2></div>
</div>
</a>
</div>
</div>
</div>
</div>
</section><!-- #portfolio -->
<section id="Partners" class="wow fadeInUp">
<div class="container">
<div class="section-header">
<h2>Partners</h2>
<p>With there Help and Corporation we make your travel full of Joy and
Memorable</p>
</div>
58
</div>
</section><
<!--==========================
About Section
============================-->
<section id="about" class="wow fadeInUp">
<div class="container">
<div class="row">
<div class="col-lg-6 about-img">
<img src="img/port3.jpg" alt="">
</div>
</div>
</div>
</section><!-- #about -->
</main>
<!--==========================
Footer
============================-->
<footer id="footer">
<div class="container">
<div class="copyright">
© Copyright <strong>Traveler</strong>. All Rights Reserved
</div>
<div class="credits">
59
Designed by <a href="#">Bus Transport</a>
</div>
</div>
</footer><!-- #footer -->
</body>
</html>
60
Booking_details:
<?php session_start();
if(!isset($_SESSION['aname'])){ header('location:index.php');
}
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Transport</title>
<meta content="width=device-width, initial-scale=1.0" name="viewport">
<meta content="" name="keywords">
<meta content="" name="description">
61
<link href="lib/bootstrap/css/bootstrap.min.css" rel="stylesheet">
</head>
<body id="body">
<div id="ticketdate" class="container">
<div class="row">
<div class="col-md-3"></div>
<div class="col-md-6">
<div class="card">
<div class="card-header">
<h3 class="text-center">Enter Bus Detail</h3>
</div>
<div class="card-body bg-dark">
<form>
<div class="form-group">
62
<input type="text" class="form-input form-control" name="usn" id="bid"
placeholder="Enter Bus Id"/>
</div>
<div class="form-group">
<h4 class="form-input form-control">Date : <input type="date" class="form-
input" id="pdate"/> </h4>
</div>
</form>
</div>
<div class="card-footer bg-dark">
<div class="btn btn-danger ticketdate">Submit</div>
</div>
</div>
</div>
</div>
<div class="col-md-3"></div>
</div>
<div class="container-fluid mt-5" id="bookeddate">
<div class="card" >
<h2 class="text-center ">Passenger Details </h2>
<div class="card-header bg-info">
<div class="row">
<div class="col-md-2">
<h3 class="text-center text-white">Passenger Name</h3>
</div>
<div class="col-md-2">
<h3 class="text-center text-white">Seat No </h3>
63
</div>
<div class="col-md-2">
<h3 class="text-center text-white">Number of Seat</h3>
</div>
<div class="col-md-2">
<h3 class="text-center text-white">Fare</h3>
</div>
<div class="col-md-2">
<h3 class="text-center text-white">Status</h3>
</div>
<div class="col-md-2">
<h3 class="text-center text-white">Journey Date</h3>
</div>
</div>
</div>
<div class="card-body bg-dark">
<div id="bdresult"></div>
</div>
</div>
</div>
<footer id="footer">
<div class="container">
<div class="copyright">
© Copyright <strong>Traveler</strong>. All Rights Reserved
</div>
64
<div class="credits">
</body>
</html>
65
CHAPTER-5
SYSTEM TESTING
66
5. 1 UNIT TESTING
Unit testing for a Bus Reservation System focuses on testing individual units or
components of the system to ensure that each part functions correctly in isolation.
These tests verify that the logic behind booking tickets, viewing available buses,
and managing reservations works as expected.
Here's how you might approach unit testing for a Bus Reservation System,
including examples of test cases for different modules.
In the case of a Bus Reservation System, several key modules interact with each
other. The primary modules include:
● User Registration and Authentication
● Bus Availability
● Booking System
● Payment System
● Cancellation System
● Test Steps:
1. Register a new user and log in.
67
2. Search for available buses based on origin and destination.
3. Book a seat on a bus.
4. Make the payment successfully.
5. After a few days, attempt to cancel the booking.
● Expected Result: All steps should work seamlessly. The user should be able
to complete the entire process without any issues. Test Case 2: End-to-End
Test with Failure
● Test Name: test_end_to_end_failure
● Description: Verifies the system’s behavior when one of the steps fails (e.g.,
payment failure).
● Modules Involved: User Registration + Booking System + Payment
System + Cancellation System
● Test Steps:
68
CHAPTER-6
CONCLUSION & FUTURE
SCOPE
69
CONCLUSION & FUTURE SCOPE
70
CHAPTER-7
REFERENCE
71
REFERENCES
72