Professional Documents
Culture Documents
Accident Location Sharing
Accident Location Sharing
1.0 1.1Synopsis 1
1.2 Organization Profiles
5.0 Design 42
5.1Frontend design
5.2Backend design
7.0 Testing 72
8.0 Conclusion 76
10.0 References 80
CHAPTER 1
1.1 SYNOPSIS
Now a day it is seen that there are number of vehicle and accident causing due to it
is increasing day by day. Many people get injured and some of them even die due to
unavailability of emergency facilities. The emergency responders take much long time to
reach the spot which some time fail to save the lives. So to reduce this scenario there is
need to decrease the time between the accidents occurred and the emergency facility
provided to them. With the help of android phone which will detect the accident through
collision detection circuit and notification will be sent to the known people using GSM
which can be already noted and alert to hospital system and police station with alert
message along with the link of map using GPS which will address the exact place of
accident. Car accidents are a leading cause of hazards. Automated device of car accident
detection can save lives by decreasing the time required for information to reach
emergency responders. In conventional vehicular sensor systems for accident detection
that use to notify emergency responders immediately by utilizing sensors, such as
accelerometers and airbag, to detect car accidents. Sensors attached to the vehicle use a
built-in cellular radio to communicate with a monitoring centre that is responsible for
dispatching emergency responders in the event of an emergency. Car accident detection is
a new application for wireless mobile sensor networks. Recent advance technologies in
Smartphone are making it possible to detect car accidents in a more portable and cost
effective manner than conventional in-vehicle solutions.
1.2 ORGANIZATION PROFILES
ADMINISTRATION OFFICE
OFFICE ADDRESS:
No.17/595, 1st Floor Mannar Sarefoji Nagar 2nd Street,Opp.New Bus Stand,
Thanjavur-5.
CONTACT: 04362-228899, 9597754496.
E-MAIL: scionrd2009@gmail.com.
CHAPTER 2
SYSTEM ANALYSIS
2.1EXISTING SYSTEM
The Existing system is built using the AT89S52 micro controller from Atmel. This
micro controller ensures all the functionality of the SMS alert system. It also filters the
signals at the inputs. It not only alert the neighbours through its siren, but also
immediately sends a caution SMS to any four mobile numbers which are stored. This
numbers can be changed at any time by the user using a 3X4 key pad as he prefer. These
numbers are stored in EEPROM. This uses regulated 5V, 750mA power supply for its
working.7805 which is three terminal voltage regulators that regulate the voltage of
system. Full Wave Bridge rectifies the ac output of secondary of 230/12V step down
transformer.
Disadvantages
Advantages
1. Our application will use a common android phone which will immediately notify
the concerned people about the accident.
2. Our aim is to detect accident in any type of vehicle. Because of the android
platform, our system will be available at low cost and even low end vehicle
owners can afford to use it.
3. As the application will be released in Android Market the scope will extend to
users worldwide.
2.3 PROJECT DESCRIPTION
SYSTEM CONFIGURATION
Hardware Requirements
Hard disk : 1 TB
RAM : 4 GB
Processor : Core i3
Monitor : 15’’Color Monitor
Software Requirements
4.1SOFTWARE DESCRIPTION
Front end – HTML, CSS, JS
An overview:
HTML provides the basic structure of sites, which is enhanced and modified by
other technologies like CSS and JavaScript.
CSS is used to control presentation, formatting, and layout.
JavaScript is used to control the behavior of different elements.
Now, let's go over each one individually to help you understand the roles each plays on a
website and then we'll cover how they fit together. Let's start with good of' HTML.
HTML
HTML is at the core of every web page, regardless the complexity of a site or number of
technologies involved. It's an essential skill for any web professional. It's the starting
point for anyone learning how to create content for the web. And, luckily for us, it's
surprisingly easy to learn.
Markup languages work in the same way as you just did when you labeled those content
types, except they use code to do it -- specifically, they use HTML tags, also known as
"elements." These tags have pretty intuitive names: Header tags, paragraph tags, image
tags, and so on.
Every web page is made up of a bunch of these HTML tags denoting each type of content
on the page. Each type of content on the page is "wrapped" in, i.e. surrounded by, HTML
tags.
For example, the words you're reading right now are part of a paragraph. If I were coding
this web page from scratch (instead of using the WYSIWG editor in HubSpot's COS), I
would have started this paragraph with an opening paragraph tag: <p>. The "tag" part is
denoted by open brackets, and the letter "p" tells the computer that we're opening a
paragraph instead of some other type of content.
Once a tag has been opened, all of the content that follows is assumed to be part of that
tag until you "close" the tag. When the paragraph ends, I'd put a closing paragraph tag:
</p>. Notice that closing tags look exactly the same as opening tags, except there is a
forward slash after the left angle bracket. Here's an example:
<p>This is a paragraph.</p>
Using HTML, you can add headings, format paragraphs, control line breaks, make lists,
emphasize text, create special characters, insert images, create links, build tables, control
some styling, and much more.
To learn more about coding in HTML, I recommend checking out our guide to basic
HTML, and using the free classes and resources on codecademy -- but for now, let's move
on to CSS.
CSS
CSS stands for Cascading Style Sheets. This programming language dictates how the
HTML elements of a website should actually appear on the frontend of the page.
Whereas HTML was the basic structure of your website, CSS is what gives your entire
website its style. Those slick colors, interesting fonts, and background images? All thanks
to CSS. This language affects the entire mood and tone of a web page, making it an
incredibly powerful tool -- and an important skill for web developers to learn. It's also
what allows websites to adapt to different screen sizes and device types.
To show you what CSS does to a website, look at the following two screenshots. The first
screenshot is my colleague's blog post, but shown in Basic HTML, and the second
screenshot is that same blog post with HTML and CSS.
JavaScript
JavaScript is a more complicated language than HTML or CSS, and it wasn't released in
beta form until 1995. Nowadays, JavaScript is supported by all modern web browsers and
is used on almost every site on the web for more powerful and complex functionality.
avaScript is particularly useful for assigning new identities to existing website elements,
according to the decisions the user makes while visiting the page. For example, let's say
you're building a landing page with a form you'd like to generates leads from by capturing
information about a website visitor. You might have a "string" of JavaScript dedicated to
the user's first name. That string might look something like this:
Then, after the website visitor enters his or her first name -- and any other information
you require on the landing page -- and submits the form, this action updates the identity
of the initially undefined "Firstname" element in your code. Here's how you might thank
your website visitor by name in JavaScript:
para.textContent = 'Thanks, ' + First name + "! You can now download your ebook."
In the string of JavaScript above, the "First name" element has been assigned the first
name of the website visitor, and will therefore produce his or her actual first name on the
frontend of the webpage.
Given the ever-increasing number of connected devices, the IoT continues its path
of evolution, adding different layers to the data that is already being shared and
processed, and giving rise to sophisticated algorithms that result in improved levels of
automation. And because of the variety of “things” that can be connected to it, the IoT
has enabled diverse applications for individual users and entire industries alike.
4.3 DIAGRAMS
Architecture Diagram
Data Flow Diagram
A data-flow diagram (DFD) is a way of representing a flow of a data of
a process or a system. The DFD also provides information about the outputs and inputs of
each entity and the process itself. A data-flow diagram has no control flow; there are no
decision rules and no loops. Specific operations based on the data can be represented by
a flowchart.
Use Case Diagram
A use case diagram is a graphic depiction of the interaction among the elements of a
system. A Use case diagram is methodology used in system analysis to identify, clarify,
and organize system requirements .the actor, usually individuals involved with system
defined according to their roles.
Class Diagram
Class diagram is the type of static structure diagram that describe the structure of a
system by showing the systems classes, their attributes operations or methods under
relationship among the objects.
Activity Diagram
Activity diagram is another important diagram in UML to describe the dynamic
aspects of the system. Activity diagram is basically a flowchart to represent the flow from
one activity to another activity. The activity can be described as an operation of the
system. The control flow is drawn from one operation to another. This flow can be
sequential, branched, or concurrent. Activity diagrams deal with all type of flow control
by using different elements such as fork, join, etc.
E-R Diagram
An Entity Relationship (ER) Diagram is a type of flowchart that illustrates how
“entities” such as people, objects or concepts relate to each other within a system. ER
Diagrams are most often used to design or debug relational databases in the fields of
software engineering, business information systems, education and research.
CHAPTER 5
DESIGN
5.1 FRONTEND DESIGN
5.2BACKEND DESIGN
DB Design:
CHAPTER 6
SAMPLE CODING
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>User Signup</title>
<style>
body, html {
height:100%
</style>
</head>
<body >
<span class="sr-only"></span>
</div>
</div>
<form onsubmit="document.getElementById('loader').style.display='block'"
action="/register.php" method="POST" class="card-body p-4 text-center">
<label for="floatingInput">Name</label>
</div>
</div>
<label for="floatingInput">Address</label>
</div>
<label for="floatingInput">Email</label>
</div>
<label for="floatingInput">Password</label>
</div>
<hr>
</div>
</div>
</div>
</div>
</div>
</section>
<style>
.gradient-custom {
background: -webkit-linear-gradient(to right, rgba(106, 17, 203, 1), rgba(37, 117, 252,
1));
background: linear-gradient(to right, rgba(106, 17, 203, 1), rgba(37, 117, 252, 1))
</style>
<script>
if(urlParams.get('err')){
setTimeout(()=>{
document.getElementById("err").style.display="none"
}, 5000)
if(urlParams.get('msg')){
}
setTimeout(()=>{
document.getElementById("msg").style.display="none"
}, 5000)
</script>
<script src="/static/js/bootstrap.bundle.js"></script>
</body>
</html>
Register.php:
<?php
require("./admin/layout/db.php");
$name = $_POST["name"];
$email = $_POST["email"];
$password = $_POST["password"];
$address = $_POST["address"];
$mob = $_POST["mob"];
$conn->query($sql);
?>
Index.php:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>User Login</title>
<style>
body, html {
height:100%
</style>
</head>
<body >
<span class="sr-only"></span>
</div>
</div>
<form onsubmit="document.getElementById('loader').style.display='block'"
action="/login.php" method="POST" class="card-body p-4 text-center">
<label for="floatingInput">Email</label>
</div>
</div>
<hr>
</div>
</div>
</div>
</div>
</div>
</section>
<style>
.gradient-custom {
background: -webkit-linear-gradient(to right, rgba(106, 17, 203, 1), rgba(37, 117, 252,
1));
background: linear-gradient(to right, rgba(106, 17, 203, 1), rgba(37, 117, 252, 1))
</style>
<script>
setTimeout(()=>{
document.getElementById("err").style.display="none"
}, 5000)
if(urlParams.get('msg')){
setTimeout(()=>{
document.getElementById("msg").style.display="none"
}, 5000)
</script>
<script src="/static/js/bootstrap.bundle.js"></script>
</body>
</html>
Login.php
<?php
require("./admin/layout/db.php");
$email = $_POST["email"];
$password = $_POST["password"];
$result = $conn->query($sql);
if ($result->num_rows > 0) {
if ($row["password"]==$password) {
if(!isset($_SESSION))
session_start();
$_SESSION["id"] = $row["id"];
header("Location: /user/");
die();
} else {
die();
}
}
}else{
die();
?>
Api.php:
<?php
require("../admin/layout/db.php");
if(!isset($_SESSION))
session_start();
$id = $_SESSION["id"];
$lan=$_GET["lan"];
$lat=$_GET["lat"];
?>
user/index.php:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>User Home</title>
<style>
*{margin:0;padding:0;}
html,body{width:100%;height:100%}
</style>
</head>
<body>
<main style="width:100%;height:100%;display:flex;justify-content:center;align-items:
center;background-color:#2b74e2;">
</main>
<script>
function safe(){
document.getElementById("btn").style.display="none"
container = document.getElementById("container");
container.innerHTML=`
function trigger(){
document.getElementById("btn").style.display="none"
container = document.getElementById("container");
container.innerHTML=`
<section style="display:flex;flex-direction:column;align-items:center">
<div style="margin-top:40px">
</section>
var i =10;
function play() {
audio.play();
if(i>0){
time = document.getElementById("time")
time.innerHTML=i
i--;
play()
}else{
container = document.getElementById("container");
if (navigator.geolocation) {
navigator.geolocation.getCurrentPosition(showPosition);
function showPosition(position) {
fetch("/user/api.php?lat="+position.coords.latitude+"&lan="+position.coords.longitude)
.then((res)=>{
if(res.status==200){
console.log(res.body);
container.innerHTML=`
<section style="display:flex;flex-direction:column;align-items:center">
</section>
}else{
container.innerHTML=`
<section style="display:flex;flex-direction:column;align-items:center">
</section>
})
} else {
container.innerHTML=`
<section style="display:flex;flex-direction:column;align-items:center">
</section>
`
}
clearInterval(timer)
}, 1000);
</script>
</body>
</html>
admin/index.php:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Admin</title>
<script src='/static/js/bootstrap.js'></script>
<script src="https://unpkg.com/aos@2.3.1/dist/aos.js"></script>
</head>
<script>
if(urlParams.get('err')){
setTimeout(()=>{
document.getElementById("err").style.display="none"
}, 5000)
</script>
<br>
</div>
<br>
<center>
</center>
</form>
</div>
<style>
button{
color:white !important;
height:45px !important;
font-size:22px !important;
.form-control:focus , .form-control:active{
}
</style>
<script>
AOS.init();
</script>
</body>
</html>
admin/login.php:
<?php
session_start();
if ($_POST["email"]=="admin@gmail.com") {
if ($_POST["password"]=="admin") {
$_SESSION["lock"] = "xiny9387tdpq##*&B98oyo8B@*O&^PB^B$";
header("Location: /admin/home.php");
die();
} else {
die();
} else {
die();
}
?>
admin/logout.php:
<?php
session_start();
session_unset();
session_destroy();
header("Location: /admin/");
die();
?>
admin/home.php
<div style="display:flex;flex-direction:row;justify-content:space-between">
</div>
<br>
<div class="table-responsive">
<table class="table table-striped table-bordered">
<thead style="text-align:center">
<tr>
<th>#</th>
<th>Name</th>
<th>Mobile</th>
<th>Address</th>
<th>Location</th>
<th>Time</th>
</tr>
</thead>
<tbody>
<?php
while($row = $result->fetch_assoc()){
$uid=$row["uid"];
while($row1 = $result1->fetch_assoc()){
?>
<tr>
</tr>
<?php
}else{
?>
<tr>
</tr>
<?php
?>
</tbody>
</table>
</div>
<p style="text-align:center;line-height:3.5;font-size:16px">
<?php
for($page = 1; $page<= $number_of_page; $page++) {
if($page==$_GET['page']){
}else{
?>
</p>
<br>
</div>
<script>
if(urlParams.get('err')){
}
setTimeout(()=>{
document.getElementById("err").style.display="none"
}, 3000)
</script>
<script>
if(urlParams.get('msg')){
setTimeout(()=>{
document.getElementById("msg").style.display="none"
}, 3000)
</script>
admin/layout/db.php:
<?php
$servername = "localhost";
$username = "root";
$password = "trysomething";
$db_name = "accident";
if ($conn->connect_error) {
?>
admin/layout/Header.php
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Admin</title>
<script src="/static/js/moment.js"></script>
</head>
<body>
<div class="container">
Admin
</a>
<li class="nav-item">
</li>
<li class="nav-item">
</li>
</ul>
</div>
</div>
</nav>
admin/layout/Footer.php
<script src="/static/js/bootstrap.bundle.js"></script>
</body>
</html>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>User Signup</title>
<style>
body, html {
height:100%
</style>
</head>
<body >
<div id="loader" style="position:fixed;width:100%;height:100%;background-
color:rgba(106, 17, 203, 1);z-index: 10000;top:0px;display: none;">
<span class="sr-only"></span>
</div>
</div>
<form onsubmit="document.getElementById('loader').style.display='block'"
action="/register.php" method="POST" class="card-body p-4 text-center">
<label for="floatingInput">Name</label>
</div>
<label for="floatingInput">Address</label>
</div>
<label for="floatingInput">Email</label>
</div>
<label for="floatingInput">Password</label>
</div>
<hr>
</div>
</div>
</div>
</div>
</div>
</section>
<style>
.gradient-custom {
background: -webkit-linear-gradient(to right, rgba(106, 17, 203, 1), rgba(37, 117, 252,
1));
background: linear-gradient(to right, rgba(106, 17, 203, 1), rgba(37, 117, 252, 1))
</style>
<script>
if(urlParams.get('err')){
setTimeout(()=>{
document.getElementById("err").style.display="none"
}, 5000)
if(urlParams.get('msg')){
document.write("<div id='msg' style='position:fixed;bottom:30px;
right:30px;background-color:green;padding:10px;border-radius:10px;box-shadow:2px
2px 4px #aaa;color:white;font-weight:600'>"+urlParams.get('msg')+"</div>")
setTimeout(()=>{
document.getElementById("msg").style.display="none"
}, 5000)
</script>
<script src="/static/js/bootstrap.bundle.js"></script>
</body>
</html>
Register.php:
<?php
require("./admin/layout/db.php");
$name = $_POST["name"];
$email = $_POST["email"];
$password = $_POST["password"];
$address = $_POST["address"];
$mob = $_POST["mob"];
die();
?>
Index.php:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>User Login</title>
<style>
body, html {
height:100%
</style>
</head>
<body >
<div id="loader" style="position:fixed;width:100%;height:100%;background-
color:rgba(106, 17, 203, 1);z-index: 10000;top:0px;display: none;">
<span class="sr-only"></span>
</div>
</div>
<form onsubmit="document.getElementById('loader').style.display='block'"
action="/login.php" method="POST" class="card-body p-4 text-center">
<label for="floatingInput">Email</label>
</div>
<label for="floatingInput">Password</label>
</div>
<hr>
</div>
</div>
</div>
</div>
</div>
</section>
<style>
.gradient-custom {
background: -webkit-linear-gradient(to right, rgba(106, 17, 203, 1), rgba(37, 117, 252,
1));
background: linear-gradient(to right, rgba(106, 17, 203, 1), rgba(37, 117, 252, 1))
</style>
<script>
const queryString = window.location.search;
if(urlParams.get('err')){
setTimeout(()=>{
document.getElementById("err").style.display="none"
}, 5000)
if(urlParams.get('msg')){
setTimeout(()=>{
document.getElementById("msg").style.display="none"
}, 5000)
</script>
<script src="/static/js/bootstrap.bundle.js"></script>
</body>
</html>
Login.php
<?php
require("./admin/layout/db.php");
$email = $_POST["email"];
$password = $_POST["password"];
$result = $conn->query($sql);
if ($result->num_rows > 0) {
if ($row["password"]==$password) {
if(!isset($_SESSION))
session_start();
$_SESSION["id"] = $row["id"];
header("Location: /user/");
die();
} else {
}else{
die();
?>
Api.php:
<?php
require("../admin/layout/db.php");
if(!isset($_SESSION))
session_start();
$id = $_SESSION["id"];
$lan=$_GET["lan"];
$lat=$_GET["lat"];
$sql="INSERT INTO list(uid,lan,lat) VALUE('$id','$lan','$lat')";
$conn->query($sql);
?>
user/index.php:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>User Home</title>
<style>
*{margin:0;padding:0;}
html,body{width:100%;height:100%}
</style>
</head>
<body>
<main style="width:100%;height:100%;display:flex;justify-content:center;align-items:
center;background-color:#2b74e2;">
<section id="container" style="background-
color:#f0f0f0;height:50%;width:40%;color:#2b74e2;display: flex;align-items:
center;justify-content: center;border-radius: 10px;box-shadow: 0px 2px 6px #fff;">
</section>
</main>
<script>
function safe(){
document.getElementById("btn").style.display="none"
container = document.getElementById("container");
container.innerHTML=`
function trigger(){
document.getElementById("btn").style.display="none"
container = document.getElementById("container");
container.innerHTML=`
<section style="display:flex;flex-direction:column;align-items:center">
<h1 id="time" style="font-size:60px;color:red">10</h1>
<div style="margin-top:40px">
</div>
</section>
var i =10;
function play() {
audio.play();
if(i>0){
time = document.getElementById("time")
time.innerHTML=i
i--;
play()
}else{
container = document.getElementById("container");
if (navigator.geolocation) {
navigator.geolocation.getCurrentPosition(showPosition);
function showPosition(position) {
fetch("/user/api.php?lat="+position.coords.latitude+"&lan="+position.coords.longitude)
.then((res)=>{
if(res.status==200){
console.log(res.body);
container.innerHTML=`
<section style="display:flex;flex-direction:column;align-items:center">
</section>
}else{
container.innerHTML=`
<section style="display:flex;flex-direction:column;align-items:center">
</section>
})
} else {
container.innerHTML=`
<section style="display:flex;flex-direction:column;align-items:center">
<h1 id="time" style="font-size:60px;color:red">Geolocation is not supported by this
browser.</h1>
</section>
clearInterval(timer)
}, 1000);
</script>
</body>
</html>
admin/index.php:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Admin</title>
<script src="https://unpkg.com/aos@2.3.1/dist/aos.js"></script>
</head>
<script>
if(urlParams.get('err')){
setTimeout(()=>{
document.getElementById("err").style.display="none"
}, 5000)
</script>
<br>
<form style="margin: 0 20%" method="POST" action="/admin/login.php">
</div>
</div>
<br>
<center>
</center>
</form>
</div>
<style>
button{
color:white !important;
height:45px !important;
font-size:22px !important;
}
.form-control:focus , .form-control:active{
</style>
<script>
AOS.init();
</script>
</body>
</html>
admin/login.php:
<?php
session_start();
if ($_POST["email"]=="admin@gmail.com") {
if ($_POST["password"]=="admin") {
$_SESSION["lock"] = "xiny9387tdpq##*&B98oyo8B@*O&^PB^B$";
header("Location: /admin/home.php");
die();
} else {
die();
}
} else {
die();
?>
admin/logout.php:
<?php
session_start();
session_unset();
session_destroy();
header("Location: /admin/");
die();
?>
admin/home.php
<div style="display:flex;flex-direction:row;justify-content:space-between">
<h2 style="color:#2b74e2;font-weight:600">Accident List</h2>
</div>
<br>
<div class="table-responsive">
<thead style="text-align:center">
<tr>
<th>#</th>
<th>Name</th>
<th>Mobile</th>
<th>Address</th>
<th>Location</th>
<th>Time</th>
</tr>
</thead>
<tbody>
<?php
while($row = $result->fetch_assoc()){
$uid=$row["uid"];
while($row1 = $result1->fetch_assoc()){
?>
<tr>
</tr>
<?php
}else{
?>
<tr>
</tr>
<?php
?>
</tbody>
</table>
</div>
<p style="text-align:center;line-height:3.5;font-size:16px">
<?php
if($page==$_GET['page']){
}else{
?>
</p>
<br>
</div>
<script>
if(urlParams.get('err')){
document.write("<div id='err' style='position:fixed;bottom:30px; right:30px;background-
color:#FF0000;padding:10px;border-radius:10px;box-shadow:2px 2px 4px
#aaa;color:white;font-weight:600'>"+urlParams.get('err')+"</div>")
setTimeout(()=>{
document.getElementById("err").style.display="none"
}, 3000)
</script>
<script>
if(urlParams.get('msg')){
setTimeout(()=>{
document.getElementById("msg").style.display="none"
}, 3000)
</script>
<?php
$servername = "localhost";
$username = "root";
$password = "trysomething";
$db_name = "accident";
if ($conn->connect_error) {
?>
admin/layout/Header.php
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Admin</title>
<script src="/static/js/moment.js"></script>
</head>
<body>
<div class="container">
Admin
</a>
<li class="nav-item">
</li>
<li class="nav-item">
</ul>
</div>
</div>
</nav>
admin/layout/Footer.php
<script src="/static/js/bootstrap.bundle.js"></script>
</body>
</html>
CHAPTER 7
TESTING
SYSTEM TESTING
TYPES OF TESTS:
UNIT TESTING:
Unit testing involves the design of test cases that validate that the internal program
logic is functioning properly, and that program inputs produce valid outputs. All decision
branches and internal code flow should be validated. It is the testing of individual
software units of the application .it is done after the completion of an individual unit
before integration.
This is a structural testing, that relies on knowledge of its construction and is invasive.
Unit tests perform basic tests at component level and test a specific business process,
application, and/or system configuration. Unit tests ensure that each unique path of a
business process performs accurately to the documented specifications and contains
clearly defined inputs and expected results.
INTEGRATION TESTING:
FUNCTIONAL TEST:
Functional tests provide systematic demonstrations that functions tested are available
as specified by the business and technical requirements, system documentation, and user
manuals.
PERFORMANCE TESTING:
System testing ensures that the entire integrated software system meets requirements.
It tests a configuration to ensure known and predictable results. An example of system
testing is the configuration oriented system integration test. System testing is based on
process descriptions and flows, emphasizing pre-driven process links and integration
points.
Black Box Testing is testing the software without any knowledge of the inner workings,
structure or language of the module being tested. Black box tests, as most other kinds of
tests, must be written from a definitive source document, such as specification or
requirements document, such as specification or requirements document. It is a testing in
which the software under test is treated, as a black box .you cannot “see” into it. The test
provides inputs and responds to outputs without considering how the software works.
ACCEPTANCE TESTING:
User Acceptance Testing is a critical phase of any project and requires significant
participation by the end user. It also ensures that the system meets the functional
requirements.
Test Results: All the test cases mentioned above passed successfully. No defects
encountered
CHAPTER 8
CONCLUSION
An automatic alarm device for traffic accidents is designed. It can shorten the alarm
time greatly and locate the accident place accurately, realizing the automation of accident
detection and information transform. Eventually, it will save the rescuers form wasting
their time in search of medical facility. The project model system can automatically detect
corresponding accident spot and send related information to emergency responders. The
approach of this project will significantly prove to rescue the wounded lives and reduce
loss of lives and property of the Country and people to reduce road traffic hazards.
CHAPTER 9
FUTURE ENHANCEMENT
In future the work of instant messaging and further module development can be
done which will make our project fully automated and also more reliable software for the
event should be provided.
CHAPTER 10
REFERENCES