Professional Documents
Culture Documents
Ambulance Dispatch System: Test Plan
Ambulance Dispatch System: Test Plan
Submitted to:
Submitted by:
1
Table of Contents
1 Introduction.................................................................................................................3
2 Relationship to other documents.................................................................................3
2.1 Relationship between Requirements Analysis Document and Test Plan.............3
2.2 Relationship between Software Architecture Document and Test Plan...............4
2.3 Relationship between Object Specification Document and Test Plan.................4
3 System Overview.........................................................................................................5
4 Features to be tested/not to be tested...........................................................................6
4.1 Features to be tested:...........................................................................................6
4.2 Features that cannot be tested..............................................................................7
5 Pass/Fail Criteria..........................................................................................................7
5.1 System level.........................................................................................................7
5.2 Integration testing................................................................................................7
5.3 Unit testing...........................................................................................................8
6 Approach......................................................................................................................8
6.1 Testing Levels......................................................................................................8
6.1.1 Unit Testing..................................................................................................8
6.1.2 System/Integration Testing..........................................................................8
6.1.3 Acceptance/Installation Testing:..................................................................9
6.2 Integration Testing Strategy.................................................................................9
6.3 UML class diagram for integration testing..........................................................9
7 Suspension and Resumption......................................................................................10
7.1 Suspension Criteria............................................................................................10
7.2 Resumption Requirements.................................................................................11
8 Testing materials (hardware/software requirements).................................................11
8.1 Hardware requirements......................................................................................11
8.2 Software Requirements......................................................................................11
8.3 Other Resources.................................................................................................11
9 Test Cases..................................................................................................................12
9.1 Unit Test Cases..................................................................................................12
9.2 Integration Test Cases........................................................................................15
9.3 Functional Test Cases........................................................................................17
10 Test Schedule.........................................................................................................20
10.1 Responsibilities..................................................................................................20
10.2 Staffing and training needs................................................................................20
10.3 Risks and contingencies.....................................................................................21
10.4 Testing schedule.................................................................................................21
2
1 Introduction
The purpose of this Test Plan document is to prescribe the scope, approach, resources,
and schedule of the testing activities for the Ambulance Dispatch System that is
characterized by a complementary conformance statement. The goal of the Test Plan is to
identify the items being tested, the features to be tested, the testing tasks to be performed,
the personnel responsible for each task, and the risks associated with the test plan.
The following Non Functional Requirements need to be tested using Performance Testing
Usability
Reliability Requirements
Performance Requirements
Support Requirements
Implementation Requirements
Interface Requirements
Packaging Requirements
3
2.2 Relationship between Software Architecture Document and Test
Plan
The packages recognized in Software Architecture Document are mapped to Unit Test
Cases listed in Test Cases as follows:
4
ADS_UT_07
ADS_UT_08
Ambulances
ADS_UT_09, ADS_UT_10,
Dispatcher
ADS_UT_11
ADS_UT_12, ADS_UT_13,
Supervisor
ADS_UT_14, ADS_UT_15
3 System Overview
This section, focusing on the structural aspects of testing, provides an overview of the
system in terms of the components that are tested during the unit test. The things that are
intended to be tested within the scope of this test plan are essentially, something that
needs to be developed. This can be developed from the software application inventories
as well as other sources of documentation and information.
UML diagrams help in developing the test architecture that copes with all the structural
aspects of testing. The test architecture contains test components and test contexts and
defines how they are related to the specified under test, the subsystem, or the component
under test (i.e., the tested software).
5
A test context represents a collection of test cases, associated with a test
configuration e that defines how the test cases are applied to the system under test
(SUT).
A test configuration may comprise a number of test components and describe how
they are associated with the tested component, the SUT.
An arbiter evaluates the test results and assigns an overall verdict to a test case.
Feasible verdicts for a test result are pass, inconclusive, fail and error.
Weather the operator and other users of the system can log in successfully after
authenticated with their respective username and password.
Once inside the system can the operator log an event successfully?
The system should be tested to change the details of the ambulance assigned for
an incident and in case of an ambulance accident the system users should be able
to assign the next available ambulance to the previous incident site.
Are the feeds from the ADS system reaching the ambulance system/crew
correctly?
We also need to check if once the incident is logged, the dispatcher dispatches an
ambulance and the supervisor updates the status of the incident report in timely
fashion and then can the same report be draw up again by the operator when a
user calls in to request the status of the incident.
6
4.2 Features that cannot be tested
This feature cannot be tested as we cannot simulate an actual server crash and try
and recover it.
This non-functional feature of performance under higher loads could not be tested
due to lack of time and resources to generate large volumes of incident report
requests
This could be tested, as the system could not be deployed across different
platforms for testing due to lack of time.
5 Pass/Fail Criteria
The test process will be complete (Pass) if a person is able to report an incident, which is
processed by the dispatcher and he is successfully able to locate an ambulance and
dispatch it to the accident spot with in 3 minutes. This is what we call as the pass criteria.
A problem in any place in the entire process is termed as “System failure” (Fail criteria).
However, a successful test is termed as a test which breaks the system. In other words, a
test is successful if it can make the system fail.
7
expected tasks then it is the success. If the sub-system fails to perform a task which is
intended to do then it is a failure. The whole concept of successful testing described in the
previous section is applicable here too.
6 Approach
8
errors only in the interfacing level and should not have any errors in the internal
functionality.
Out of three Integration testing strategy we have opted the bottom-up Integration testing
strategy for the following purposes,
The system we developed is an object-oriented system and has been decomposed
accordingly.
The Ambulance dispatch system also has to interact to the real world environment
variables like ambulance, driver, traffic, etc. it’s a real time system. The system
operates in real time and time is crucial.
Since we have planned to do the system testing along with the integration testing,
bottom up will help us move slowly from sub-parts (Bottom) to the entire system
(Up).
Since bottom-up testing is more intuitive and natural we follow it.
Bottom-up testing does not need any additional stuff like stubs.
It leads to good performance of testing and it is very simple to perform.
9
Incident
Layer 0
ADS controller
Layer 1
Request handler
Layer 2
Database Layer 3
First the database and the request handler interface is tested, then the ADS controller,
Request handler and database are integrated and tested. Finally as a system, the Incident
class, ADS controller, Request handler and database are integrated and tested. Kindly see
that the class’s attributes and methods are not shown in detail as this is a generic test plan.
The ADS Controller class is a prerequisite to the operation of all of the Services Classes
and must operate successfully in order for testing of any of the Service Classes to
proceed. Should any of the ADS Controller class primitives not perform as predicted, and
then the tests for interconnectivity shall be suspended.
10
The Incident, Dispatcher and Operator classes will be thoroughly tested. Should the
testing within the Service Class not perform as predicted, then the testing shall be
suspended.
Testing will resume from the beginning when the reasons for suspension of testing have
been determined, have been corrected, and new versions of the Application Entities have
been submitted to the testing group.
Testing within the Service Class will resume from the beginning of testing for that
Service Class when the reasons for suspension of testing have been determined and new
versions of the Application Entity in question have been submitted to the testing group. .
These test boxes run on Windows XP operating system. Netbeans was used to test
the java code.
No special software was needed to test the ADS system.
4 member of the tem were required as testers, 3 to test the ADS system and 1 to interact
with the developers and review other team activities.
11
9 Test Cases
Incident Class
12
Test case specification identifier ADS_UT_05
Test items isDuplicate()
Input specifications IncID
Output specifications -1 if not a duplicate, incID which is the duplicate
of this id
Environmental needs Windows XP, J2SE, JUnit
Special procedural requirements Load- Normal
Intercase dependencies -
Ambulances Class
Dispatcher Class
13
Output specifications IDList is filled with the Incident ids that needs to
be assigned.
Environmental needs Windows XP, J2SE, JUnit
Special procedural requirements Load- Normal
Intercase dependencies -
Supervisor Class
14
Special procedural requirements Load- Normal
Intercase dependencies -
15
Test case specification identifier ADS_UT_18
Test items createIncident()
Input specifications id,desc,location,address,units,status,injured,callerid,todaydate
Output specifications Returns true if a new incident was successfully added.
Otherwise returns false.
Environmental needs Windows XP, J2SE, JUnit
Special procedural requirements Load- Normal
Intercase dependencies -
16
3) The Dispatcher gets a message about the
incident and will dispatch an ambulance
Environmental needs Windows XP, J2SE
Special procedural requirements Load- Normal
Intercase dependencies -
17
Test case specification identifier ADS_IT_05
Test items Incident Management Subsystem, ADS Controller
Subsystem, Persistent Data Storage Subsystem
Input specifications Incident status report received
Output specifications The operator shall input the status report based on
scenario.
Environmental needs Windows XP, J2SE
Special procedural requirements Load- Normal
Intercase dependencies -
18
Test case specification identifier ADS_FT_02
Test items ADS, Incident Management, Persistent Data
Storage
Input specifications Caller has called about incident.
Output specifications Caller name, phone number, incident information
are available
Environmental needs Windows XP, J2SE
Special procedural requirements Load- Normal
Intercase dependencies -
19
Output specifications Ambulance sent to the incident location
Environmental needs Windows XP, J2SE
Special procedural requirements Load- Normal
Intercase dependencies -
20
Special procedural requirements Load- Normal
Intercase dependencies -
10 Test Schedule
10.1 Responsibilities
We as a team divided the responsibility among our self. Each person did the following
tasks:
It is preferred that there will be at least one of the testers assigned to the project for the
system/integration and unit testing phases of the project. This will require assignment of a
person in the full project from the beginning of the project to participate in reviews,
development, etc and three other members will be assigned more into testing. If a
separate test person is not available the test lead will assume this role.
In order to provide complete and proper testing the following areas need to be addressed
in terms of training.
The developers and tester(s) will need to be trained on the basic operations of the
Ambulance dispatch system. Prior to final acceptance of the project the operations
staff will also require complete training on the Ambulance dispatch process.
The ambulance driver will need training in using a GPS system.
The operator should be trained on how to use PC and other software related to the
ambulance dispatch system.
21
The operator is also trained on fast typing on the keyboard as it is a time crucial
project.
There are numerous issues to be addressed before installing the ADS as a defective
system will lead to loss of lives and eventually contains many potential risks. The various
risks should be considered and the system should be tested properly. The other things
which should also be checked are as follows:
The ambulance should be checked whether maintained properly. If it does not
drives good it impacts directly on the entire system.
The driver should be in a pink of health.
The operator should have good eye-sight and capacity to act under emergency
situations and not to panic.
The database should be functioning properly and should provide fast accesses.
The computer system which the operator use must be fast and efficient.
The telephone line must be from the best connection provider.
22