Sre Document: From
Sre Document: From
SECTION: BSSE-3-A
DATE: 16/12/2022
Page | 1
Table of Contents
Executive Summary ................................................................................................. 4
1. Introduction ...................................................................................................... 5
1.2 Relevance to Course Modules .......................................................................... 5
1.3 Project Background....................................................................................... 6
1.4 Literature Review ......................................................................................... 7
1.5 Analysis from Literature Review ...................................................................... 7
1.6 Methodology and Software Lifecycle for This Project Methodology ........................ 7
2. Functional Requirements .................................................................................. 8
3. Non-Functional Requirements ............................................................................ 9
4. Diagrams ..................................................................................................... 10
1. Data Flow Diagram (DFD Level-1) ....................................................................... 10
2. Activity Diagram .............................................................................................. 11
1. Setup Personal information .................................................................................. 11
2. Add Emergency Contact ................................................................................... 12
3. Nearby Services .............................................................................................. 13
4. Maintain Emergency Information ........................................................................ 14
5. Trigger emergency Function ............................................................................... 15
6. Add Emergency Massage .................................................................................. 16
3. Sequence Diagrams ........................................................................................... 17
1. Setup Personal Information .................................................................................. 17
2. Add Emergency Contacts .................................................................................. 18
3. Add Emergency Message .................................................................................... 19
4. Nearby Services ................................................................................................ 20
5. Trigger emergency Function ................................................................................. 21
4. Class Diagram.................................................................................................. 22
5. Detailed Use Case .......................................................................................... 23
6.1.1. Purpose: ................................................................................................. 24
6.1.2. Project overview: ..................................................................................... 25
7. Test Plan Strategy ............................................................................................ 26
7.1. Unit Testing ............................................................................................... 26
7.2. Integration Testing ...................................................................................... 26
7.3. System Testing ........................................................................................... 26
8. Test Environment ............................................................................................. 27
8.1. Hardware .................................................................................................. 27
8.2. Software.................................................................................................... 27
9. Schedule.......................................................................................................... 27
11. Functions to be tested .................................................................................... 28
12. Functions not to be tested ............................................................................. 28
Page | 2
12.1. Test Case for Setup Personal Information................………………………………..28
12.9. Test case for Message Receive by Emergency Contacts, Helping Organizations…..36
Page | 3
Executive Summary
In present world a lot of emergency cases like rape, accident on road, trapped in fire and many more
situations where a person can require help from other people and some organizations that provide
help in emergency condition (Like Rescue 1122 ambulance). More dangerous situations occur when
person is unconscious or not able to take action against emergency for example in road accident a
person injured and not able to use their phone to call help to escape from emergency. Many different
applications provide the service to help in the emergency conditions but they have some sort of
limitations like working when a user interact with them and request for help. But these limitations
create difficulties for the victims to get help. This system will cover all remaining causes,
requirements, drawbacks, limitations and disadvantages. For example, if a victim required help in
emergency then system detect the emergency condition by fall detection of mobile and automatically
send helping SMS or Call (specified user) and current user location to listed contacts. User will list
their trusted helping contacts and also list if they required help from organizations (e.g. Rescue 1122).
The main feature of this system is detecting emergency condition automatically by fall detection, jerk
detection of mobile. User will select the one of these detection methods to detect the emergency
condition and set an emergency alarm with time interval to call help. User will also see the current
location and nearby hospital, ambulance service Etc. By implementing this system, we will help the
user easily, quickly and possibility of minimizing these situations in Pakistan.
Page | 4
1. Introduction
1.1 Brief
Emergency cases are spread over the whole country. Many applications are developed that are providing
help to persons that are in emergency conditions but there are some limitations like they give response
when user interact with these applications and ask for help. These limitations create difficulties for peoples
when they need help. Some time they are not able to interact with these applications for getting help in
some critical conditions like road accident, trapped in fire and many other such critical conditions. So
problem is that what people should done for getting help in such critical conditions. The system which
we are going to develop will cover all these limitations like causes, drawbacks. For example, if a person
required help in emergency condition then system detect the emergency condition by fall detection of
your device and automatically send helping massage with current location to listed contacts that are stored
in application by user. User will be entered phone numbers of their trusted people like family members,
relatives, and people that come in friend zone.
Moreover, the idea of the emergency mobile application that we develop in this project is quick, easy and
effective. For example, the user wants to operate the apps, they use fall detection in order to activate all
the function in the apps. This will make the user feel easy, effective and less burden when they need to
operate the apps, because fast and quick is the most important things during emergency situation. The
basic concept of the mobile application that we develop in this project will be like when the user clicks
and enter in first time the apps will pop-up a screen and ask user to register some personal information.
The personal information will include the name of the user, date of birth, identity number, personal contact
number, address and some personal message. Besides, the apps will need some emergency contact number
from user. The contact number can be the relative of the user or even the friend of the user. The apps use
sends all the information or even call the emergency contact during the emergency situation. To trigger
the emergency function of application user use, fall detection, jerk detection of phone.
Some of our Degree courses are Related to our project that are following:
Page | 5
Object-Oriented Programming We use Class and Other OOP concepts that uses the
Knowledge of OOP course.
Data Structure We use List, Array in our project that we study in
our Data structure.
Algorithms and Data Structure We use Algorithm technique for our project module
“fall detection” that we study in our Algorithms and
Data Structures course.
Human Computer Interaction We use Best techniques to make our project user
interface more user friendly.
Many different applications provide the service to help in the emergency conditions but they have some
sort of limitations like working when a user interact with them and request for help. But these limitations
create difficulties for the victims to get help. This system will cover all remaining causes, requirements,
drawbacks, limitations and disadvantages. For example, if a victim required help in emergency then
system detect the emergency condition by fall detection of mobile and automatically send helping SMS
or Call (specified user) and current user location to listed contacts. User will list their trusted helping
contacts and also list if they required help from organizations (e.g. Rescue 1122). The main feature of this
system is detecting emergency condition automatically by fall detection, jerk detection of mobile. User
will select the one of these detection methods to detect the emergency condition and set an emergency
alarm with time interval to call help. User will also see the current location and nearby hospital, ambulance
service Etc. By implementing this system, we will help the user easily, quickly and possibility of
minimizing these situations in Pakistan.
Page | 6
1.4 Literature Review
Table 2: Related System Analysis for Proposed Project
automatically by fall
detection, jerk detection
Seizario App Work only for UK, USA Work for Pakistan
1. Users don’t need to active or open this app when an emergency condition to get the help.
2. User will get the help at current location quickly
3. If user phone lost or fall, then user receive the location where their phone lost and find easily
4. Automatically Call and SMS
5. Easy to use
Page | 7
The software methodology that is used for this project is Iterative and Incremental development.
Iterative and incremental development is the method that uses to produce a good quality and reliable
system. This model allows the developer to increase the functionality of the system in the increment way.
Basically, this method has divided into two approaches which is iterative and incremental approach.
In iterative approach the author can choose to review or redesign part of the system and improve some of
the feature in order to make the system become better. For instance, every time the developer review or
revisit the system, some modification or improvement will be made in that iteration. By the way, the
developer can get user feedback in order to make quality improvement for the system.
In incremental approach the developer is develop and analyses the system many times at different portion,
each times the new feature of the system will be add incrementally until the Whole system is finish
developed. Besides, the system design, testing and implement also will perform incrementally until the
system is done. In the end of the development the author will check the system completion and make sure
it is fulfilling the user requirement.
Because the method allows the emergency mobile apps add new feature in anytime. the method allows
the developer to design and testing the emergency call mobile application in an incrementally way. For
example, during each iterative process some of the feature and the function of the system will be added
or modify
2. Functional Requirements
UR3: User will be entering their own emergency massage also if he/she will not agree to send app default
Message
UR4: Emergency function is trigger by fall, jerk detection and panic button.
UR5: User will send message to their emergency contacts and as well as helping organizations.
UR6: User will able to search the nearby hospitals and dispensaries, first aid center etc.
Page | 8
UR7: Accessing their current location and share with their emergency contacts and helping
organization in emergency condition.
UR8: User will able to see their emergency condition location history
3. Non-Functional Requirements
3.1.Reliability
Application will be installed on mobile devices; it does not need to Internet connection to run. It shall
be available in 24 hours a day, 7 days of a week on mobile device. Our application will deliver
messages to the intended recipient(s), and then it will check if it is not sent then it will resend the
message.
3.2.Supportability
Programming language used in this project is object-oriented so that the tasks are independent of each
other and therefore easy to maintain.
• The codes must be easy to understand and readable.
• All design architecture should be well documented.
3.3. Maintainability
If system detect wrong pattern of fall then it must return to main or abort the emergency condition.
3.4.Portability
This application is Android Based so it easily run on all type of android systems.
3.5. Extensibility
Easy to adapt the new kind of detection method if added to the system.
3.6.Response Time
Because this application is helping in emergency condition so it’s faster work and response to active
emergency condition function is also fast.
Page | 9
3.7. Availability
This system is life helping system so its available 24x7.
3.9.Reusability
We will use object-oriented language to code this project so its code component is reusable
4. Diagrams
1. Data Flow Diagram (DFD Level-1)
Page | 10
2. Activity Diagram
Page | 11
2. Add Emergency Contact
Page | 12
3. Nearby Services
Page | 13
4. Maintain Emergency Information
Page | 14
5. Trigger emergency Function
Page | 15
6. Add Emergency Massage
Page | 16
3. Sequence Diagrams
Page | 17
2. Add Emergency Contacts
Page | 18
3. Add Emergency Message
Page | 19
4. Nearby Services
Page | 20
5. Trigger emergency Function
Page | 1
4. Class Diagram
Class Diagram
Page | 2
5. Detailed Use Case
Page | 3
Table 3: Setup Personal Information
Use Case ID: UC-1
Use Case Setup Personal Information
Name:
Actors: Primary actor: User
Description: User accesses the system from the mobile, setup their personal
information that use in emergency condition.
Trigger: User wants to enter Personal information one time to access the
application.
Preconditions:
Post POST-1. User access to the application.
conditions: POST-2. User Personal information saved permanently in application.
Normal Flow: 1. User open the application interface.
2. Application displays the form of setup Personal information.
3. User enter Personal information
4. Application display the message “successfully Setup”.
5. The Main screen of application is displayed
Alternative No alternate flow.
Flow:
E1. if user already setup personal information then:
1. System will skip step 2,3,4 and reached at step 5
Exceptions: E2. If user enter wrong name, phone number or blood group then:
1. System will automatically display a error massage to show the
missing required valid information.
Business Rules User have to enter valid Name, phone number, blood group.
Assumptions: Assume that user not know their blood group correctly
Page | 4
E1. User will enter wrong number or number from outside the country
then:
1. System will not add the number and notify the user by message to
enter correct number.
2. If attempt to save number forcefully then system terminate this use
case.
E2. User will exceed the fixed number of adding contacts then:
Exceptions: 1. System will notify the user by message that contact list is full.
Business Number is must be valid and must from Pakistani Networks
Rules
Assumptions: Assume that user will enter PTCL number that is not allowed.
Page | 6
Normal Flow: 1. Emergency function is triggered by (Fall detection, jerk detection,
panic button).
2. System will detect the trigged function.
3. system will collect user added number for message or call form
system
Database and current location of user.
4. show an emergency alarming message for some time, and then
send
the message to the
contacts.
5. After call the helping organization if user select the call option.
But
first check Balance in
phone.
6. Call is placed.
Exceptions: E1. If user not add his own emergency message then: 1.
System will use default message write by system.
Page | 7
Table 8: Nearby Hospitals
Use Case ID: UC-6
Use Case Nearby Hospitals
Name:
Actors: Primary actor: User
Description: User accesses the system from the mobile, user will search the nearby
hospitals and dispensaries, first aid center etc., in case of minor
emergency.
Trigger: User indicates that he/she wants to search nearby hospitals and
dispensaries, first aid center etc.
Preconditions: PRE-1. Internet connection is required.
PRE-2. User current location is required.
Postconditions: POST-1. User can see the list of nearby hospitals.
POST-2. User will see this list on Map and see their current position.
Normal Flow: 1. User open the application
2. Application display the main screen of application.
3. User select the icon of search nearby.
4. Application access the user current location.
5. Application search the nearby hospitals according to the user
current location.
6. Application display the list of nearby hospitals.
7. Application map this nearby location on MAP and also show user
current location.
Alternative No alternate flow.
Flow:
E1. If user internet is not available then:
1. System will display message of unavailable of internet. E2.
Exceptions: If user location system is off then:
1. system will show message to on the location of the phone.
Business Rules 1. User must need internet connection to search nearby hospital.
2. User must have access to their current location.
Assumptions: Assume that user have not a internet connection.
Postconditions: POST-1. Emergency contacts and helping organizations get the user
information.
Normal Flow: 1. Helping Organization, Emergency contacts open the message
send by the user.
2. get the user information.
Alternative No alternate flow.
Flow:
Exceptions: E1. If user not share their information then:
1. message will contain only user location
Business Rules Helping Organization, Emergency contacts must be added in user
emergency contact list.
Assumptions: Assume that user not share information.
6.1. Introduction
llllllllllllll
6.1.1. Purpose:
This system will cover all remaining causes, requirements, drawbacks, limitations and disadvantages. For
example, if a victim required help in emergency then system detect the emergency condition by fall detection
of mobile and automatically send helping SMS or Call (specified user) and current user location to listed
contacts. User will list their trusted helping contacts and also list if they required help from organizations (e.g.
Rescue 1122). The main feature of this system is detecting emergency condition automatically by fall detection,
jerk detection of mobile. User will select the one of these detection methods to detect the emergency condition
and set an emergency alarm with time interval to call help. User will also see the current location and nearby
hospital, ambulance service Etc. By implementing this system, we will help the user easily, quickly and
possibility of minimizing these situations in Pakistan.
6.1.2. Project overview:
Many different applications provide the service to help in the emergency conditions but they have some sort
of limitations like working when a user interact with them and request for help. But these limitations create
difficulties for the victims to get help. This system will cover all remaining causes, requirements, drawbacks,
limitations and disadvantages.
For example, if a victim required help in emergency then system detect the emergency condition by fall
detection of mobile and automatically send helping SMS or Call (specified user) and current user location to
listed contacts. User will list their trusted helping contacts and also list if they required help from organizations
(e.g. Rescue 1122). The main feature of this system is detecting emergency condition automatically by fall
detection, jerk detection of mobile.
User will select the one of these detection methods to detect the emergency condition and set an emergency
alarm with time interval to call help. User will also see the current location and nearby hospital, ambulance
service Etc. By implementing this system, we will help the user easily, quickly and possibility of minimizing
these situations in Pakistan.
7. Test Plan Strategy
Unit Test consists of testing individual programs or subroutines as they are written instead of
testing the entire system after it has been written. The testing of the smaller building blocks is done
first and then these blocks are combined and tested. Unit testing means testing each function
independently to verify correct processing in a stand-alone environment. Testing each module
individually. Follows a white box testing. It is a testing method using which every independent
module is tested to determine if there are any issue.
Participants:
Zain ul Abideen Khan 211346
Ali Anwar 211969
Methodology:
1. Initial Unit Test will be conducted by the developers.
2. As the completed modules are received from the development department, the test team
will start the Unit Test on these modules.
Participants:
Zain ul Abideen Khan 211346
Ali Anwar 211969
Methodology:
1. Initial integration testing will be conduct by the developers
2. As the developer did the initial testing, the testing team test the all module that
integrated by the developers
Methodology:
1. After the all testing unit and integration testing we will give our project to third part
2. The third party test the whole project
3. After the checking from the third party the testing all most complete.
8. Test Environment
8.1. Hardware
Ram 512MB
Hard Disk Space 10 GB (min.)
8.2. Software
Resolution (for graphics)1366*768 (32bit)
Operating system: Windows XP/Windows 7/ Windows 8 Processor:
Pentium- II or higher
Browser Firefox/Google chrome/internet Explore 8/Safari
Apache server 1.8.2
SQLite database Server 5.5
IDE: Adobe Dreamweaver
9. Schedule
2nd. Meeting
When unit and integration testing will be completed. In this meeting all the
developers and testing team member will have gathered. In this meeting all the errors and
mistake will be discussed. If there are many mistakes, then we will design new test cases.
3rd. Meeting
After the all testing like system, unit etc. All the member of project team will be gathered and
discuss all the issue about the testing. In this session we shall check all the errors and their
reason. If something will be going wrong, then one time again we shall check the code of error.