Airline Khushi 1
Airline Khushi 1
Project Report On
Submitted By
CERTIFICATE
This is to certify that the work embodies in this project entitled,
“Ailine management system”, being submitted by Khushi
Ranjan (21303310098) in partial fulfillment of the requirement for
the award of “Bachelor of of computer applications)” to
Aryabhatta Knowledge University PATNA during the
academic year 2021-24 is a record of bonafide piece of work,
carried out by him/her under our/my supervision and guidance in
the “Department of Computer applications & information
Technology”, Cimage Professional College.
Prof. Neeraj Agrawal Prof. Amit Kumar Shukla Prof. Ravi Soni
Prof. Anjesh Kumar
Director Head of Department-IT Assistant Professor-IT
Date :-
CIMAGE GROUP OF INSTITUTIONS PATNA
Bachelor of Computer Application
Session (2021-2024)
Acknowledgement
We express our deepest gratitude to our guides Prof. Ravi Soni Assistant
Professor, and Prof. Anjesh Kumar, Assistant Professor, Department of
Information Science and Computer Application, for their valuable
guidance and encouragement while doing this mini project work.
We are indebted to Prof. Amit Kumar Shukla, Head of the Department and
Prof. Neeraj Agrawal, Principal, for their advice and suggestions at various
stages of the work.
Abstract
Chapter 1 Introduction 1
Chapter 2 Literature Review 2
Chapter 3 Problem Statement 4
3.1 Problem statement 4
3.2 Objectives 5
3.4 DFD 5
3.4 ER-Digram 5
Chapter 4 System Design and Data Flow 6
4.1 System Design 6
4.2 Data Flow Diagram 6
Chapter 5 Requirement Specification 7
5.1 Hardware Requirements 7
5.2 Software Requirements 8
Chapter 6 Implementation 9
6.1 Functions 9
6.2 Sequence Diagram 10
Chapter 7 Results 11
FUTURE SCOPE 12
Table of Contents
CIMAGE GROUP OF INSTITUTIONS PATNA
Bachelor of Computer Application
Session (2021-2024)
1. INTRODUCTION
The Airline Reservations System (ARS) was one of the earliest changes to improve
efficiency. ARS eventually evolved into the Computer Reservations System (CRS), and
then into Global Distribution System (GDS). The airline industry created the first GDS in
the 1960s as a way to keep track of flight schedules, availability, and prices.
Although accused of being “dinosaurs” due to their use of legacy system technology,
GDSs were actually among the first e-commerce companies in the world facilitating B-2-
B electronic commerce as early as the mid 1970s, when SABRE (owned by American
Airline) and Apollo (United) began installing their propriety internal reservations systems
in travel agencies. Prior to this, travel agents spent an inordinate amount of time manually
entering reservations. The airlines realized that by automating the reservation process for
travel agents, they could make the travel agents more productive and essentially turn into
an extension of the airline’s sales force. It is these original, legacy GDSs that today
1. Amadeus
2. Sabre
CIMAGE GROUP OF INSTITUTIONS PATNA
Bachelor of Computer Application
Session (2021-2024)
3. Galileo
4. Worldspan
PROBLEM DEFINITION
In 21st century the world has become a global village where every thing is available
in a single click of mouse button. Aviation sector is one of fastest mode of travel available
with us, both at domestic and international level. To maintain such a large system is a hectic
The definition of our problem lies in manual system and a fully automated system.
Manual system : The system is more prone to errors and some times it encounters
Technical system : With the advent of latest technology if we do not update our
system then our business will suffer massive losses financially. The technical system (we
have proposed) contains the tools of latest trend i.e. computers printers, fax etc. The
systems with this technology are very fast, accurate, user-friendly and reliable.
1. A few factors that direct us to develop a new system are given below -:
1) Faster System
2) Accuracy
3) Reliability 4) Informative
5) Reservations.
CIMAGE GROUP OF INSTITUTIONS PATNA
Bachelor of Computer Application
Session (2021-2024)
2. OBJECTIVES
• To develop a system to management of airlines, this will perform all the functions
• To develop a system that has good management of data along with integrity and
minimizing redundancy.
We have a wide range of options of languages. From these options we can choose
appropriate platform/ tools and languages for development of the project. Some of these
are as follows:-
Relational Database: - Oracle, IBM DB2, SQL Server, MS Access and FoxPro etc.
SOFTWARE REQUIREMENTS:
HARDWARE SPECIFICATIONS
Processor : Intel Pentium or more
Requesting
Passenger
Request for
Reservation
Airline
Reservation Seat Reserved
System
Reserved
No of Seats
Check
Availability
CIMAGE GROUP OF INSTITUTIONS PATNA
Bachelor of Computer Application
Session (2021-2024)
Verification
SYSTEM Log In ENTER User Name VERIFIY Success
ADMINSTRATOR USERNAME USERNAME Airline
PASSWORD PASSWORD Reservation
Password
Verification System
Verification
Fail
EXIT FROM
SYSTEM
CIMAGE GROUP OF INSTITUTIONS PATNA
Bachelor of Computer Application
Session (2021-2024)
Request for
Reservation
Passenger
Booking
Counter
Passenger
Check
No. of Seats Availability
Reserve
Seat
Available
Seat
Database
Reject
Request
Seats
CIMAGE GROUP OF INSTITUTIONS PATNA
Bachelor of Computer Application
Session (2021-2024)
E-R Diagram
CIMAGE GROUP OF INSTITUTIONS PATNA
Bachelor of Computer Application
Session (2021-2024)
systematic manner unlike simple programs which can be developed in isolation and there
may not be any systematic approach being followed. As there is large difference between
programming and software engineering. As it provide models that lead to the production of
well documented software in a manner that is predictable. For a mature process, it should
be possible to determine in advance how much time and effort will be required to produce
the final product. To develop successful software I have to follow some models, which act
as guidelines.
The model I have used is Waterfall Model or Classic Life Cycle. In this model
first of all the existed system is observed. Then customer requirements are taken in
6. SYSTEM DESIGN
Introduction
organize and convert the data through system flowcharts, data flow diagrams, structured
English, decision tables and the like which support future development of the system.
The Data flow diagrams and various processing logic techniques show how, where,
and when data are used or changed in an information system, but these techniques do not
analogous to the architect’s blueprint as a starting point for system design. The design is a
System design is a highly creative process. This system design process is also
referred as data modeling. The most common formatted used the E-R notation explains the
characteristics and structure of data independent of how the data may be stored in computer
memories.
The process of system design can be divided into three stages. They are:
new system”. It provides the understudying and procedural details necessary for
implementing the system. The steps involved during system design were as follow: -
The current physical system was thoroughly reviewed from point of view how the
data flow, what are file contents, its volumes and frequency etc.
After this input, output specifications security & control specification were
prepared. It was also decided that how physical information will flow through the system
OUTPUT DESIGN
The format of outputs is designed in such a way that it is simple to read and interpret
In the present output we have clearly labeled title it contains date and time and all the fields
INPUT DESIGN
data being enter and the need of system user are considered with this view of mind several
SCREEN DESIGN
The screen design for inputting the inputs were also panned as the format of inputs.
CIMAGE GROUP OF INSTITUTIONS PATNA
Bachelor of Computer Application
Session (2021-2024)
7. DATABASE DESIGN
Table: login
FIELDS DATATYPE DESCRIPTION CONSTRAINT
Username varchar (50) User Name Primary Key
Password varchar (50) User Password
Table: tblCity
FIELDS DATATYPE DESCRIPTION CONSTRAINT
CityCode int (4) Store City Code Primary Key
CityName varchar (50) Store City Name
Table: tblClass
FIELDS DATATYPE DESCRIPTION CONSTRAINT
ClassCode int (4) Store Class Code Primary Key
ClassName varchar (50) Store Class Type
FixedFare int (4) Store Fixed Fare of Class
Table: tblFair
FIELDS DATATYPE DESCRIPTION CONSTRAINT
FlightCode int (4) Store Flight Code Primary Key
ClassName varchar (50) Store Class Type Name
FixedFair int (4) Store Fixed Price Per Seat
FlightName varchar (50) Store Flight Name
CityFrom varchar (50) Store Arrival City Name
CityTo varchar (50) Store Destination City Name
NormalFair int (4) Store Normal Fair
CIMAGE GROUP OF INSTITUTIONS PATNA
Bachelor of Computer Application
Session (2021-2024)
Table: tbleFlight
FIELDS DATATYPE DESCRIPTION CONSTRAINT
Flight_Code int (4) Store Flight Code Primary Key
Flight_Name varchar (50) Store Flight Name
Flight_Origin varchar (50) Store Flight Departure City
Flight_Destination varchar (50) Store Flight Destination Name
Flight_Arr_Time varchar (50) Store Flight Arrival Time
Flight_Dep_Time varchar (50) Store Flight Departure Time
No_Seats int (4) Store Number of Seats
Fare int (4) Store Fare Price
Table: tblPass
FIELDS DATATYPE DESCRIPTION CONSTRAINT
Flight_Code int (4) Store Flight Code Primary Key
Flight_Name varchar (50) Store Flight Name
Origin varchar (50) Store Flight Departure City Nam
Destination varchar (50) Store Flight Destination Name
PassengerName varchar (50) Store Passenger Name
SeatNo int (4) Store Seat No
Fare int (4) Store Faire
Date_of_Res varchar (50) Store Date of Reservation
Ticket_No varchar (50) Store Ticket No
CIMAGE GROUP OF INSTITUTIONS PATNA
Bachelor of Computer Application
Session (2021-2024)
<div>
<div class="after-nav">
<div class="fixed-text">WELCOME EASYFLY</div>
<div id="text-transition" class="transition-text"></div>
<!--span texts from js-->
</div>
<script src="js/after-nav-script.js"></script>
</div>
<main>
<div class="bg-image"></div>
</main>
<div class="partner-airline">
<h1>Partners airline</h1>
<?php
// Include the connection.php file
include('connection.php');
if (mysqli_num_rows($result) > 0) {
while ($row = mysqli_fetch_assoc($result)) {
echo '<div class="partner-airline">';
echo '<img src="' . $row['logo'] . '" alt="' .
$row['airline_name'] . '">';
echo '<p>' . $row['airline_name'] . '</p>';
echo '</div>';
CIMAGE GROUP OF INSTITUTIONS PATNA
Bachelor of Computer Application
Session (2021-2024)
}
} else {
echo "No records found";
}
<?php include('includes/footer.php')?>
<?php
try this.
if (isset($_SESSION['logged_in']) &&
header('location:logout.php');
?>
url('images/signupback.jpg');">
<div class="inner">
CIMAGE GROUP OF INSTITUTIONS PATNA
Bachelor of Computer Application
Session (2021-2024)
<div class="image-holder">
</div>
<h3>Customer Signup</h3>
<div class="form-group">
required>
required>
<span id="username_message"></span>
</div>
<div class="form-wrapper">
CIMAGE GROUP OF INSTITUTIONS PATNA
Bachelor of Computer Application
Session (2021-2024)
placeholder="Username" class="form-control"
id="username" required>
</div>
<div class="form-wrapper">
required>
</div>
<div class="form-wrapper">
</div>
<div class="form-wrapper">
required>
selected>Gender</option>
<option value="male">Male</option>
<option value="female">Female</option>
<option value="other">Other</option>
</select>
size: 17px"></i>
</div>
<div class="form-wrapper">
placeholder="Password" class="form-control"
id="password"
required>
toggle"
pointer;"> </span>
</div>
<div class="form-wrapper">
<input type="password"
name="confirm_password" placeholder="Confirm
Password" class="form-control"
id="confirm-password" required>
<span toggle="#confirm-password"
class="password-toggle"
pointer;"> </span>
</div>
<div class="password-match-container"
style="position: relative;">
id="password-match-message"
CIMAGE GROUP OF INSTITUTIONS PATNA
Bachelor of Computer Application
Session (2021-2024)
</div>
<script src="js/tooglePass.js"></script>
<script src="js/passwordMatching.js"></script>
</form>
</div>
</div>
<?php
if (isset($_POST['submit'])) {
data
$first_name = $_POST['first_name'];
$last_name = $_POST['last_name'];
CIMAGE GROUP OF INSTITUTIONS PATNA
Bachelor of Computer Application
Session (2021-2024)
$username = $_POST['username'];
$email = $_POST['email'];
$phone = $_POST['phone'];
$gender = $_POST['gender'];
$password = $_POST['password'];
$confirm_password = $_POST['confirm_password'];
if ($password != $confirm_password) {
. '";</script>';
exit();
database
'$username'";
$result = $con->query($check_query);
if ($result->num_rows > 0) {
$row = $result->fetch_assoc();
if ($row['email'] == $email) {
} else {
a different username.";
. '";</script>';
} else {
if (mysqli_query($con, $insert_query)) {
registered";
$messageText . '";</script>';
// header('location: index.php');
} else {
CIMAGE GROUP OF INSTITUTIONS PATNA
Bachelor of Computer Application
Session (2021-2024)
mysqli_error($con);
$con->close();
?>
AIRLINE LOGIN
<?php include('includes/header.php');
include('includes/showMessage.php');
?>
<?php
(isset($_SESSION['logged_in']) &&
header('location:logout.php');
?>
<?php
// session_start();
in a session variable
if (isset($_GET['option'])) {
$_SESSION['option'] = $_GET['option'];
}
CIMAGE GROUP OF INSTITUTIONS PATNA
Bachelor of Computer Application
Session (2021-2024)
// else {
// // $_SESSION['option'] = 'customer';
// header('location:index.php');
// }
// echo $_SESSION['option'];
?>
url('images/signupback.jpg');">
<div class="inner">
<div class="image-holder">
<h3>
Login
</h3>
<div class="form-wrapper">
<input type="text"
name="email_or_username" placeholder="Email
required>
</div>
<div class="form-wrapper">
<input type="password"
name="password" placeholder="Password"
class="form-control" id="password"
required>
<span toggle="#password"
class="password-toggle"
CIMAGE GROUP OF INSTITUTIONS PATNA
Bachelor of Computer Application
Session (2021-2024)
pointer;">
</span>
</div>
name="login">Login
</button>
</form>
</div>
</div>
<?php
CIMAGE GROUP OF INSTITUTIONS PATNA
Bachelor of Computer Application
Session (2021-2024)
if (isset($_POST['login'])) {
include('connection.php');
$email_or_username =
$_POST['email_or_username'];
$password = $_POST['password'];
$user_type = strtolower($_SESSION['option']);
database
$User = "{$user_type}_name";
// echo $User;
$qEmail = $con->query($isEmail);
$qUsername = $con->query($isUsername);
if ($qEmail->num_rows == 1 or $qUsername-
>num_rows == 1) {
session
session_destroy();
session_start();
variables
$_SESSION['logged_in'] = true;
$_SESSION['user_type'] =
strtolower($user_type);
// echo $_SESSION['user_type'];
if ($qEmail->num_rows == 1) {
$_SESSION['email'] =
$email_or_username;
} else {
$result = $con->query($q);
$row = $result->fetch_assoc();
$rowValue = $row['email'];
$_SESSION['email'] = $rowValue;
CIMAGE GROUP OF INSTITUTIONS PATNA
Bachelor of Computer Application
Session (2021-2024)
header("Location:
{$user_type}dashboard.php");
} else {
'$email_or_username')";
>num_rows > 0) {
} else {
register";
}
CIMAGE GROUP OF INSTITUTIONS PATNA
Bachelor of Computer Application
Session (2021-2024)
$messageText . '";</script>';
$con->close();
?>
ADMIN LOGIN
<?php
$navOptions = array(
),
);
?>
<?php
$navOptions = array(
// ),
);
?>
CIMAGE GROUP OF INSTITUTIONS PATNA
Bachelor of Computer Application
Session (2021-2024)
About Us
<div class="container">
<div class="about-us">
<h1>About Us</h1>
Travel Partner</p>
solutions.</p>
<h2>Who We Are</h2>
possible.</p>
CIMAGE GROUP OF INSTITUTIONS PATNA
Bachelor of Computer Application
Session (2021-2024)
<h2>Our Mission</h2>
<h2>Our Vision</h2>
<ul>
<li>Extensive Network</li>
<li>Competitive Pricing</li>
<li>Customer-Centric Approach</li>
<li>24/7 Support</li>
</ul>
CIMAGE GROUP OF INSTITUTIONS PATNA
Bachelor of Computer Application
Session (2021-2024)
<h2>Our Team</h2>
<h3>Get in Touch</h3>
<section id = "targeting-contact">
<address>
EasyFly Headquarters<br>
Phone: 8227030900<br>
Email: [email protected]
</address>
</section>
CIMAGE GROUP OF INSTITUTIONS PATNA
Bachelor of Computer Application
Session (2021-2024)
<div class="social-media">
<a href="#"><img
src="images/facebook.png" alt="Facebook"></a>
alt="Twitter"></a>
<a href="#"><img
src="images/instagram.png"
alt="Instagram"></a>
<a href="#"><img
src="images/linkedin.png" alt="LinkedIn"></a>
</div>
</div>
<div class="developers">
<h4>Company Owners</h4>
CIMAGE GROUP OF INSTITUTIONS PATNA
Bachelor of Computer Application
Session (2021-2024)
<a href=
"https://www.linkedin.com/in/miskat141/" target =
alt="Developer 1"></a>
<a href =
"https://www.linkedin.com/in/shakib-hossian-
</div>
</div>
</main>
CIMAGE GROUP OF INSTITUTIONS PATNA
Bachelor of Computer Application
Session (2021-2024)
Flight Booking
CIMAGE GROUP OF INSTITUTIONS PATNA
Bachelor of Computer Application
Session (2021-2024)
<?php
session_start();
require_once('includes/showMessage.php'); require
'includes/functions.php'; displaySessionMessage();
if (isset($_SESSION['user_type'])) {
include("navOptions/customer-dashboard-nav-
options.php");
} else {
include("navOptions/index-nav-options.php");
}
CIMAGE GROUP OF INSTITUTIONS PATNA
Bachelor of Computer Application
Session (2021-2024)
if (isset($_POST['source_date'])) {
unset($_SESSION['source_date']);
if (isset($_POST['source_time'])) {
unset($_SESSION['source_time']);
if (isset($_POST['dest_date'])) {
unset($_SESSION['dest_date']);
if (isset($_POST['dest_time'])) {
unset($_SESSION['dest_time']);
if (isset($_POST['dep_airport'])) {
unset($_SESSION['dep_airport']);
}
CIMAGE GROUP OF INSTITUTIONS PATNA
Bachelor of Computer Application
Session (2021-2024)
if (isset($_POST['arr_airport'])) {
unset($_SESSION['arr_airport']);
if (isset($_POST['flight_class'])) {
unset($_SESSION['flight_class']); }
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
width, initial-scale=1.0">
<link rel="stylesheet"
href="https://maxcdn.bootstrapcdn.com/bootstrap/4.5.2/
c
CIMAGE GROUP OF INSTITUTIONS PATNA
Bachelor of Computer Application
Session (2021-2024)
ss/bootstrap.min.css">
<link rel="stylesheet"
href="https://cdnjs.cloudflare.com/ajax/libs/fontaweso
me/6.2.1/css/all.min.css" />
href="css/booking-form.css" />
href="css/general.css">
</head>
<body>
<header>
</header>
<nav>
</nav>
CIMAGE GROUP OF INSTITUTIONS PATNA
Bachelor of Computer Application
Session (2021-2024)
150px;">
<div class="left-column">
<img class="booking-img"
src="images/flightbooking.jpg" alt="booking
image" width="150"
height="150">
</div>
<div class="right-column">
<h3>Flight Booking</h3>
flights.php">
<div class="form-group">
<label for="source">Departure</label>
class="form-control" required>
CIMAGE GROUP OF INSTITUTIONS PATNA
Bachelor of Computer Application
Session (2021-2024)
</div>
<div class="form-group">
<label for="dest">Arrival</label>
class="form-control" required>
</div>
<div class="form-group">
<label for="dep_airport">From</label>
control" required>
Departure Airport</option>
CIMAGE GROUP OF INSTITUTIONS PATNA
Bachelor of Computer Application
Session (2021-2024)
<?php
include('connection.php');
airport names
airport';
if ($result) {
while ($row =
mysqli_fetch_assoc($result)) {
CIMAGE GROUP OF INSTITUTIONS PATNA
Bachelor of Computer Application
Session (2021-2024)
'</option>';
} else {
?>
</select>
</div>
<div class="form-group">
<label for="arr_airport">To</label>
control" required>
CIMAGE GROUP OF INSTITUTIONS PATNA
Bachelor of Computer Application
Session (2021-2024)
Arrival Airport</option>
<?php
include('connection.php');
airport names
airport';
if ($result) {
while ($row =
mysqli_fetch_assoc($result)) {
'</option>';
} else {
?>
</select>
</div>
<div class="form-group">
<label for="flight_class">Flight
Class</label>
CIMAGE GROUP OF INSTITUTIONS PATNA
Bachelor of Computer Application
Session (2021-2024)
control" required>
Flight Class</option>
<option
value="Economy">Economy</option>
<option
value="Business">Business</option>
Class</option>
</select>
</div>
<div class="form-group">
control">
Name (Optional)</option>
<?php
include('connection.php');
airline names
airline';
if ($result) {
while ($row =
mysqli_fetch_assoc($result)) {
'</option>';
} else {
?>
</select>
</div>
</form>
<?php
if (!isset($_SESSION['user_type'])) {
if (isset($_SESSION['user_type']) &&
($_SESSION['user_type'] == 'admin' or
$_SESSION['user_type'] == 'airline')) {
a ticket</p></h6>';
?>
</div>
CIMAGE GROUP OF INSTITUTIONS PATNA
Bachelor of Computer Application
Session (2021-2024)
</div>
<footer>
<ul>
<li><a href="index.php">Home</a></li>
<li><a
href="aboutUs.php#targetingcontact">C
ontact</a></li>
<li><a
href="bookingform.php">Services</a></li
>
</ul>
<script src="https://code.jquery.com/jquery-
3.5.1.js"
integrity="sha256-
QWo7LDvxbWT2tbbQ97B53yJnYU3WhH/C8ycbRAkjP
Dc=" crossorigin="anonymous"></script>
CIMAGE GROUP OF INSTITUTIONS PATNA
Bachelor of Computer Application
Session (2021-2024)
<script
src="https://cdn.jsdelivr.net/npm/[email protected]/dist/u
md/popper.min.js"
integrity="sha384-
9/reFTGAW83EW2RDu2S0VKaIzap3H66lZH81PoYlFh
bGU+6BZp6G7niu735Sk7lN"
crossorigin="anonymous"></script>
<script
src="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/
js/bootstrap.min.js"
integrity="sha384-
B4gt1jrGC7Jh4AgTPSdUtOBvfO8shuf57BaghqFfPlYxof
vL8/KUEfYiJOMMV+rV"
crossorigin="anonymous"></script>
</footer> </body>
</html>
CIMAGE GROUP OF INSTITUTIONS PATNA
Bachelor of Computer Application
Session (2021-2024)
<?php
session_start(); if
(!isset($_SESSION['user_type'])) {
header('location: login.php');
require_once('includes/showMessage.php');
require 'includes/functions.php';
displaySessionMessage();
include("navOptions/customer-dashboard-
nav-
CIMAGE GROUP OF INSTITUTIONS PATNA
Bachelor of Computer Application
Session (2021-2024)
options.php");
$user_email = $_SESSION['email'];
'connection.php';
$result = $con->query($sql);
if ($result->num_rows > 0) {
$row = $result->fetch_assoc();
} else {
found
}
CIMAGE GROUP OF INSTITUTIONS PATNA
Bachelor of Computer Application
Session (2021-2024)
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
width, initial-scale=1.0">
<title>Managing Bookings</title>
<link rel="stylesheet"
href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.
2
/css/bootstrap.min.css">
<link rel="stylesheet"
href="https://cdnjs.cloudflare.com/ajax/libs/fontaweso
me/6.2.1/css/all.min.css" />
CIMAGE GROUP OF INSTITUTIONS PATNA
Bachelor of Computer Application
Session (2021-2024)
href="css/general.css">
</head>
<body>
<header>
</header>
<nav>
</nav>
<div class="user-info">
style="font-style: italic;">user:</em></span>
?></span>
</p>
</div>
<thead class="table-dark">
<tr>
<th>Airline</th>
CIMAGE GROUP OF INSTITUTIONS PATNA
Bachelor of Computer Application
Session (2021-2024)
<th>Departure Airport</th>
<th>Arrival Airport</th>
<th>Departure</th>
<th>Arrival</th>
<th>Class</th>
<th> Price</th>
<th>Actions</th>
</tr>
</thead>
<tbody>
<?php
include("connection.php");
if (isset($_POST["confirm_delete_booking"])) {
CIMAGE GROUP OF INSTITUTIONS PATNA
Bachelor of Computer Application
Session (2021-2024)
$deleteBookingId =
$_POST["delete_booking_id"];
WHERE id = '$deleteBookingId'";
setSessionMessage("Booking deleted
successfully");
header('location: customer-
dashboard.php');
} else {
echo "<script>showModal('errorModal',
f.dest_time, f.flight_class,
CASE
f.price
f.price
f.price
END AS price
FROM booked b
c.email
CIMAGE GROUP OF INSTITUTIONS PATNA
Bachelor of Computer Application
Session (2021-2024)
a1.airport_id
a2.airport_id
user_email
$resultBookings = $con->query($sqlBookings);
if ($resultBookings->num_rows > 0) {
>fetch_assoc()) {
echo "<tr>";
// echo "<td>" .
$rowBooking["customer_email"] . "</td>";
echo "<td>" .
$rowBooking["airline_name"] . "</td>";
. "</td>";
. "</td>";
echo "<td>" .
$rowBooking["source_date"]
. "</td>";
"</td>";
. "</td>";
"</td>";
echo "<td>";
"'
data-toggle='modal' data-
target='#deleteBookingModal'>Delete</button>";
CIMAGE GROUP OF INSTITUTIONS PATNA
Bachelor of Computer Application
Session (2021-2024)
echo "</td>";
echo "</tr>";
} else {
<br><a href =
?>
</tbody>
</table>
<input type="hidden"
name="delete_booking_id" id="delete_booking_id"
value="">
CIMAGE GROUP OF INSTITUTIONS PATNA
Bachelor of Computer Application
Session (2021-2024)
aria-
labelledby="deleteBookingModalLabel" aria-
hidden="true">
<div class="modal-dialog"
role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title"
id="deleteBookingModalLabel">Confirm Delete</h5>
<button type="button"
hidden="true">×</span>
</button>
</div>
<div class="modal-body">
CIMAGE GROUP OF INSTITUTIONS PATNA
Bachelor of Computer Application
Session (2021-2024)
booking?
</div>
<div class="modal-footer">
btn-secondary" data-dismiss="modal">Cancel</button>
btn-danger"
name="confirm_delete_booking">Delete</button>
</div>
</div>
</div>
</div>
</form>
</div>
<script src="https://code.jquery.com/jquery-
3.5.1.slim.min.js"></script>
<script
src="https://cdn.jsdelivr.net/npm/@popperjs/[email protected].
1/dist/umd/popper.min.js"></script>
<script
src="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/
js/bootstrap.min.js"></script>
<script>
function () {
$('#delete_booking_id').val(deleteBookingId);
});
</script>
CIMAGE GROUP OF INSTITUTIONS PATNA
Bachelor of Computer Application
Session (2021-2024)
<footer>
<ul>
<li><a href="index.php">Home</a></li>
<li><a
href="aboutUs.php#targetingcontact">C
ontact</a></li>
<li><a
href="bookingform.php">Services</a></li
>
</ul>
reserved</p>
</footer>
</body>
</html>
CIMAGE GROUP OF INSTITUTIONS PATNA
Bachelor of Computer Application
Session (2021-2024)
Change Password
<?php include('includes/header.php');
require_once('includes/showMessage.php');
?>
<div class="container">
<h2>Change Password</h2>
<div class="form-and-image-container">
CIMAGE GROUP OF INSTITUTIONS PATNA
Bachelor of Computer Application
Session (2021-2024)
<div class="image-container">
<img src="images/changePassword.jpg"
</div>
<form action="change-password.php"
method="POST" class="password-form">
<div class="form-group">
<label for="old_password">Old
Password:</label>
<input type="password"
name="old_password" id="old_password"
required>
</div>
<div class="form-group">
<label for="new_password">New
CIMAGE GROUP OF INSTITUTIONS PATNA
Bachelor of Computer Application
Session (2021-2024)
Password:</label>
<input type="password"
name="new_password" id="new_password"
required>
</div>
<div class="form-group">
<label
for="confirm_password">Confirm New
Password:</label>
<input type="password"
name="confirm_password"
id="confirm_password" required>
</div>
<button type="submit"
name="change_password">Change
CIMAGE GROUP OF INSTITUTIONS PATNA
Bachelor of Computer Application
Session (2021-2024)
Password</button>
</form>
</div>
</div>
<?php
if (!isset($_SESSION['logged_in'])) { //
Redirect $User who are not logged in to the
login page
header('Location: index.php');
exit();
if (isset($_POST['change_password'])) {
include('connection.php');
CIMAGE GROUP OF INSTITUTIONS PATNA
Bachelor of Computer Application
Session (2021-2024)
$old_password = $_POST['old_password'];
$new_password = $_POST['new_password'];
$confirm_password =
$_POST['confirm_password'];
$email = $_SESSION['email'];
$User = $_SESSION['user_type'];
database
email = '$email'";
$result = $con->query($query);
if ($result->num_rows == 1) {
$row = $result->fetch_assoc();
$current_password = $row['pass'];
CIMAGE GROUP OF INSTITUTIONS PATNA
Bachelor of Computer Application
Session (2021-2024)
confirmation match
'$email'";
if ($con->query($update_query) ===
TRUE) {
successfully.";
CIMAGE GROUP OF INSTITUTIONS PATNA
Bachelor of Computer Application
Session (2021-2024)
$messageText . '";</script>';
content="2;url=customer-dashboard.php">';
} else {
$messageText . '";</script>';
} else {
CIMAGE GROUP OF INSTITUTIONS PATNA
Bachelor of Computer Application
Session (2021-2024)
$messageText . '";</script>';
} else {
incorrect.";
$messageText . '";</script>';
} else {
$messageText . '";</script>';
CIMAGE GROUP OF INSTITUTIONS PATNA
Bachelor of Computer Application
Session (2021-2024)
$con->close();
?>
<?php require_once('includes/showMessage.php')
CIMAGE GROUP OF INSTITUTIONS PATNA
Bachelor of Computer Application
Session (2021-2024)
?>
<?php
session_start();
if(!isset($_SESSION['user_type'])) {
header('location: login.php');
require 'includes/functions.php';
displaySessionMessage();
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="X-UA-Compatible"
content="IE=edge" />
<meta name="viewport"
<link rel="stylesheet"
href="https://stackpath.bootstrapcdn.com/bootstra
p/4.5.2/css/bootstrap.min.css">
<link rel="stylesheet"
href="https://cdnjs.cloudflare.com/ajax/libs/fontaweso
me/6.2.1/css/all.min.css" />
</head>
<body>
CIMAGE GROUP OF INSTITUTIONS PATNA
Bachelor of Computer Application
Session (2021-2024)
<main>
<div class="mb-3">
btnsuccess" data-toggle="modal"
datatarget="#addAirlineModal">Add
Airline</button>
</div>
style="margin-bottom:0px;">
CIMAGE GROUP OF INSTITUTIONS PATNA
Bachelor of Computer Application
Session (2021-2024)
<thead class="table-dark">
<tr>
<th>Airline Name</th>
<th>Logo</th>
<th>Actions</th>
</tr>
</thead>
<tbody>
<?php
include("connection.php");
if
($_SERVER["REQUEST_METHOD"] ==
$newEmail =
$_POST["new_email"];
$newPassword =
$_POST["new_password"];
$newAirlineName =
$_POST["new_airline_name"];
$targetDir = "uploads/";
$targetFile = $targetDir .
basename($_FILES["new_logo"]["name"]);
create it
if (!file_exists($targetDir)) {
if
(move_uploaded_file($_FILES["new_logo"]["tmp_
name"], $targetFile)) {
$newLogoPath = $targetFile;
in the table
$emailCheckSql = "SELECT *
>query($emailCheckSql);
CIMAGE GROUP OF INSTITUTIONS PATNA
Bachelor of Computer Application
Session (2021-2024)
$nameCheckSql = "SELECT *
'$newAirlineName'";
$nameCheckResult = $con-
>query($nameCheckSql);
if ($emailCheckResult->num_rows
> 0) {
already exists
setSessionMessage("Airline with
} elseif ($nameCheckResult-
CIMAGE GROUP OF INSTITUTIONS PATNA
Bachelor of Computer Application
Session (2021-2024)
>num_rows > 0) {
already exists
setSessionMessage("The airline
} else {
'$newAirlineName', '$newLogoPath')";
if ($con->query($insertSql) ===
TRUE) {
setSessionMessage("Airline
added successfully");
CIMAGE GROUP OF INSTITUTIONS PATNA
Bachelor of Computer Application
Session (2021-2024)
} else {
setSessionMessage("An error
header('location:airlines.php');
} else {
setSessionMessage("Error
uploading logo");
header('location:airlines.php');
// Update Operation if
(isset($_POST["edit_airline"])) {
CIMAGE GROUP OF INSTITUTIONS PATNA
Bachelor of Computer Application
Session (2021-2024)
$editEmail = $_POST["edit_email"];
";
provided
if
(!empty($_POST["edit_password"])) {
$editPassword =
$_POST["edit_password"];
$updateValues[] =
"pass='$editPassword'";
}
CIMAGE GROUP OF INSTITUTIONS PATNA
Bachelor of Computer Application
Session (2021-2024)
provided
$editAirlineName =
$_POST["edit_airline_name"];
if
(!empty($_POST["edit_airline_name"])) {
$nameCheckSql = "SELECT *
'$editAirlineName'";
$nameCheckResult = $con-
>query($nameCheckSql);
if ($nameCheckResult->num_rows
> 0) {
already exists
CIMAGE GROUP OF INSTITUTIONS PATNA
Bachelor of Computer Application
Session (2021-2024)
setSessionMessage("The airline
header('location: airlines.php');
exit();
$updateValues[] =
"airline_name='$editAirlineName'";
uploaded
if
(!empty($_FILES["edit_logo"]["name"])) {
$targetDir = "uploads/";
CIMAGE GROUP OF INSTITUTIONS PATNA
Bachelor of Computer Application
Session (2021-2024)
$targetFile = $targetDir .
basename($_FILES["edit_logo"]["name"]);
not, create it
if (!file_exists($targetDir)) {
if
(move_uploaded_file($_FILES["edit_logo"]["tmp_
name"], $targetFile)) {
$editLogoPath = $targetFile;
$updateValues[] =
"logo='$editLogoPath'";
} else {
CIMAGE GROUP OF INSTITUTIONS PATNA
Bachelor of Computer Application
Session (2021-2024)
setSessionMessage("Error
updating logo");
exit;
SQL query
$updateValues);
email='$editEmail'";
for update
CIMAGE GROUP OF INSTITUTIONS PATNA
Bachelor of Computer Application
Session (2021-2024)
if (empty($updateValues)) {
update");
header('location: airlines.php');
exit();
if ($con->query($updateSql) ===
TRUE) {
setSessionMessage("Record
updated successfully");
header('location: airlines.php');
} else {
echo
"<script>showModal('errorModal', 'Error
header('location: airlines.php');
if ($con->connect_error) {
>connect_error);
// Delete Operation
if (isset($_GET["delete"])) {
$deleteEmail = $_GET["delete"];
if ($con->query($deleteSql) ===
TRUE) {
setSessionMessage("Airline
deleted successfully");
} else {
$con->error;
header('location: airlines.php');
}
CIMAGE GROUP OF INSTITUTIONS PATNA
Bachelor of Computer Application
Session (2021-2024)
airline";
$resultAirlines = $con-
>query($sqlAirlines);
?>
<?php
>fetch_assoc()) {
echo "<tr>";
echo "<td>" .
$rowAirline["email"] . "</td>";
echo "<td>" .
$rowAirline["pass"] . "</td>";
echo "<td>" .
CIMAGE GROUP OF INSTITUTIONS PATNA
Bachelor of Computer Application
Session (2021-2024)
$rowAirline["airline_name"] . "</td>";
height='50'></td>";
echo "<td>";
data-target='#editAirlineModal'>Edit</button>";
target='#deleteAirlineModal'>Delete</button>";
echo "</td>";
echo "</tr>";
CIMAGE GROUP OF INSTITUTIONS PATNA
Bachelor of Computer Application
Session (2021-2024)
?>
</tbody>
</table>
<?php
$con->close();
?>
id="addAirlineModal" tabindex="-1"
role="dialog"
aria-
labelledby="addAirlineModalLabel" aria-
CIMAGE GROUP OF INSTITUTIONS PATNA
Bachelor of Computer Application
Session (2021-2024)
hidden="true">
<div class="modal-dialog"
role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title"
id="addAirlineModalLabel">Add Airline</h5>
<button type="button"
label="Close">
<span aria-
hidden="true">×</span>
</button>
</div>
<div class="modal-body">
CIMAGE GROUP OF INSTITUTIONS PATNA
Bachelor of Computer Application
Session (2021-2024)
<form action="airlines.php"
method="POST" enctype="multipart/form-
data">
<div class="form-group">
<label
for="new_email">Email</label>
<input type="email"
class="form-control" id="new_email"
name="new_email"
required>
</div>
<div class="form-group">
<label
for="new_password">Password</label>
<input type="password"
CIMAGE GROUP OF INSTITUTIONS PATNA
Bachelor of Computer Application
Session (2021-2024)
class="form-control" id="new_password"
name="new_password" required>
</div>
<div class="form-group">
<label
for="new_airline_name">Airline Name</label>
<input type="text"
class="form-control" id="new_airline_name"
name="new_airline_name" required>
</div>
<div class="form-group">
<label
for="new_logo">Logo Image</label>
<input type="file"
CIMAGE GROUP OF INSTITUTIONS PATNA
Bachelor of Computer Application
Session (2021-2024)
class="form-control-file" id="new_logo"
name="new_logo"
accept="image/*"
required>
</div>
<div class="modal-footer">
<button type="button"
class="btn btn-secondary"
data-
dismiss="modal">Cancel</button>
<button type="submit"
class="btn btn-primary"
name="add_airline">Save</button>
</div>
</form>
CIMAGE GROUP OF INSTITUTIONS PATNA
Bachelor of Computer Application
Session (2021-2024)
</div>
</div>
</div>
</div>
id="editAirlineModal" tabindex="-1"
role="dialog"
aria-
labelledby="editAirlineModalLabel" aria-
hidden="true">
<div class="modal-dialog"
role="document">
<div class="modal-content">
CIMAGE GROUP OF INSTITUTIONS PATNA
Bachelor of Computer Application
Session (2021-2024)
<div class="modal-header">
<h5 class="modal-title"
id="editAirlineModalLabel">Edit Airline</h5>
<button type="button"
label="Close">
<span aria-
hidden="true">×</span>
</button>
</div>
<div class="modal-body">
<form action="airlines.php"
method="POST" enctype="multipart/form-
data">
<input type="hidden"
CIMAGE GROUP OF INSTITUTIONS PATNA
Bachelor of Computer Application
Session (2021-2024)
name="edit_email" id="edit_email_hidden">
<div class="form-group">
<label
for="edit_password">Password</label>
<input type="password"
class="form-control" id="edit_password"
name="edit_password">
</div>
<div class="form-group">
<label
for="edit_airline_name">Airline Name</label>
<input type="text"
class="form-control" id="edit_airline_name"
name="edit_airline_name">
</div>
CIMAGE GROUP OF INSTITUTIONS PATNA
Bachelor of Computer Application
Session (2021-2024)
<div class="form-group">
<label
for="edit_logo">Logo Image</label>
<input type="file"
class="form-control-file" id="edit_logo"
name="edit_logo"
accept="image/*">
</div>
<div class="modal-footer">
<button type="button"
class="btn btn-secondary"
data-
dismiss="modal">Cancel</button>
<button type="submit"
CIMAGE GROUP OF INSTITUTIONS PATNA
Bachelor of Computer Application
Session (2021-2024)
class="btn btn-primary"
name="edit_airline">Save
Changes</button>
</div>
</form>
</div>
</div>
</div>
</div>
id="deleteAirlineModal" tabindex="-1"
role="dialog"
aria-
CIMAGE GROUP OF INSTITUTIONS PATNA
Bachelor of Computer Application
Session (2021-2024)
labelledby="deleteAirlineModalLabel" aria-
hidden="true">
<div class="modal-dialog"
role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title"
id="deleteAirlineModalLabel">Confirm
Delete</h5>
<button type="button"
label="Close">
<span aria-
hidden="true">×</span>
</button>
CIMAGE GROUP OF INSTITUTIONS PATNA
Bachelor of Computer Application
Session (2021-2024)
</div>
<div class="modal-body">
Are you sure you want to
</div>
<div class="modal-footer">
<button type="button"
class="btn btn-secondary"
datadismiss="modal">Cancel</button>
<button type="button"
class="btn btn-danger"
id="confirmDelete">Delete</button>
</div>
</div>
</div>
</div>
CIMAGE GROUP OF INSTITUTIONS PATNA
Bachelor of Computer Application
Session (2021-2024)
tabindex="-1" role="dialog"
arialabelledby="successModalLabel"
ariahidden="true">
<div class="modal-dialog"
role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title"
id="successModalLabel">Success</h5>
dismiss="modal" aria-label="Close">
CIMAGE GROUP OF INSTITUTIONS PATNA
Bachelor of Computer Application
Session (2021-2024)
<span aria-
hidden="true">×</span>
</button>
</div>
<div class="modal-body"
id="successModalBody">
</div>
<div class="modal-footer">
btn-primary"
datadismiss="modal">Close</button>
</div>
</div>
</div>
CIMAGE GROUP OF INSTITUTIONS PATNA
Bachelor of Computer Application
Session (2021-2024)
</div>
// Error Modal
tabindex="-1" role="dialog"
arialabelledby="errorModalLabel"
ariahidden="true">
<div class="modal-dialog"
role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title"
id="errorModalLabel">Error</h5>
data-dismiss="modal" aria-label="Close">
<span aria-
CIMAGE GROUP OF INSTITUTIONS PATNA
Bachelor of Computer Application
Session (2021-2024)
hidden="true">×</span>
</button>
</div>
<div class="modal-body"
id="errorModalBody">
operation.
</div>
<div class="modal-footer">
btn-danger"
datadismiss="modal">Close</button>
</div>
</div>
</div>
CIMAGE GROUP OF INSTITUTIONS PATNA
Bachelor of Computer Application
Session (2021-2024)
</div>
</div> -->
<script
src="https://code.jquery.com/jquery-
3.5.1.slim.min.js"></script>
<script
src="https://cdn.jsdelivr.net/npm/[email protected].
1/dist/umd/popper.min.js"></script>
<script
src="https://stackpath.bootstrapcdn.com/bootstrap
/4.5.2/js/bootstrap.min.js"></script>
<script>
// function
showSuccessModal(message) {
//
$('#successModalBody').text(message);
//
$('#successModal').modal('show');
// }
// function
showErrorModal(message) {
//
$('#errorModalBody').text(message);
// $('#errorModal').modal('show');
// }
CIMAGE GROUP OF INSTITUTIONS PATNA
Bachelor of Computer Application
Session (2021-2024)
function setEditEmail(editEmail) {
$('#edit_email_hidden').val(editEmail);
buttons
$(document).on("click", ".edit-
record", function () {
setEditEmail(editEmail);
});
$(document).on("click", ".delete-
record", function () {
email);
});
$(document).on("click",
"#confirmDelete", function () {
window.location.href = "?delete="
+ email;
});
CIMAGE GROUP OF INSTITUTIONS PATNA
Bachelor of Computer Application
Session (2021-2024)
</script>
</body>
</html>
<?php
$navOptions = array(
),
);
?>
<?php
session_start(); if
(!isset($_SESSION['user_type'])) {
header('location: login.php');
require_once('includes/showMessage.php'); require
'includes/functions.php';
displaySessionMessage();
include("navOptions/airline-dashboard-nav-options.php");
$user_email = $_SESSION['email'];
'connection.php';
'$user_email'";
$result = $con->query($sql);
if ($result->num_rows > 0) {
$row = $result->fetch_assoc();
CIMAGE GROUP OF INSTITUTIONS PATNA
Bachelor of Computer Application
Session (2021-2024)
$customer_name = $row['airline_name'];
} else {
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
scale=1.0">
<title>Managing Bookings</title>
<link rel="stylesheet"
href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.
css">
awesome/6.2.1/css/all.min.css" />
</head>
CIMAGE GROUP OF INSTITUTIONS PATNA
Bachelor of Computer Application
Session (2021-2024)
<body>
<header>
</header>
<nav>
alt="site-logo"> </a>
</nav>
<div class="user-info">
</p>
</div>
CIMAGE GROUP OF INSTITUTIONS PATNA
Bachelor of Computer Application
Session (2021-2024)
<thead class="table-dark">
<tr>
<th>Booking ID</th> <!-- Include this line for the ID field -->
<th>Customer Email</th>
<th>Flight ID</th>
<th>Departure Airport</th>
<th>Arrival Airport</th>
<th>Departure</th>
<th>Arrival</th>
<th>Class</th>
<th>Actions</th>
</tr>
</thead>
<tbody>
<!-- Displaying bookings in the table with joined data for the
user_email -->
<?php
CIMAGE GROUP OF INSTITUTIONS PATNA
Bachelor of Computer Application
Session (2021-2024)
include("connection.php");
if (isset($_POST["confirm_delete_booking"])) {
$deleteBookingId = $_POST["delete_booking_id"];
'$deleteBookingId'";
header('location: airline-dashboard.php');
} else {
FROM booked b
$resultBookings = $con->query($sqlBookings);
if ($resultBookings->num_rows > 0) {
echo "<tr>";
echo "<td>";
datatarget='#deleteBookingModal'>Delete</button>";
CIMAGE GROUP OF INSTITUTIONS PATNA
Bachelor of Computer Application
Session (2021-2024)
echo "</td>";
echo "</tr>";
} else {
Marketing</h5></td></tr>";
?>
</tbody>
</table>
id="delete_booking_id" value="">
1" role="dialog"
aria-labelledby="deleteBookingModalLabel" aria-
hidden="true">
<div class="modal-content">
<div class="modal-header">
CIMAGE GROUP OF INSTITUTIONS PATNA
Bachelor of Computer Application
Session (2021-2024)
<h5 class="modal-title"
id="deleteBookingModalLabel">Confirm Delete</h5>
dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body">
</div>
<div class="modal-footer">
data-dismiss="modal">Cancel</button>
name="confirm_delete_booking">Delete</button>
</div>
</div>
</div>
</div>
</form>
</div>
<script src="https://code.jquery.com/jquery-
CIMAGE GROUP OF INSTITUTIONS PATNA
Bachelor of Computer Application
Session (2021-2024)
3.5.1.slim.min.js"></script>
<script
src="https://cdn.jsdelivr.net/npm/@popperjs/[email protected]/dist/umd/popper.
min.js"></script>
<script
src="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/js/bootstrap.min.js
"></script>
<script>
$('#delete_booking_id').val(deleteBookingId);
});
</script>
<footer>
<ul>
<li><a href="index.php">Home</a></li>
<li><a href="aboutUs.php#targeting-contact">Contact</a></li>
<li><a href="booking-form.php">Services</a></li>
</ul>
CIMAGE GROUP OF INSTITUTIONS PATNA
Bachelor of Computer Application
Session (2021-2024)
</footer>
</body>
</html>
9. TESTING
Software Testing
1. Meets the business and technical requirements that guided its design and
development, and
2. Works as expected.
Software testing also identifies important defects, flaws, or errors in the application
code that must be fixed. The modifier “important” in the previous sentence is, well,
requirements and design documents with an eye towards answering the question
CIMAGE GROUP OF INSTITUTIONS PATNA
Bachelor of Computer Application
Session (2021-2024)
“Important to whom?” Generally speaking, an important defect is one that from the
customer’s perspective affects the usability or functionality of the application. Using colors
requirements definition and easily implemented during development but in fact may not be
entirely workable if during testing we discover that the primary business sponsor is color
blind. Suddenly, it becomes an important defect. (About 8% of men and .4% of women
which the developers followed corporate standard processes or best practices—is not
addressed in this paper because assuring quality is not a responsibility of the testing team.
The testing team cannot improve quality; they can only measure it, although it can be
argued that doing things like designing tests before coding begins will improve quality
because the coders can then use that information while thinking about their designs and
Software testing has three main purposes: verification, validation, and defect
finding.
• The verification process confirms that the software meets its technical
table must return these eight fields <list> ordered by month within 3 seconds of
submission.”
• The validation process confirms that the software meets the business
branch office name, information about the branch’s customer account managers
will appear in a new window. The window will present manager identification
<list of data elements>.” Other requirements provide details on how the data
• A defect is a variance between the expected and actual result. The defect’s
Testing methods
Software testing methods are traditionally divided into black box testing and white
box testing. These two approaches are used to describe the point of view that a test engineer
Black box testing treats the software as a "black box"—without any knowledge of
boundary value analysis, all-pairs testing, fuzz testing, model-based testing, traceability
functionality of software according to the applicable requirements. Thus, the tester inputs
data into, and only sees the output from, the test object. This level of testing usually requires
thorough test cases to be provided to the tester, who then can simply verify that for a given
input, the output value (or behavior), either "is" or "is not" the same as the expected value
risks.
Advantages and disadvantages: The black box tester has no "bonds" with the
code, and a tester's perception is very simple: a code must have bugs. Using the principle,
"Ask and you shall receive," black box testers find bugs where programmers do not. But,
on the other hand, black box testing has been said to be "like a walk in a dark labyrinth
without a flashlight," because the tester doesn't know how the software being tested was
actually constructed. As a result, there are situations when (1) a tester writes many test
cases to check something that could have been tested by only one test case, and/or (2) some
Therefore, black box testing has the advantage of "an unaffiliated opinion," on the one
White box testing is when the tester has access to the internal data structures and
• Code coverage - creating tests to satisfy some criteria of code coverage (e.g.,
the test designer can create tests to cause all statements in the program to be
Although variations exist between organizations, there is a typical cycle for testing:
the software development life cycle. During the design phase, testers work
with developers in determining what aspects of a design are testable and with
• Test planning: Test strategy, test plan, tested creation. Since many activities
• Test development: Test procedures, test scenarios, test cases, test datasets,
• Test execution: Testers execute the software based on the plans and tests and
• Test reporting: Once testing is completed, testers generate metrics and make
final reports on their test effort and whether or not the software tested is ready
for release.
usually along with the client, in order to decide what defects should be treated,
with later.
• Defect Retesting: Once a defect has been dealt with by the development
order to ensure that the latest delivery has not ruined anything, and that the
• Test Closure: Once the test meets the exit criteria, the activities such as
capturing the key outputs, lessons learned, results, logs, documents related to
the project are archived and used as a reference for future projects.
CIMAGE GROUP OF INSTITUTIONS PATNA
Bachelor of Computer Application
Session (2021-2024)
BIBLIOGRAPHY
Websites
• http://www.google.com
• http://www.microsoft.com
• http://www.codeproject.com
• http://www.msdn.com.
• http://www.vb123.com
• http://www.vbcode.com
• http://www.sqltuner.com
Books
Conclusion
CIMAGE GROUP OF INSTITUTIONS PATNA
Bachelor of Computer Application
Session (2021-2024)