You are on page 1of 81

A PROJECT REPORT

ON

ONLINE AMBULANCE BOOKING SYSTEM

Submitted in partial fulfilmentfor the award of the degree of

MASTER OF COMPUTER APPLICATIONS

(Session: 2022-2024)

MKM College of Management and Information


Technology
Affiliated to

MAHARSHI DAYANAD UNIVERSITY, ROHTAK

SUBMITTED TO: SUBMITTED BY:

Ms.BhanuTomar Parul Jeet


DECLARATION

I Paruljeet, hereby declare that the work presented in the Project Report titled ―Online
ambulance Booking System‖ and submitted to Department of Computer Science &
Applications , MKM COLLEGE OF MANAGEMENT & INFORMATION
TECNOLOGY affiliated to M.D University , Rohtak for the partial fulfillment for the
award of degree of Master of Computer Application is an authentic record of my work
carried out during the fourth semester (May- June,2023) under the guidance of Ms.
BhanuTomar, Assistant Professor, Department of Computer & Applications ,
MKMCOLLEGEOF MANAGEMENT & INFORMATION TECNOLOGY.

Further, I also undertake that the matter embodied in this Project Report is my own work
and has not been submitted by me or by my other candidate for the award of any degree
anywhere else.

Name :ParulJeet

Reg.No : 1811420403

MCA 4th Semester

Countersigned by Internal Supervisor

Name…………………………
Designation……………………….
ACKNOWLEDGEMENT
It is a great opportunity to express my sincere thanks to all people who have contribute to
the successful completion of my project work through their support, encouragement and
guidance.

I would like to thank Mrs.AnamikaAggrawal, HOD, Department of Computer


Application and Ms. BhanuTomar (internal guide) for their help and cooperation and
remaining interactive with me during the review of my project for the various designs and
implementations issues.

I would like to thanks my friends and follow trainees for their support and cooperation of
my project. Other project team members have also been really supportive in every way
possible the assigned during the period of training.

ParulJeet

MCA-4th Semester
PREFACE

This project was written by ParulJeet with Guidance of Ms.BhanuTomar. The report is
the result of our 4th Semester study in Information Technology at MKM College of
Management and Information Technology(MDU). It focuses on developing a Hotel
Management System for provide better hotel services to the customer.

We would like to thank our supervisor Ms.AnamikaAggrawal for her support during the
preparation of this project.
ABSTRACT

The objective of the project is to design Online ambulance booking application which
enables the manager to keep the record of the hotel and the customers.
The project has been designed in php technology and consists of a SQL server which acts
as the database for the project.
My motivation for the project came from my enthusiasm and strong urge to learn php
which is one of the fastest growing technologies in today‘s world.
The Hotel Management System project mainly consists of two types of users. The
customers who access the information provided by the website and the administrator who
modifies and updates the information.
All the data needed for the application is stored in the form of tables in the SQL server
2022.
The report contains the details of all the tasks carried out during the entire software
development life cycle of the Ambulace booking Project. This document depicts all the
details of the project.
INDEX

INTRODUCTION ................................................................... 9
1.1Purpose ................................................................................11
1.2Scope…......................................................................... 13
1.3Objective ............................................................................ 14
ANALYSIS… ............................................................................ 17
Software requirement specification .......................... 17
Hardware requirement specification ......................... 17
Function Details ........................................................ 18
Function Requirements ............................................. 20
DESIGN APPROACH… .......................................................... 23
Data Flow symbol ..................................................... 28
UML Activity Diagram .............................................. 35
Class Diagram ........................................................... 42
4.SYSTEM STUDY AND TECHNOLOGY ......................... 46
Benefits of online… ................................................ 47
Software Requirements ............................................. 47
Technology Used........................................................ 47
Feasibility report ....................................................... 63
REQUIREMENTS… ................................................................ 66
Functional Requirements ...................................................... 67
Non-functional requirements ................................................ 68
5.3 User requirements................................................................. 69
Other non-functional requirements ....................................... 70

IMPLEMENTATION .............................................................. 73
Code… ................................................................................. 74
7TESTING................................................................................... 94
Testing Methodologies ......................................................... 95

Software Test Lifecycle… ....................................................96


Types of Testing ................................................................... 96
Test case documentation ....................................................... 98
Test Plan Identifier ............................................................... 98
Level of Testing ...................................................................99
Test case ............................................................................... 101
OUTPUT SCREEN ................................................................... 103
Home page… ....................................................................... 104
Registration page ...................................................................104
Admin panel .........................................................................105
Contact us ............................................................................. 105
Listed Ambulance ………...................................................... 106
About us.............................................................................. 106
DATABASE(MySQL)… ...................................................... 108
Database table… ................................................................. 110
Table Structure… ............................................................. 111
PROBLEM STATEMENT… ............................................. 112
CONCLUSION .......................................................................115
REFRENCES… ........................................................................ 118
CHAPTER-1

INTRODUCTION

1.INTRODUCTION

Online Ambulance Booking System is a system that provides us to reserving rooms,


checking whether the rooms are vacant are or not etc by using online browsing. This
system is very useful to all especially for business people.

For Business people they don‘t have sufficient time for these then they can use these
types of Online Ambulance Booking Systems. By this project we will reduce the faults in
bills of their expenditure and decrease time of delay to give the bills to the customers. We
can also save the bills of the customer. By this project we can also include all the taxes on
the bills according to their expenditures. It has a scope to reduce the errors in making the
bills. Computerized bill can be printed within fraction of seconds. Online ordering of
Booking is possible by using this software. This Project is based on php. If anyone wants
to book the room for few days then they can specify the specific number by seeing the
types of rooms we have. The bill of this online booking is based on the type of room they
can select is displayed.

ONLINE AMBULANCE BOOKING SYSTEM is a Ambulance reservation site script


where site users will be able to search rooms availability with an online booking
reservations system. Site users can also browse hotels, view room inventory, check
availability, and book reservations in real-time. Site users enter check in date and check
out date then search for availability and rates. After choosing the right room in the wanted
hotel – all booking and reservation process is done on the site and an SMS is sent to
confirm the booking.

Administrator Panel
Account Manager -The account manager use account manager to ensure that customer
feels that their needs are beings meet.

Administrator – Administrator can add / edit and manage administrator accounts.


Ambulance – Administrator can manage ambulance that will appear on the site with the
ambulance name, description, facilities, phone and fax
Ambulance Types – Administrator can define the type of Ambulance, ambulance prices
and upload an image for each ambulance.

• The most important advantage of online Ambulance booking is convenience, you can
book your room by simply sitting in home. Internet helps you to browse through the
hotels around the world and compare the facilities and rates easily.

• Save time on admin tasks: - The right Ambulance Booking software will vastly cut
down the time you spend on manual administrative tasks. The software does the majority
of the work and lets you divert your time to more important tasks, such as serving your
guests.

More than any other software you use, a ambulance booking system will touch every
department at your property. Front of house, revenue management, housekeeping… If
you pick the right solution, you can make significant time savings across almost every
area of your business, also boosting your staff‘s productivity and satisfaction.

• Develop strong relationships with your guests: - A more streamlined checkin and
check-out experience will boost your guest happiness. And that‘s only the tip of the
iceberg – anything from improved communication and additional services will also
heighten guest loyalty. Choosing the best property management software will likely mean
an increased level of retention in both guests and staff.

• Increase your online visibility: -The right software is an important factor in developing
your online presence. You can integrate guest-facing software like Online Ambulance
booking, chat bots and a guest portal with your website design, enabling you to instantly
accept online reservations and make guests feel confident in their choice to book directly
with you.
• Implement an effective revenue management system: -Most Ambulance management
systems include pricing tools and other features to optimize revenue. Gone are the days
of having just a peak season price and a low season price – if you‘re not setting prices in
a more sophisticated manner, you‘re losing out on bookings and not making the most of
the guests that do book. You should be able to create and customize product rates, rate
dependencies, and special offers and rules such as package rates.

• Manage distribution functions: -A modern hospitality cloud should be able to easily


connect to achannelmanagerso you can advertise across many channels

1.3 Objective
It seeks to improve efficiency and operational process performance, strategies are
established so that a hotel can be differentiated from what its competitors offer, better
ways are sought to improve user experience and customer satisfaction, etc. It also covers
all aspects concerning workers (such as hiring, firing, paying salaries, performance
improvement), as well as a whole succession of processes relating to operational cost
savings.

Quite a common mistake is to think that Ambulance Booking is a set of operational


processes that are simply aimed at improving customer service. As we have already seen,
it controls other things at the same time and although it is true that customers are the ones
who in the end benefit from it all, they are not the only ones.
We attempt to satisfy the needs of tourists, which involves quite a challenge; since each
user has individual expectations. But we can say that ultimately customer satisfaction is
most important.

To facilitate the process, a detailed analysis is usually conducted to ascertain customer


service demand, all available products are classified (these are referred to as inventories),
supplier system functioning is analysed as well as transport and storage management.

To carry out all these processes, comprehensive global and individual strategic planning
must be undertaken. For example, demand analysis will be studied based on supply. The
idea behind this analysis is to be able to offer customers the kind of product they need,
thus avoiding stock shortages, but at the same time that stock may be spoilt because too
large an order has been placed.

To achieve optimum Ambulance Booking, the maximum possible market information


must be available, such as socio-economic status, food and drink preferences, collective
level of satisfaction, the type of tourist the hotel is targeting, accommodation packages
and seasonality of demand, etc.
The main objectives of the test plan for the Ambulance Booking System are as follows:
• To identify the features of the system that will be tested.
• To identify and define all the activities necessary to prepare for and conduct the testing
process on the Ambulance Booking System.

CHAPTER-2

ANALYSIS

Requirement analysis for web applications encompasses three major tasks: formulation,
requirements gathering and analysis modelling. During formulation, the basic motivation
and goals for the web application are identified, and the categories of users are defined.
In the requirements gathering phase, the content and functional requirements are listed
and interaction scenarios written from end-user‘s point-off view are developed. This
intent is to establish a basic understanding of why the web application is built, who will
use it, and what problems it will solve for its users.

2.1 Software requirement Specification


A set of programs associated with the operation of a computer is called software.
Software is the part of the computer system, which enables the user to interact with
several physical hardware devices.

The minimum software requirement specifications for developing this project are as
follows:

Operating System: Windows XP/Vista/2000, Linux.

Presentation layer: PHP, CSS, HTML, JSP, FLASH

Database : My SQL

Presentation : Power Point 2003 Documentation Tools


Ms Office

2.1 Hardware Requirement Specification:

The collection of internal electronic circuits and external physical devices used in
building a computer is called the Hardware.

The minimum hardware requirement specifications for developing this project are as
follows:
Processor : Standard processor with a speed of 1.6
GHz
RAM : 256 MB RAM or more
Hard Disk : 20 GB or more

Monitor : Standard colour monitor

• Function Details

The basic objective of ONLINE AMBULANCE BOOKING SYSTEM is to generalize


and simplify the monthly or day to day activities of Booking Ambulance activities, Check
in of New Customer, Check out of customer, Assigning a room according to customer
requirement, and finally compute the bill etc. which has to be performed repeatedly on
regular basis. To provide efficient, fast, reliable and user-friendly system is the basic
motto behind this exercise. Let us now discuss .
how different functions handle the structure and data files:

• Password In this module, this website is for multiple users. If a User enters a password
and the software checks its validity. If the password is valid then option is given to
change the password, otherwise ―Invalid User/ Password‖ message is displayed. There is
an option for password recovery, log out, login, new users sign in. The Administrator can
also update changes in the site after login.

• Creating new Entity (Ambulance, equipments, Customers, Members etc.) This is


used to add a new employee details, delete entity details and view the details. In that
screen, the automatic item is created. In this function, whenever a new entity is required
to be added the corresponding forms are opened and the database is manipulated to check
whether the data is already existing or not. If it already exists, then it prompts that
―Entry already existing‖ and if not than the data is entered with the various
validation checks.

3. Function NEW_ROOM () This is the function used to open a new room for a
customer so that he/she can assign a separate room. In that screen, the automatic room
number is created. After opening a new room for the customer, finally a room is assigned
to a customer and the room records are appended in the data file.

4. Function CHECKIN_CUSTOMER () This function is used to admit a customer


in our Hotel after entering his all personal details like Name, Address, Phone, Sex and
then he/she is assigned a room from NEW_ROOM () function.

• Online Bookings
• Checkout Details • Membership Details
• Packages Available.

2.3 Functional Requirements

Module Description

The ONLINE AMBULANCE BOOKING SYSTEM consists of 2 modules and 3


categories.

The categories are as follows:


Advanced Search

Booking

Payment

The modules are


Administrator User
Admin Module:
The Functionalities of the Administrator is:

• The administrator should login into the system with unique his/her password and
username.

• If the username and password is validated then he can gain access to the system.
• View the hotels can update and delete the hotels.

• Post the special offers, add new hotel to the hotels list.

• Insert /View the Availability and Price.

• Post the links. Adding the links to the hotels and as well view the links.

• Blocks the user view the status of the users.

• Restrict the user to the see the more information with out login.

The Administrator can do the following actions:

• Login

• Change Password

• Admin Functionalities

• View Ambulance

• Add Ambulances
• Post Special Offers

• Edit / Delete Hotels

• Upload Ambulance Images.

• Logout

User Module:

The Functionalities of the User is:


A new User can register with the application by entering his appropriate details.

The User should login into the system with unique his/her password and username.

If the username and password is validated then he can gain access to the system.

The User can change his password, to change the password, it should ask for the old
password, new password and confirm new password View the Categories.
The User can do the following actions:
• Register

• Login

• Change Password

• User Functionalities
CHAPTER-3

DESIGN APPROACH

The main focus of the analysis phase of Software development is on ―What needs to be
done‖. The objects discovered during the analysis can serve as the framework or Design.
The class‘s attributes, methods and association identified during analysis must be
designed for implementation language. New classes must be introduced to store
intermediate results during the program execution.

Emphasis shifts from the application domain o implementation and computer such as user
interfaces or view layer and access layer. During analysis, we look at the physical entities
or business objects in the system, that is, which players and how they cooperate to do the
work of the application. These objects represent tangible elements of the business.

During the Design phase, we elevate the model into logical entities, some of which might
relate more to the computer domain as people or employees. Here his goal is to design
the classes that we need to implement the system the difference is that, at this level we
focus on the view and access classes, such as how to maintain information or the best
way o interact with a user or present information.

Design process:

During the design phase the classes identified in object-oriented analysis Must be
revisited with a shift focus to their implementation. New classes or attribute and Methods
must be an added for implementation purposes and user interfaces. The objectoriented
design process consists of the following activities:

1. Apply design axioms to design classes, their attributes, methods, associations, structure
and protocols Refine and complete the static UML class diagram by adding details to the
UML diagram. This step consists of following activities. *Refine attributes *Design
methods and protocols by utilizing a UML activity diagram to represent the method‘s
algorithms.
• Refine associations between classes

• Refine class hierarchy and design with inheritance

• Iterate and refine again

PROCESS SYMBOL:

A process receives input data and produces output that has a different content, form, or
both. It contains business logic also called Business rules that transform the data and
produce the required results. Process name is the function name and consists of a verb
followed by a singular noun.

3.1DATA FLOW SYMBOL:

A data flow symbol is a path for data to move from one part of the information system to
another. A data flow in a DFD represents one or more data items. A data flow name
consists of a singular noun and an adjective, if needed. A data flow must have a process at
its either end.

DIVERGING DATA FLOW:


It is a data flow in which the same travels to 2 or more different locations.

DATA STORE SYMBOL:


A data store or data repository in a DFD represent a situation in which the system must
retain data because one or more processes need to use the stored data at a later time, A
data store name is a plural name consisting of a noun and adjectives, if needed. A data
store must be connected to a process with a data flow.

EXTERNAL ENTITY:

An external entity is a person, department, outside organization or other information


system that provides data to the system or receives output from the system. It shows the
boundaries or terminators of system. They act as either source or sink. An external entity
must be connected to a process by a data flow
There are three types of DFD‘s they are
• Zero Level DFD
• Top Level DFD and
• Detailed Level DFD
3.1.1DFD:

Zero Level DFD: In the Context Level the whole system is shown as a single process.
No data stores are shown. Inputs tothe overall system are shown together with data
sources (as External entities). Outputs from the overall system are shown together with
their destinations (as External entities).
Top Level DFD: The Top Level DFD gives the overview of the whole system identifying
the major system processes and data flow. This level focuses on the single process that is
drawn in the context diagram by ‗Zooming in‘ on its contents and illustrates what it does
in more detail.
Detailed Level DFD: In Detailed D.F.Ds the main process is divided into sub processes
and we try to find out the flow from one process to another process. We find the
interaction among External entities, processes, sub processes and database.
3.1.2. Use Case Documentation:

USE CASE DIAGRAMS:


A use case describes a sequence of actions that provide something of measurable value to
an actor and is drawn as a horizontal ellipse an actor is a person, organization, or external
system that plays a role in one or more interactions with your system.

Use Case Diagram


A use case diagram is a diagram that shows a set of use cases and actors and
relationships.

Contents

Use case commonly contain

Use cases

Actors
Dependency, generalization and association relationships

Over all use case


Un Registration Use Case

Registration Use Case


Administrator Use Case
3.2UML ACTIVITY DIAGRAM:
Activity diagrams are used to document workflows in a system, from the business level
down to the operational level. When looking at an Activity diagram, you'll notice
elements from state diagram, the Activity diagram is a variation of the state diagram
where the "states" represent operations, and the transitions represent the activities that
happen when the operation is complete. The general purpose of Activity diagrams is to
focus on flows driven by internal processing vs. external events.

3.2.1Activity Diagrams:
An activity diagram shows the flow from activity to activity. An activity is an ongoing
non-atomic execution within a state machine.

Activities ultimately result in some action, which is made up of executable atomic


computations that result in a change in state of the system or the return of a value.

Activity diagrams commonly contain

Activity states and action states

Transitions Objects
Like all other diagrams, activity diagrams may contain notes and constrains.
Registration Process
Login process:

3.2.2SEQUENCE DIAGRAMS:
UML sequence diagrams model the flow of logic within your system in a visual manner,
enabling you both to document and validate your logic, and are commonly used for both
analysis and design purposes. Sequence diagrams are the most popular UML artefacts for
dynamic modelling, which focuses on identifying the behaviour within your system.

Sequence and diagrams

Sequence Diagram
An interaction diagram shows an interaction, consisting of a set of objects and their
relationships, including the messages that may be dispatched among them.
A sequence diagram is an interaction diagram that emphasizes the time ordering of
messages.

Graphically, a sequence diagram is a table that shows objects arranged along x-axis and
messages, ordered in increasing time, along the y-axis.

Contents

Sequence diagrams commonly contain the following:

Objects

Links

Messages

Like all other diagrams, sequence diagrams may contain notes and constrains.

Administrator Sequence
Registration Sequence

3.3CLASS DIAGRAMS:
A class diagram describes the static structure of the symbols in your new system. It is a
graphic presentation of the static view that shows a collection of declarative (static)
model elements, such as classes, types, and their contents and relationships. Classes are
arranged in hierarchies sharing common structure and behaviour, and are associated with
other classes 3.3.1 Class Diagrams
3.3.2 ER DIAGRAM

Entity – Relationship Diagram: This depicts relationship between data objects. The
attribute of each data objects noted in the entity- relationship diagram can be described
using a data object description. Data flow diagram serves two purposes:

• To provide an indication of how data are transformed as they move through the system.
• To depict the functions that transformation the data flow.

Entity relationship diagrams are a way to represent the structure and layout of a database.
It is used frequently to describe the database schema. ER diagrams are very useful as they
provide a good conceptual view of any database, regardless of the underlying hardware
and software. An ERD is a model that identifies the concepts or entities that exist in a
system and the relationships between those entities. An ERD is often used as a way to
visualize a relational database: each entity represents a database table, and the
relationship lines represent the keys in one table that point to specific records in related
tables.
ERDs may also be more abstract, not necessarily capturing every table needed within a
database, but serving to diagram the major concepts and relationships. This ERD is of the
latter type, intended to present an abstract, theoretical view of the major entities and
CHAPTER-4

SYSTEM STUDY AND TECHNOLONG

4.1BENEFITS OF ONLINE:

• Time saving.
• Less paper works.
• Cost efficient.
• More comfortable environment.Convenience and flexibility.

4.2SOFTWARE REQURIMENTS:

• Html
• CSS
• JAVA SCRIPT
• DATABASE(MySQL)
• SERVER(APACHE)
• PROGRAMMING LANGUAGE (PHP).

TECHNOLOGY USED

4.3.1 PHP
PHP is a widely used, general-purpose scripting language that was originally designed for
web development to produce dynamic web pages. For this purpose, PHP code is
embedded into the HTML source document and interpreted by a web server with a PHP
processor module, which generates the web page document.

PHP Advantages

>.
For maximum compatibility, we recommend that you use the standard form (<?php)
rather than the shorthand form.

<?php
?>

A PHP file normally contains HTML tags, just like an HTML file, and some PHP
scripting code.

Below, we have an example of a simple PHP script which sends the text "Hello World" to
the browser:

<html>

<body>

<?php

echo"HelloWord"; ?>

</body>

</html>

Each code line in PHP must end with a semicolon. The semicolon is a separator and is
used to distinguish one set of instructions from another. There are two basic statements to
output text with PHP: echo and print. In the example above we have used the echo
statement to output the text "Hello World".

Note: The file must have a .php extension. If the file has a .html extension, the PHP code
will not be executed.

Comments in PHP
In PHP, we use // to make a single-line comment or /* and */ to make a large comment
block.

<html>

<body>
<?php

//This is a comment
/*

This is a

comment block
*/

?>

</body>

</html>

Variables in PHP
Variables are used for storing a values, like text strings, numbers or arrays. When a
variable is declared, it can be used over and over again in your script.

All variables in PHP start with a $ sign symbol. The correct way of declaring a variable in

PHP:

$var_name = value;

PHP is a Loosely Typed Language

In PHP, a variable does not need to be declared before adding a value to it. In the example
above, you see that you do not have to tell PHP which data type the variable is.

PHP automatically converts the variable to the correct data type, depending on its
value.

In a strongly typed programming language, you have to declare (define) the type and
name of the variable before using it.

In PHP, the variable is declared automatically when you use it.


Sessions
A PHP session variable is used to store information about, or change settings for a user
session. Session variables hold information about one single user, and are available to all
pages in one application.

PHP Session Variables


When you are working with an application, you open it, do some changes and then you
close it. This is much like a Session. The computer knows who you are. It knows when
you start the application and when you end. But on the internet there is one problem: the
web server does not know who you are and what you do because the HTTP address
doesn't maintain state.

A PHP session solves this problem by allowing you to store user information on the
server for later use (i.e. username, shopping items, etc). However, session information is
temporary and will be deleted after the user has left the website. If you need a permanent
storage you may want to store the data in a database.

Sessions work by creating a unique id (UID) for each visitor and store variables based on
this UID. The UID is either stored in a cookie or is propagated in the URL.

Starting a PHP Session


Before you can store user information in your PHP session, you must first start up the
session.

Note: The session_start() function must appear BEFORE the <html> tag: <?
phpsession_start(); ?>

<html>

<body>

</body>

</html>

The code above will register the user's session with the server, allow you to start saving
user information, and assign a UID for that user's session.
Storing a Session Variable

The correct way to store and retrieve session variables is to use the PHP $_SESSION
variable:
<?php
session_start();

// store session data

$_SESSION['views']=1;

?>

<html>

<body>

<?php

//retrieve session data

echo "Pageviews=".
$_SESSION['views']; ?>

</ b o d y>

</ h t m l>

Output:

Pageviews=1

In the example below, we create a simple page-views counter. The isset() function checks
if the "views" variable has already been set. If "views" has been set, we can increment
our counter. If "views" doesn't exist, we create a "views" variable, and set it to 1:

<?php

session_start(); if(isset($_SESSION['views']))
$_SESSION['views']=$_SESSION['views']+
1; else

$_SESSION['views']=1;

echo "Views=".
$_SESSION['views']; ?>

Destroying a Session
If you wish to delete some session data, you can use the unset() or the
session_destroy() function.

The unset() function is used to free the specified session variable:

<?php unset($_SESSION['views']);

?>

You can also completely destroy the session by calling the session_destroy()
function: <?phpsession_destroy(); ?>
Note: session_destroy() will reset your session and you will lose all your stored session
data.
PHP Form Handling

The most important thing to notice when dealing with HTML forms and PHP is that any
form element in an HTML page will automatically be available to your PHP scripts.

Example

The example below contains an HTML form with two input fields and a submit button:

<html>

<body>

<form action="welcome.php" method="post">

Name: <input type="text" name="frame" />

Age: <input type="text" name="age" />


<input type="submit" />

</form>

</body>

</html>
The PHP $_GET and $_POST variables are used to retrieve information from forms, like
user input.

When a user fills out the form above and click on the submit button, the form data is sent
to a PHP file, called "welcomephp":

"welcomephp" looks like this:

<html>

<body>

Welcome <?php echo $_POST["frame"]; ?>!<br /> You are <?php echo
$_POST["age"]; ?> years old.
</ body>
</ html>

Output could be something like this:


Welcome Sam!
You are 20 years old.
The PHP $_GET and $_POST functions will be explained in the next chapters.
Form Validation

User input should be validated on the browser whenever possible (by client scripts).
Browser validation is faster and reduces the server load.

You should consider server validation if the user input will be inserted into a database. A
good way to validate a form on the server is to post the form to itself, instead of jumping
to a different page. The user will then get the error messages on the same page as the
form. This makes it easier to discover the error.

What is a PHP File?


•PHP files can contain text, HTML, CSS, JavaScript, and PHP code.

• PHP code are executed on the server, and the result is returned to the browser as plain
HTML.

• PHP files have extension ".php".

1. You can program actions, conditions, calculations, network requests, concurrent tasks and
many other kinds of instructions.
You can access any elements through theDocumentObjectModelAPI(DOM)and make
them change however you want them to.

The DOM is a tree-like representation of the web page that gets loaded into the
browser.

Thanks to the DOM, we can use methods like getElementById() to access elements from
our web page.
JavaScript allows you to make your webpage “think and act”, which is what
programming is all about.
Together, we use these three languages to format, design, and program web pages. And
when you link together some web pages with hyperlinks, along with all their assets like
images, videos, and so on that are on the server computer, it gets rendered into a website.
This rendering typically happens on the front end, where the users can see what's being
displayed and interact with it.
On the other hand, data, especially sensitive information like passwords, are stored and
supplied from the back end part of the website. This is the part of a website which exists

CHAPTER-5
REQUIREMENTS
5.1FUNCTIONAL REQUIREMENTS
Functional requirements define the fundamental actions that must take place in the
software in accepting the inputs and in processing and generating the outputs. These are
listed as ―shall‖ statements starting with ―The system shall….

Login Module – This module is provided for administrator and users such as Product
buyer and seller who have registered themselves in the system. These login are provided
according to the need of the systems.
• Input – User id and password
• Process – After entering user id and password by user process of validation occur to
identify whether user id and password is available in database or not. •Output–
Registered user can access website and can use the services.

Administrator Module – The administrator is provided with password and login-id


with which he/she can access the system. Administrator is provided right of maintaining
the database, verifies registered users. •Input – Login id and password.
• Process – Process of validation will occur.

• Output – Administrator will maintain the database and will perform Product seller
process.
Search Module – In this module we are going to provide facility for Product buyer to
search for Products according to their specified categories so that users can search for
Products easily.

• Input- Initial letter of Product, with the help of keywords and with the
help of Brand name. • Output- Information about Products.

CHAPTER-6
IMPLEMENTATION

6.1 Code:

6.1.1Front end code-

Admin.php

<?php include('header.php'); include('dbcon.php');


?>

<div class="adminlogin">
<div class="admin-box">
<div class="admin-text">
<h1>Admin Login</h1>
<form action="" method="post">
<table><tr>
<td width="50%" height="50px">Username</td><td width="50%"
height="50px"><input type="text"
name="un" id="username" title="Enter Username"></td>
</tr><tr>
<td width="50%" height="50px">Password</td><td width="50%"
height="50px"><input type="Password"
name="ps" id="password" title="Enter Password"></td>
</Tr><tr>
<td colspan="2"><input type="submit" name="sub"
id="btn" value="Login"></td>
</tr>
</form>
<?php

if(isset($_POST['sub']))
{
$username=$_POST['un'];
$password=$_POST['ps'];
$qry="SELECT * FROM `admin` WHERE
`username`='$username' AND `password`='$password'";
$run=mysqli_query($sql,$qry); $row=mysqli_num_rows($run); if($row
<1)
{
?>
<script>alert('Username or password not match
!!'); window.open('admin.php','_self');
</script>
<?php } else{ header('location:admin/admindash.php'); }
}

?>

</div>
</div>
</div>
</body>
</html>
About.php

<?php include('dbcon.php'); include('header.php'); ?>

<div class="about-container">
<div class="about">
<div class="about1">
<imgsrc="img/dinning.jpg" alt="dinning">
</div>
<div class="about2">
<div class="h1"><h1 class="about-h1">Welcome To Our
Website</h1></div>
<p class="about-p">Room service or in-room dining is a hotel
service enabling guests to choose items of food and drink for
delivery to their hotel room for consumption. Room service is
organised as a subdivision within the food and beverage
department of high-end hotel and resort properties. It is
uncommon for room service to be offered.

hotels that are not high-end, or in motels. Room service may also be provided for
guests on cruise ships. Room service may be provided on a 24-hour basis or
limited to late night hours only. Due to the cost of customized orders and delivery
of room service, prices charged to the patron are typically much higher than in
the hotel's restaurant or tuck shop, and a gratuity is expected.</p>
<br>
<p class="about-p">Room service or in-room dining is a hotel
service enabling guests to choose items of food and drink for delivery to their
hotel room for consumption. Room service is organised as a
subdivision within the food and beverage department of high-end
hotel and resort properties. It is uncommon for room service to
be offered in hotels.</p>
</div>
</div>
<div class="about-box">
<div class="about-box-1">
<div class="box1">
<div class="box1-img">
<imgsrc="img/deluxroom.jpg" alt="delux">
</div>
<div class="box1-text">
<div class="box1-text-h1"><a
href="room.php"><h3>Rooms</h3></a></div>
<p class="box1-text-p"><ul>
<li class="box1-li">Delux AC Room</li>
<li class="box1-li"> AC Room</li>
<li class="box1-li">Non AC Room</li>
</ul>
</p>
<p class="box1-text-p" style="color:black; font-
weight:600; margin-top:6px;">
Sector-10, Faridabad, <br>Haryana,Pin-121004
<br>+91 9876543210 <br>www.restaurentms.com
</p>
</div>
</div>

<div class="box1">
<div class="box1-img">
<imgsrc="img/dinning4.jpg" alt="delux">
</div>
<div class="box1-text"><div class="box1-text-h1"><a
href="food.php"><h3>Food</h3></a></div>
<p class="box1-text-p"><ul>
<li class="box1-li">South-Indian</li>
<li class="box1-li"> Chinese</li>
<li class="box1-li">Deserts</li>
</ul>
</p>
<p class="box1-text-p" style="color:black; font-
weight:600; margin-top:6px;">
Sector-10, Faridabad, <br>Haryana,Pin-121004
<br>+91 9876543210 <br>www.restaurentms.com
</p>

</div>
</div>

<div class="box1">
<div class="box1-img">
<imgsrc="img/partyhall2.jpg" alt="delux">
</div>
<div class="box1-text"><div class="box1-text-h1"><a
href="bookinghall.php"><h3>Halls</h3></a></div>
<p class="box1-text-p"><ul>
<li class="box1-li">Party Halls</li>
<li class="box1-li"> Marriage Halls </li>
<li class="box1-li">Pools</li>
</ul>
</p>
<p class="box1-text-p" style="color:black; font-
weight:600; margin-top:6px;">
Sector-10, Faridabad, <br>Haryana,Pin-121004
<br>+91 9876543210 <br>www.restaurentms.com
</p>
</div>
</div>

</div>
</div>

</div>
</body>
</html>

Booking hall.php

<?php include('dbcon.php'); include('header.php');

?>

<div class="hall-container">
<div class="hall-img">
<imgsrc="img/partyhall.jpg" alt="">
</div>
<div id="book-form">
<form action="bh.php" method="post">
<center>
<table>
<tr>
<th width="20%" height="50px">Check Hall Avaibility</th>
<td rowspan="2"><input type="submit" name="sub"
value="Check" required></td>
</tr>
<tr>
<td width="20%" height="50px"><center><input type="date"
name="hall"></center></td>
</tr>
</table>
</center>
</form>
</div>
</div>

</body>
</html>

Verification-form.php:

<div class="error"></div>
<div class="success"></div>
<form action="" id="frm-mobile-verification"><div class="form-row">
<label>OTP is sent to Your Mobile Number</label>
</div>
<div class="form-row">
<input type="number" name="" id="mobileotp" class="form-
input" placeholder="Enter The OTP">
</div>

<div class="row">
<input type="button" id="verify" class="btnVerify"
value="Verify" onClick="verifyOTP();"></div>
</form>
6.1.2Backend codeRestaurentms.sql

-- phpMyAdmin SQL Dump


-- version 5.1.1
--https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Mar 09, 2022 at 05:58 AM
-- Server version: 10.4.21-MariaDB
-- PHP Version: 8.0.12

SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";


START TRANSACTION;
SET time_zone = "+00:00";

/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;


/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS
*/;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8mb4 */;

--
-- Database: `restaurentms`
--

--
-- Table structure for table `acroom` -
-

CREATE TABLE `acroom` (


`id` int(11) NOT NULL,
`roomno` int(11) NOT NULL,
`roomtype` varchar(20) DEFAULT NULL,
`price` int(11) NOT NULL,
`status` varchar(20) NOT NULL DEFAULT 'un book'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
--
-- Dumping data for table `acroom` -
-

INSERT INTO `acroom` (`id`, `roomno`, `roomtype`, `price`,


`status`)
VALUES
(6, 522, 'AC', 900, 'un book');

--
-- Table structure for table `admin` -
-

CREATE TABLE `admin` (


`admin_id` int(11) NOT NULL,
`username` varchar(20) DEFAULT NULL,
`password` varchar(20) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

--
-- Dumping data for table `admin` -
-

INSERT INTO `admin` (`admin_id`, `username`, `password`) VALUES


(1, 'yash', 'yash'),
(2, 'admin', 'admin');

--
-- Table structure for table `admin_edit`
--

CREATE TABLE `admin_edit` (


`admin_id` int(11) NOT NULL,
`roomno` int(11) NOT NULL,
`roomtype` varchar(20) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

--
-- Dumping data for table `admin_edit` -
-

INSERT INTO `admin_edit` (`admin_id`, `roomno`, `roomtype`)


VALUES

(1, 121, 'deluxAC'), (3, 523, 'nonAC'),


(4, 122, 'deluxAC'),
(5, 524, 'nonAC');

-- Triggers `admin_edit`
delimiter $$
CREATE TRIGGER `Audit_ac` AFTER INSERT ON `admin_edit` FOR EACH
ROW BEGIN

IF (NEW.roomtype = 'AC') THEN


INSERT INTO acroom

SET roomno =
NEW.roomno,
roomtype = NEW.roomtype,
price = 900,
status = 'un book';

END IF;

END
$$
DELIMITER ;
DELIMITER $$
CREATE TRIGGER `Audit_delux` AFTER INSERT ON `admin_edit` FOR
EACH ROW
BEGIN
IF ( NEW.roomtype = 'deluxAC') THEN
INSERT INTO deluxacroom
SET

oomno = NEW.roomno,

roomtype = NEW.roomtype,

price = 1100,

status = 'un book';

END IF;

END
$$
DELIMITER ;
DELIMITER $$
CREATE TRIGGER `Audit_nonac` AFTER INSERT ON `admin_edit` FOR
EACH ROW BEGIN

IF (NEW.roomtype = 'nonAC') THEN


INSERT INTO nonac

SET roomno =
NEW.roomno,
roomtype = NEW.roomtype,

price = 700,
status = 'un book';

END IF;

END
$$
DELIMITER ;

--
-- Table structure for table `card details`
--

CREATE TABLE `card details` (


`id` int(11) NOT NULL,
`cardno` bigint(16) NOT NULL,
`cvv` int(3) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

--
-- Dumping data for table `card details`
--
INSERT INTO `card details` (`id`, `cardno`, `cvv`) VALUES

(1, 1111111111111111, 111),


(2, 2222222222222222, 222),
(3, 3333333333333333, 333),
(4, 4444444444444444, 444);

--
-- Table structure for table `contact`
--

CREATE TABLE `contact` (


`id` int(11) NOT NULL,
`name` varchar(20) NOT NULL,
`email` varchar(255) NOT NULL,
`mobile` bigint(10) NOT NULL,
`address` varchar(255) NOT NULL,
`message` varchar(255) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

--
-- Dumping data for table `contact` -
-
INSERT INTO `contact` (`id`, `name`, `email`, `mobile`,
`address`,
`message`) VALUES
(3, 'neel', 'neel@gmail.com', 1223344558, 'sarasnagar', 'food is
not good'),
(4, 'jasprit', 'jasprit@gmail.com', 9889988998, 'chandannagar',
'what is the price of AC room?'),
(5, 'harsh', 'harsh@gmail.com', 1234567899, 'burudgoan', 'room
pricw');

--
-- Table structure for table `deluxacroom`
--
CREATE TABLE `deluxacroom` ( `id` int(11) NOT NULL,
`roomno` int(20) NOT NULL,
`roomtype` varchar(20) DEFAULT NULL,
`price` int(20) NOT NULL,
`status` varchar(20) NOT NULL DEFAULT 'un book'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

--
-- Dumping data for table `deluxacroom` -
-

INSERT INTO `deluxacroom` (`id`, `roomno`, `roomtype`, `price`,


`status`) VALUES
(1, 101, 'deluxAC', 1100, 'un book'),
(18, 111, 'deluxAC', 1100, 'unbook');
--
-- Table structure for table `feedback` -
-

CREATE TABLE `feedback` (


`id` int(11) NOT NULL,
`name` varchar(30) DEFAULT NULL,
`feedback` varchar(30) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

--
-- Dumping data for table `feedback` -
-

INSERT INTO `feedback` (`id`, `name`, `feedback`) VALUES


(1, 'yash', 'good'),
(2, 'harsh', 'excellent'),
(3, 'amrut', 'excellent'),
(4, 'raj mutha', 'excellent'),
(6, 'jasprit', 'good ');

--
-- Table structure for table `food` -
-

CREATE TABLE `food` (


`id` int(255) NOT NULL,
`full_name` text NOT NULL,
`phone` bigint(100) NOT NULL,
`address` varchar(100) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
Dumping data for table `food` -
-

INSERT INTO `food` (`id`, `full_name`, `phone`, `address`) VALUES


(5, 'rohiy', 336366363, 'munoooo'),
(6, 'giri', 5555666677, 'pune'),
(19, 'virat', 102030405, 'burudgoan road'),
(23, 'Yashpokharna ', 7768561235, 'burudgoan road'),
(24, 'Yashpokharna ', 7765898978, 'burudgoan road'),
(25, 'unnatti ', 9421197320, 'sarasnagarnali me'),
(26, 'jasprit ', 9889988998, 'chandannagar'),
(27, 'Yashpokharna ', 1223344558, 'burudgoan road'),
(28, 'harsh', 1223344558, 'burudgoan road');

--
-- Table structure for table `hall` -
-

CREATE TABLE `hall` (


`id` int(11) NOT NULL,
`hallyype` varchar(20) NOT NULL,
`price` int(11) NOT NULL,
`status` varchar(20) NOT NULL DEFAULT 'un book'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

--
-- Dumping data for table `hall` -
-

INSERT INTO `hall` (`id`, `hallyype`, `price`, `status`) VALUES


(1, 'marriage', 10000, 'un book');

--
Table structure for table `hall_details`

CREATE TABLE `hall_details` (


`id` int(11) NOT NULL,
`name` varchar(20) NOT NULL,
`address` varchar(100) NOT NULL,
`state` varchar(20) NOT NULL, `city` varchar(20) NOT NULL,
`email` varchar(50) NOT NULL,
`date` datetime NOT NULL,
`members` int(11) NOT NULL,
`function` varchar(20) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

--
-- Table structure for table `nonac` -
-

CREATE TABLE `nonac` (


`id` int(11) NOT NULL,
`roomno` int(11) NOT NULL,
`roomtype` varchar(20) DEFAULT NULL,
`price` int(11) NOT NULL,
`status` varchar(20) NOT NULL DEFAULT 'un book'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

--
-- Dumping data for table `nonac` -
-

INSERT INTO `nonac` (`id`, `roomno`, `roomtype`, `price`,


`status`)
VALUES
(9, 523, 'nonAC', 700, 'un book');

Table structure for table `room booking`


--

CREATE TABLE `room booking` (


`id` int(11) NOT NULL,
`name` varchar(20) NOT NULL,
`address` varchar(20) NOT NULL,
`state` varchar(20) NOT NULL,
`city` varchar(20) NOT NULL,
`email` varchar(20) NOT NULL,
`cin` varchar(20) NOT NULL,
`cout` varchar(20) NOT NULL,
`members` int(11) NOT NULL,
`roomtype` varchar(20) DEFAULT NULL,
`no of rooms` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

--
-- Dumping data for table `room booking`
--

INSERT INTO `room booking` (`id`, `name`, `address`, `state`,


`city`,
`email`, `cin`, `cout`, `members`, `roomtype`, `no of rooms`)
VALUES
(7, 'yashh', 'geetanjalibunglow', 'maharshtra', 'ahmednagar',
'this@gmail.com', '22/11/2021', '23/11/2021', 2, 'deluxAC', 2),
(80, 'rohan', 'eden gardens', 'karnataka', 'Ahmednagar',
'ro@gmail.com',
'2021-12-03', '2021-12-04', 2, 'Delux-AC', 1),
(85, 'Yash', 'burudgoan', 'maharashtra', 'mumbai',
'rohan@gmail.com',
'2021-12-05', '2021-12-06', 2, 'Delux AC', 1),
(87, 'viraj', 'burudgoan', 'maharashtra', 'Delhi',
'rohan@gmail.com',
'2021-

--
-- Indexes for dumped tables
--

Indexes for table `acroom`

ALTER TABLE `acroom`


ADD PRIMARY KEY (`id`);

--
-- Indexes for table `admin`
-- ALTER TABLE `admin`
ADD PRIMARY KEY (`admin_id`);
--
-- Indexes for table `admin_edit`
--
ALTER TABLE `admin_edit`
ADD PRIMARY KEY (`admin_id`);

--
-- Indexes for table `card details`
--
ALTER TABLE `card details`
ADD PRIMARY KEY (`id`);

--
-- Indexes for table `contact`
-- ALTER TABLE `contact`
ADD PRIMARY KEY (`id`);

--
-- Indexes for table `deluxacroom`
--
ALTER TABLE `deluxacroom`
ADD PRIMARY KEY (`id`);

--
-- Indexes for table `feedback`
ALTER TABLE `feedback`
ADD PRIMARY KEY (`id`);

--
-- Indexes for table `food`
-- ALTER TABLE `food`
ADD PRIMARY KEY (`id`);

--
-- Indexes for table `hall`
-- ALTER TABLE `hall`
ADD PRIMARY KEY (`id`);

--
-- Indexes for table `hall_details`
--
ALTER TABLE `hall_details`
ADD PRIMARY KEY (`id`);

--
-- Indexes for table `nonac`
-- ALTER TABLE `nonac`
ADD PRIMARY KEY (`id`);

--
-- Indexes for table `room booking`
--
ALTER TABLE `room booking`
ADD PRIMARY KEY (`id`);

--
-- AUTO_INCREMENT for dumped tables
--

-- AUTO_INCREMENT for table `acroom`


--
ALTER TABLE `acroom`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT,
AUTO_INCREMENT=7;

--
-- AUTO_INCREMENT for table `admin`
--
ALTER TABLE `admin`
MODIFY `admin_id` int(11) NOT NULL AUTO_INCREMENT,
AUTO_INCREMENT=3;

--
-- AUTO_INCREMENT for table `admin_edit`
--
ALTER TABLE `admin_edit`
MODIFY `admin_id` int(11) NOT NULL AUTO_INCREMENT,
AUTO_INCREMENT=6;

--
-- AUTO_INCREMENT for table `card details`
--
ALTER TABLE `card details`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5;

--
-- AUTO_INCREMENT for table `contact`
--
ALTER TABLE `contact`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=6;
--
-- AUTO_INCREMENT for table `deluxacroom`
--
ALTER TABLE `deluxacroom`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=25;
--
-- AUTO_INCREMENT for table `feedback`
--
ALTER TABLE `feedback`MODIFY `id` int(11) NOT NULL AUTO_INCREMENT,
AUTO_INCREMENT=7;

--
-- AUTO_INCREMENT for table `food`
--
ALTER TABLE `food`
MODIFY `id` int(255) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=29;

--
-- AUTO_INCREMENT for table `hall`
--
ALTER TABLE `hall`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;

--
-- AUTO_INCREMENT for table `hall_details`
--
ALTER TABLE `hall_details`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `nonac`
--
ALTER TABLE `nonac`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=11;

--
-- AUTO_INCREMENT for table `room booking`
--
ALTER TABLE `room booking`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=95; COMMIT;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */

CHAPTER-7

TESTING
Testing:

• The process of executing a system with the intent of finding an error.

• Testing is defined as the process in which defects are identified, isolated, subjected for
rectification and ensured that product is defect free in order to produce the quality
product and hence customer satisfaction.

• The process checks whether the actual software matches the expected requirements and
ensures the software is bug-free. The purpose of software testing is to identify the
errors, faults, or missing requirements in contrast to actual requirements.
• It mainly aims at measuring the specification, functionality, and performance of a
software program or application.
• Verification: It refers to the set of tasks that ensure that the software correctly
implements a specific function. It means “Are we building the product right?”.
• Validation: It refers to a different set of tasks that ensure that the software that has
been built is traceable to customer requirements. It means “Are we building the right
product?”.

• Functional testing: It is a type of software testing that validates the software

systems against the functional requirements. It is performed to check whether the

application is working as per the software’s functional requirements or not. Various

types of functional testing are Unit testing.Quality is defined as justification of the

requirements • Defect is nothing but deviation from the requirements •Defect is nothing

but bug.

• Testing --- The presence of bugs

• Testing can demonstrate the presence of bugs, but not their absence

• Debugging and Testing are not the same thing!


• Testing is a systematic attempt to break a program or the AUT

• Debugging is the art or method of uncovering why the script /program did not execute
properly.

7.1Testing Methodologies:

• Black box Testing: is the testing process in which tester can perform testing on an
application without having any internal structural knowledge of application.

Usually Test Engineers are involved in the black box testing.

• White box Testing: is the testing process in which tester can perform testing on an
application with having internal structural knowledge.

Usually The Developers are involved in white box testing.

• Gray Box Testing: is the process in which the combination of black box and white box
techniques are used.

7.2STLC (SOFTWARE TESTING LIFE CYCLE)

Test Planning:

1.Test Plan is defined as a strategic document which describes the procedure how to
perform various testing on the total application in the most efficient way. 2. Objective of
testing,
3. Areas that need to be tested,
4. Areas that should not be tested,
Test Development: 1. Test case Development (check list)
2. Test Procedure preparation.
(Description of the test cases)

Test Execution: 1. Implementation of test cases. Observing the result.


Result Analysis:
behavior of the 1. Expected value: is nothing but expected behavior of
application.
2. Actual value: is nothing but actual
application

Bug Tracing: Collect all the failed cases, prepare documents.


Reporting: Prepare document (status of the application)
7.3Types Of Testing:

• Smoke Testing: is the process of initial testing in which tester looks for the availability of
all the functionality of the application in order to perform detailed testing on them. (Main
check is for available forms)

• Sanity Testing: is a type of testing that is conducted on an application initially to check


for the proper behavior of an application that is to check all the functionality are available
before the detailed testing is conducted by on them.

• Regression Testing: is one of the best and important testing. Regression testing is the
process in which the functionality, which is already tested before, is once again tested
whenever some new change is added in order to check whether the existing functionality
remains same.

• Re-Testing: is the process in which testing is performed on some functionality which is


already tested before to make sure that the defects are reproducible and to rule out the
environments issues if at all any defects are there.

• Static Testing: is the testing, which is performed on an application when it is not been
executed. ex: GUI, Document Testing

• Dynamic Testing: is the testing which is performed on an application when it is being


executed. ex: Functional testing.

Alpha Testing: it is a type of user acceptance testing, which is conducted on an


application when it is just before released to the customer.
Beta-Testing: it is a type of UAT that is conducted on an application when it is released
to the customer, when deployed in to the real time environment and being accessed by the
real time users.
• Monkey Testing: is the process in which abnormal operations, beyond capacity
operations are done on the application to check the stability of it in spite of the users
abnormal behavior.

• Compatibility testing: it is the testing process in which usually the products are tested
on the environments with different combinations of databases
(application servers, browsers…etc) In order to check how far the product is compatible
with all these environments platform combination.

• Installation Testing: it is the process of testing in which the tester try to install or try to
deploy the module into the corresponding environment by following the guidelines
produced in the deployment document and check whether the installation is successful or
not.

• Adhoc Testing: Adhoc Testing is the process of testing in which unlike the formal testing
where in test case document is used, with out that test case document testing can be done
of an application, to cover that testing of the future which are not covered in that test case
document. Also it is intended to perform GUI testing which may involve the cosmotic
issues. 7.4TCD (Test Case Document):

Test Case Document Contains

• Test Scope (or) Test objective

• Test Scenario

• Test Procedure
• Test case

This is the sample test case document for the Acadamic details of student project:

Test scope:

Test coverage is provided for the screen ― Acadamic status entry‖ form of a student
module of university management system application
Areas of the application to be tested

Test Scenario:
• When the office personals use this screen for the marks entry, calculate the status details,
saving the information on student‘s basis and quit the form.

Test Procedure:

• The procedure for testing this screen is planned in such a way that the data entry, status
calculation functionality, saving and quitting operations are tested in terms of Gui testing,
Positive testing, Negative testing using the corresponding Gui test cases, Positive test
cases, Negative test cases respectively

7.5TEST PLAN IDENTIFIER

Hotel Management System


The main purpose of the test plan for the Hotel Management System is to discuss the
testing details of the use cases of the Hotel Management System. The software project
test plan also describes the objective, scope and approach of the software testing effort
for the Hotel Management System project. The test plan for the Hotel Management
System also indicates the personnel responsible for each task and also specifies the risks
associated with the test plan.

7.5.1OBJECTIVES

The main objectives of the test plan for the Hotel Management System are as follows:
To identify the features of the system that will be tested.
Test: A collection of one or more test cases.
• Test Item: A software item that is an objective of testing.
• Test Plan: A document describing the scope, approach, resources and schedule of the
intended testing activities.
• Test Summary Report: A document summarizing the testing activities and results.
• Testing: The process of analyzing a software item to detect the differences between the
existing and required conditions.

1 TEST ITEMS
This section of the test plan lists all the items of the Hotel Management System project
that will be tested:
• Login
• Generate bill
• Register

7.6LEVEL OF TESTING
This section of the test plan describes the overall approach for testing the Hotel
Management System project. The approach followed for testing the Hotel Management
System ensures that the major features of the project are adequately tested. The testing
would be carried out on the Hotel Management System while logging into the system as a
Hotel manager or a super admin of the system.

a)UNIT TESTING
The Unit Testing is a test that tests each single module of the software to check for
errors.
This is mainly done to discover errors in the code of the Hotel Management System. The
main goal of the unit testing would be to isolate each part of the program and to check the
correctness of the code. In the case of the Hotel Management System, all the forms and
the C# classes will be tested. There are many benefits for this unit testing:

• The unit testing facilitates change in the code.

• It allows testing to be done in a bottom up fashion.

At the same time, unit testing has some disadvantages such as, it might not identify each
and every error in the system.
b) INTEGRATION TESTING
In Integration Testing, the individual software modules are combined and tested as a
whole unit. The integration testing generally follows unit testing where each module is
tested as a separate unit. The main purpose of the integration testing is to test the
functional and performance requirements on the major items of the project.

All the modules of the project developed individually would be combined together and
tested as a whole system in the integration testing.

c) REGRESSION TESTING
The Regression Testing is generally done whenever modifications are made to the source
code of a project. The Regression Testing can also be defined as the process of testing
changes made to the computer program and also makes sure that the older programming
still works with the new changes.
So, before any new version of a software product is released, the old test cases for the
project will be run against the software with the changes made, to make sure that the old
functionalities of the project still work.

d) ACCEPTANCE TESTING
This testing is generally performed when the project is nearing its end. This test mainly
qualifies the project and decides if it will be accepted by the users of the system. The
users or the customers of the project are responsible for the test.

e) SYSTEM TESTING
The system testing is mainly done on the whole integrated system to make sure that the
project that has been developed meets all the requirements. The test cases for the system
testing will be the combination of unit and integration tests.

7.7TEST CASES

The following are the test cases for the Hotel Management System:

7.7.1TEST CASE 1 – USER LOGIN•Incorrect Input: Incorrect username.


• Pass Criteria: An appropriate message should be generated to indicate that an invalid
username has been typed.
• Correct Input: The correct input would be a valid username of the user and a correct
password associated with the username which he uses to log in.
7.7.2TEST CASE 2 – USER REGISTRATION
• Incorrect Input: Wrong format entered in the input fields for the registration page.
• Pass Criteria: An appropriate message should be generated to the user saying that he has
entered the wrong format in the specific input field.
• Correct Input: The correct input would a correct format entered by the user into the
input fields of the registration page.
• Pass Criteria: The pass criteria for Hotel Management System.

7.7.3TEST CASE 3 – USER REGISTRATION


• Incorrect Input: The data fields left out empty in the registration page.
• Pass Criteria: An error message should be generated to the user saying that he has to fill
out those fields in order to be registered into the system.
• Correct Input: The correct input in this case, would be that the customer would enter the
data in all the fields in the registration form.
• Pass Criteria: The pass criteria for the system would be that it accepts all the new user
details and then registers the user and helps him log into the system.

7.7.4TEST CASE 4 – GENERATE BILL


• Incorrect Input: Incorrect input in this case, would be incorrect search criteria entered or
incorrect format of data entered into the data entry fields of the generate bill page.

• Pass criteria: A message has to be generated to the user indicating the wrong entry that
he has made in the fields.
• Correct Input: A correct input would be entering the data into the data entry fields in a
correct format.

CHAPTER-8

OUTPUT SCREEN

• Home page
Registration page

• Admin Panel
Contact us
Listed ambulance

About Us
CHAPTER-9

DATABASE(MysqL)

MySQL is the world's most popular open source database software, with over 100 million
copies of its software downloaded or distributed throughout its history. With its superior
speed, reliability, and ease of use, MySQL has become the preferred choice for Web, Web
2.0, SaaS, ISV, Telecom companies and forward-thinking corporate IT Managers because
it eliminates the major problems associated with downtime, maintenance and
administration for modern, online applications.

Many of the world's largest and fastest-growing organizations use MySQL to save time
and money powering their high-volume Web sites, critical business systems, and packaged
software — including industry leaders such as Yahoo!, Alcatel-Lucent, Google, Nokia,
YouTube, Wikipedia, and Booking.com.

The flagship MySQL offering is MySQL Enterprise, a comprehensive set of


productiontested software, proactive monitoring tools, and premium support services
available in an affordable annual subscription.

MySQL is a key part of WAMP (Window, Apache, MySQL, PHP), the fast-growing open
source enterprise software stack. More and more companies are using WAMP as an
alternative to expensive proprietary software stacks because of its lower cost and freedom
from platform lock-in.

9.1Database Table : A database table is a structure that organises data


into rows and columns – forming a grid.

Tables are similar to a worksheets in spreadsheet applications. The rows run horizontally
and represent each record. The columns run vertically and represent a specific field. The
rows and columns intersect, forming a grid. The intersection of the rows and columns
defines each cell in the table.

The header cell of a column usually displays the name of the column. The column is
usually named to reflect the contents of each cell in that column.

The rows don’t typically have a header cell as such, but often the first column will contain
a unique identifier – such as an ID. This field is often assigned as the primary
key.Therefore, tables can reference records in other tables simply by referring to the
record’s primary key value. In this case, the tables have a relationship.
9.2Table Structure
CHAPTER-10
PROBLEM STATEMENT

The old manual system was suffering from a series of drawback. Since whole of the
system was to be maintained with hands the process of keeping, maintaining and
retrieving the information was very tedious and lengthy. The records were never used to be
a systematic order there used to be lots of difficulties in associating any particular
transaction with a particular context. If any information was to be found it was required to
go through the different registers, documents there would never exit anything like report
generation. There would always be unnecessary consumption of time while entering
records and retrieving records. Once the records were entered it was very difficult to
update these records.

FOLLOWING POINTS SHOULD BE CONSIDERED:

• Details of the information needed for each document and report. -The required frequency
and distribution for each document.

• Probable sources of information for each document and report.

ADVANTAGES AND DISADVANTAGES

Advantages:
• Sometimes it happens that the rooms get booked soon when one visits the place therefore
user can make advance booking using this system.

• It saves user time in search of rooms.

• The system is useful as it calculates an exact cost for requested number of days.

• It saves organization resources and expenses.

• This system is effective and saves time and cost of users. Easy registration.
Disadvantages:
• The booking process usually requires a customer identity which the system cannot detect.
•It requires a reliable internet connection.
Applications:
• This system can be applied in hotels.

• It can also be implemented in resorts.


CHAPTER-11

CONCLUSION

ONLINE AMBULANCE BOOKING SYSTEM is a Web-portal Development

The conclusion of this project is A Online ambulance Booking system is a computerized


management system. This system keeps the records of hardware assets besides software of
this organization. The proposed system will keep a track of Workers, Residents, Accounts
and generation of report regarding the present status. This project has GUI based software
that will help in storing, updating and retrieving the information through various user-
friendly menu-driven modules. The project
―Hotel Management System‖ is aimed to develop to maintain the day-to-day state of
admission/Vacation of Residents, List of Workers, payment details etc. Main objective of
this project is to provide solution for hotel to manage most their work using computerized
process. This software application will help admin to handle customers information, room
allocation details, payment details, billing information etc. Detailed explanation about
modules and design are provided in project documentation. The existing system is a
manually maintained system. All the Hotel records are to be maintained for the details of
each customers, Fee details, Room Allocation, Attendance etc. All these details are entered
and retrieved manually, because of this there are many disadvantages like Time
Consuming, updating process, inaccuracy of data. For avoiding this we introduced or
proposed a new system in proposed system the computerized version of the existing
system. provides easy and quick access over the data.

Company specializing in providing custom solutions for small businesses. We strive to


build solutions to your specific needs to get the job done right the first time. We pay
special attention to the ease of use and utilize the latest in technology.
This system is developed for the exclusively for the people. It provides facilities to the
user with user friendly modules with sub modules. This system is developed in
understandable approach which can be easier to the layman of the computers. This system
is developed totally GUI based and with smart links.
This project is designed to meet the requirements of Online Ambulance Booking. It has
been developed in JSP, Servlets keeping in mind the specifications of the system. For
designing the system, we have used simple data flow diagrams.
CHAPTER-12

REFRENCES

The following references have been used by me, during all the phases of the
project:
• http://www.tutorialspoint.com/csharp/index.htm
• http://msdn.microsoft.com/enHYPERLINK
"http://msdn.microsoft.com/enus/library/kx37x362(v=vs.80).aspx"us/
library/kx37x362(v=vs.80).aspx
• SQL Server 2012 download
-http://www.microsoft.com/enHYPERLINK"http://www.microsoft.com/eni
n/download/details.aspx?id=35575"in/download/details.aspx?id=35575
• http://www.c-sharpcorner.com/
http://en.wikibooks.org/wiki/C_Sharp_Programming

You might also like