Requirements Definition

advertisement
BuySafe
Requirements Specification
Version 0.0.1
BuySafe
Requirements Definition
Version:
0.0.1
Date: 2002-00-0
Revision History
Date
2002-02-11
Version
0.01
Description
Initial Draft
Author
Juraj Murgić
Page 2
BuySafe
Requirements Definition
Version:
0.0.1
Date: 2002-00-0
Table of Contents
1.
2.
Introduction
4
1.1
1.2
1.3
1.4
Purpose of this document
Intended Audience
Scope
Definitions and acronyms
1.4.1 Definitions
1.4.2 Acronyms and abbreviations
1.5 References
4
4
4
4
4
4
5
Requirements Description
5
2.1
2.2
2.3
2.4
3.
Introduction
General requirements
Specific requirements 1
Specific requirements 2
Use Case Models
3.1
Use case model 1
3.1.1 Use case “xy” (example: delete user)
3.1.2 Other use cases in use case diagram …
3.2 Use case model 2
4.
5.
8
8
Error! Bookmark not defined.
Error! Bookmark not defined.
10
10
Error! Bookmark not defined.
Error! Bookmark not defined.
Error! Bookmark not defined.
Requirements Definition
10
4.1
4.2
4.3
18
18
19
18
Requirement Group Definitions
Requirement Sources
Requirements definitions
4.3.1 Change Log
Future Development
21
Page 3
BuySafe
Requirements Definition
Version:
0.0.1
Date: 2002-00-0
1.
Introduction
1.1
Purpose of this document
The purpose of this document is to provide a detailed description of the functionalities the
application BuySafe should contain.
1.2
Intended Audience
This document shall be used in all phases of the project as a functionality guideline. Intended
audience of this project are:
 project supervisor
 project leader
 team members
 course staff
 project supervisor
1.3
Scope
This document gives an overview of the BuySafe project requirements. It will contain all the
information necessary for the definition of requirements, use cases that are going to be implemented
and functionalities that are planned to be developed in the future and are not part of this project.
1.4
Definitions and acronyms
1.4.1
Definitions
Keyword
BuySafe
Project Supervisor
Project Leader
Team Member
Database
Interface
Definitions
The name of the project
A person in charge of supervising the project
A person in charge of organizing the team and communicating
with the project supervisor
An active member of the team responsible for making the job done
An organized collection of data
A point of interaction between components
1.4.2 Acronyms and abbreviations
Acronym or
abbreviation
App
Definitions
Application
Page 4
BuySafe
Requirements Definition
1.5
Version:
0.0.1
Date: 2002-00-0
References
1.
2.
3.
http://www.scrum.org/
http://kunagi.org/
http://svnbook.red-bean.com/en/1.5/index.html
Page 5
BuySafe
Requirements Definition
Version:
0.0.1
Date: 2002-00-0
2.
Overall Description
To create an application that protects the costumers from harmful and potentially dangerous products by
informing them about the product contents and the company/nation that created the product. The application
will show the client the quality of the product by showing him a list of peer reviews and ratings (maybe even
suggest a cheaper product with the same quality). To make the application practical it will be run on android
smart phones with the ability to scan the barcode of the product that the costumer is intending to buy.
2.1
Product Perspective
1.
BuySafe is developed for Android smart phones only.
2.
The application will connect via the internet to an application server then a database server.
3.
Database server will host the data only without out any logical command or a procedural
decisions to increase the database efficiency and to reduce the chance of database corruption.
For
Who
BuySafe
That
Unlike
Our product
2.2
Savvy food and household product shopper who own an android phone.
Would like to be informed about the existence or the possible effect of food or household
product ingredients.
Is an application that will help you shop better health-wise.
Will enable you to make a faster and a better decision based on information and reviews.
Any other application out there with regard to the array of services it provides.
Is your new shopping mate.
Product Functions
This application will:
1. Read barcode.
2. Create and save a user profile.
3. Retrieve name of product and contents and other info.
4. Flag food and products with ingredients you wish to avoid according to profile.
5. Provide information about household chemicals, possible risks and how to handle.
6. Give you reviews so you know other people opinions.
7. Can make a product comparison according to the amount of certain ingredients. (optional)
8. Create a report of scanned products and send it to your email.(optional)
9.
2.3
User can browse for chemical ingredients effects.
User Characteristics
Target people for this product are:
1.
Parents with young children.
2.
Sick people.
3.
People on diet.
4.
Athletes.
5.
People who take care about the quality of the food that they buy
2.4
Constraints
1. Free and usable data sources that can be downloaded to our database. Data sources in
most cases aren’t free and contain only part of the information that is needed.
2. Response time of the application needs to be below 10 seconds.
Page 6
BuySafe
Requirements Definition
Version:
0.0.1
Date: 2002-00-0
3.
Organization and division of work in a distributed environment
4.
Informing team members about the work that needs to be done and the work that has
already been done.
5.
Having identical environments for all team members
6.
The application will use multiple data sources. As a consequence of multiple data
sources the data validity could be compromised.
Page 7
BuySafe
Requirements Definition
Version:
0.0.1
Date: 2002-00-0
3.
Requirements Description
3.1
Introduction
Goal of this project is to design an application that helps people decide what food products to buy by
providing them with information regarding the quality of the product. The application should be helpful
to people who have to take special care about the food that they buy like people who have small
children because food quality has a big impact on a child’s early growth and development also people
with allergies or illnesses and even people who try to eat healthier or are on some kind of diet. This
project can have a big impact on a lot of people and help them live healthier and better lives.
3.2
General requirements
3.2.1
Basic functionality
Basic goal of the application is to inform people about the product that they buy so that they buy
quality products. It will achieve this by informing the user about the product manufacturer, contents
and quality of the product. Product quality will be estimated by the product contents and user reviews
of the product. Product contents will be flagged if they are estimated to be dangerous or harmful to
people. It will estimate this by the user profile that contains user allergies and/or illnesses, data sources
that contain products that are estimated to be dangerous by state authorities and data sources that
contain product contents that are estimated to be harmful. The information it will display will come
from reliable data sources or even official sources like state authorities. Also it will have a tutorial that
will give users helpful tips on how to buy quality products by informing them what things to look out
for when buying.
3.2.2
Application interface
To make the application practical it will be run on android smart phones with the ability to scan the
barcode of the product that the costumer is intending to buy. Also to make the application easier to use
it will include the ability to search the products by name because not all products will have defined
barcodes. User interface will be simple and easy to use. It will contain a minimalistic and intuitive
interface.
3.2.3
Optional functionality
Optional functionality is intended to help people while they shop for food. Users will be able to scan
multiple products and the application will compare them and show the user which of the scanned
products has the best quality. Also users will be able to define a list of products at home that they
intend to buy like a shopping list. Users will have the ability to save products that they are not certain
about buying so that they can research them later. To help improve the functionality of the application
users will be able to flag products that they think are harmful or even dangerous that we missed.
3.3
Database
The database has to be optimized to enable fast searches by product barcode and name.
3.4
Data integrity
The data integrity will be set at the minimum because the application will use different data sources
and not all of the data sources will have all the necessary data so to insure an easy way to add data to
the application the data integrity has to be minimal.
3.5
Susceptibility to testing
It will be possible to test the application client, data and server layers separately.
Page 8
BuySafe
Requirements Definition
Version:
0.0.1
Date: 2002-00-0
3.6
Interoperability
The application will have an interface that will enable it to interact with the android client and
potentially other clients as well.
3.7
Reliability
The application will have to have a low probability of less than one percent that the application error
causes the wrong data to be set to the client.
3.8
Performance
The application will have a maximum response time of 10 sec.
3.9
Usability
The interface will ably by the three click rule.
3.10
Security
Because of the sensitive nature of the user profile data that consists of user allergies and illnesses no
recognizable user parameters like name and surname will be stored. It will store all user profiles by an
unrecognizable value like a random number.
3.11
Interface
The application will have an intuitive and user friendly interface that gives the user assurance that the
content provided in the application is true and comes from a reliable source.
3.12
Availability
The application will be available from 6:00 to 22:00 because that is when people do most of their
shopping.
3.13
Maintainability
The application will have an easy way to input information on new products without the need to restart
or stop the application from running.
Page 9
BuySafe
Requirements Definition
Version:
0.0.1
Date: 2002-00-0
4.
Use Cases
4.1
Use case model
4.1.1
Use case “user creates/edits profile”
Use case ID
Name
Goal
Participating
actors
Precondition
Main scenario
Exceptions
Extensions
Dependent UC
UC1
Create/Edit Profile
Create or edit personal user profile
Application user
Application started
1. User presses Create Profile /Edit Profile button
2. Application shows window for profile creation/modification with two
options
a. Enter personal data
b. Enter allergies or Illness
If the user closes the application, the application closes
UC2, UC3
Page 10
BuySafe
Requirements Definition
4.1.2
Use case “user enters personal data”
Use case ID
Name
Goal
Participating
actors
Precondition
Main scenario
Exceptions
Extensions
Dependent UC
4.1.3
UC2
Enter personal data
Fill in the form with personal data
Application user
User pressed the Create Profile button
1. User presses Enter Personal Data button
2. Application shows window with fields for personal data entry
a. Name (optional)
b. Last name (optional)
c. e-mail address (optional)
3. User saves the data
4. Application shows window for profile creation
If the user closes the application, the application closes.
If the user aborts the data entry, the application shows initial window for
profile creation.
None
Use case “user enters allergies or illnesses”
Use case ID
Name
Goal
Participating
actors
Precondition
Main scenario
Exceptions
Extensions
Dependent UC
4.1.4
Version:
0.0.1
Date: 2002-00-0
UC3
Enter allergy or illness
Fill in the form with allergies and illnesses
Application user
User pressed the Create Profile button
1. User presses Enter Allergy or Illness button
2. Application shows window with two fields for data entry
a. Allergy
b. Illness
3. User saves the data
4. Application shows window for profile creation
If the user closes the application, the application closes.
If the user aborts the data entry, the application shows initial window for
profile creation.
None
Use case “user searches for product”
Use case ID
Name
Goal
Participating
actors
UC4
Search product
Search for information about desired product
Application user
Page 11
BuySafe
Requirements Definition
Precondition
Main scenario
Exceptions
Extensions
Dependent UC
4.1.5
Exceptions
Extensions
Dependent UC
UC5, UC7
UC5
Search product by barcode
Search for information about desired product by barcode
Application user
Application started
1. User presses Search Product by barcode button
2. Application displays barcode scanner
If the user closes the application, application closes.
If the user aborts search, application displays main window.
UC6
Use case “user scans the product”
Use case ID
Name
Goal
Participating
actors
Precondition
Main scenario
Exceptions
Extensions
Dependent UC
4.1.7
Application started
1. User presses Search Product button
2. Application offers two options for product search
a. Search by barcode
b. Search by name
3. User chooses one option
If the user closes the application, the application closes.
If the user aborts search, application displays main window
Use case “user searches product by barcode”
Use case ID
Name
Goal
Participating
actors
Precondition
Main scenario
4.1.6
Version:
0.0.1
Date: 2002-00-0
UC6
Scan product
Search for information about desired product by barcode
Application user
User pressed the Search by barcode button
1. User scans the barcode
2. Application displays
a. Product name
b. Manufacturer name
c. Product content (flagged if harmful)
d. User ratings
If the user aborts search, application displays main window.
If product is not found, application offers user to scan another product.
If the user chooses to scan another product, application displays window with
barcode scanner.
UC9, UC10, UC11, UC12
Use case “user searches for product by name”
Use case ID
UC7
Page 12
BuySafe
Requirements Definition
Name
Goal
Participating
actors
Precondition
Main scenario
Exceptions
Extensions
Dependent UC
4.1.8
Search by name
Search for information about desired product by name
Application user
User pressed the Search by name button
1. Application displays empty field for product name
2. User enters full name of the product or part of the name
3. Application displays list with possible products
If the user aborts search, application displays main window.
If product is not found, application offers user to enter another product.
UC8
Use case “user chooses wanted product from list”
Use case ID
Name
Goal
Participating
actors
Precondition
Main scenario
Exceptions
Extensions
Dependent UC
4.1.9
Version:
0.0.1
Date: 2002-00-0
UC8
Choose product from list
Choose the desired product from list
Application user
User searched for product by name
1. User chooses the product from list
2. Application displays
a. Product name
b. Manufacturer name
c. Product content (flagged if harmful)
d. User ratings
If the user aborts search, application displays main window.
If the user chooses to search for another product, application displays window
with empty field for product name.
UC9, UC10, UC11, UC12
Use case “user adds product to shopping list”
Use case ID
Name
Goal
Participating
actors
Precondition
Main scenario
Exceptions
UC9
Add product to the shopping list
Add product to the shopping list
Application user
User successfully scanned product or selected product from list
1. User presses the button Add to shopping list
2. Application displays window with two fields
a. Product name
b. Additional info
3. User changes the name of the product (how it will be displayed in
shopping list) and additional info of that product (quantity to buy)
4. User saves the product to shopping list
5. Application displays message of success if product is successfully
added to the shopping list
If the user aborts to add product, application displays window with product
Page 13
BuySafe
Requirements Definition
Version:
0.0.1
Date: 2002-00-0
information.
Extensions
Dependent UC
4.1.10 Use case “user writes the review of the product”
Use case ID
Name
Goal
Participating
actors
Precondition
Main scenario
Exceptions
UC10
Write review
Write and store the personal opinion of the product
Application user
User successfully scanned product or selected product from list
1. User presses the button Write review
2. Application displays window with one text field
3. User writes the observations about the product
4. User sends the review
5. Application displays message of success if review is successfully sent
If the user aborts to write review, application displays window with product
information.
Extensions
Dependent UC
4.1.11 Use case “user rates the product”
Use case ID
Name
Goal
Participating
actors
Precondition
Main scenario
Exceptions
UC11
Rate product
Rate the product and store the grade
Application user
User successfully scanned the product or selected product from list
1. User presses the button Rate product
2. Application displays window with 5-star rating system with
explanation:
a. 1 star – poor quality
b. 2 stars – not so good quality
c. 3 stars – average/good quality
d. 4 stars – very good quality
e. 5 stars – excellent quality
3. User selects one grade
4. User sends the grade
5. Application displays message of success if grade is successfully sent
If the user aborts rating process, application displays window with product
information.
If the user doesn’t choose the grade and presses the button to send grade,
application displays a message of warning and doesn’t send empty report.
Extensions
Dependent UC
Page 14
BuySafe
Requirements Definition
Version:
0.0.1
Date: 2002-00-0
4.1.12 Use case “user flags the product”
Use case ID
Name
Goal
Participating
actors
Precondition
Main scenario
Exceptions
UC12
Flag product
Flag the product and send the report
Application user
User successfully scanned product or selected product from list
1. User presses the button Flag product
2. Application displays window with one input field
3. User writes the reason for flagging product
4. User sends the warning
5. Application displays message of success if report is successfully sent
If the user aborts flagging process, application displays window with product
information.
If the user flags a product and doesn’t write the report, application doesn’t
accept it and displays a message that user needs to fill the report.
Extensions
Dependent UC
4.1.13 Use case “user views shopping list”
Use case ID
Name
Goal
Participating
actors
Precondition
Main scenario
Exceptions
Extensions
Dependent UC
UC13
View Shopping list
Open the shopping list and view the products
Application user
Application started
1. User presses the button View shopping list
2. Application displays window with list of products
If the user closes the application, application closes.
If the user aborts list examination, application displays window with product
information.
UC16, UC17
4.1.14 Use case “user starts the process of adding the product to the shopping list”
Use case ID
Name
Goal
Participating
actors
Precondition
Main scenario
Exceptions
UC14
Add product
Start process of adding product to the shopping list
Application user
User opened shopping list
1. User presses the button Add new product
2. Application offers two options:
a. Search product by name
b. Enter product name
3. User chooses preferred option
If the user aborts addition of the new product, application displays a window
with shopping list.
Page 15
BuySafe
Requirements Definition
Extensions
Dependent UC
Version:
0.0.1
Date: 2002-00-0
UC15
4.1.15 Use case “user enters product name”
Use case ID
Name
Goal
Participating
actors
Precondition
Main scenario
Exceptions
UC15
Enter product name
Add product name to the shopping list
Application user
User chose to add new product to the shopping list
1. User chooses to enter product name
2. Application displays a window with input field for product name
3. User writes the name of the product
4. User presses the button to add a product
5. Application adds the product to the shopping list
If the user aborts addition of the new product, application displays a window
with shopping list.
Extensions
Dependent UC
4.1.16 Use case “user deletes the shopping list”
Use case ID
Name
Goal
Participating
actors
Precondition
Main scenario
Exceptions
UC16
Delete list
Delete all products from the shopping list
Application user
User opened shopping list
1. User presses the Delete list button
2. Application asks user to confirm list deletion
3. User presses the button to confirm deletion
4. Application deletes all products from the shopping list
If the user aborts deletion of the shopping list, application displays a window
with shopping list.
Extensions
Dependent UC
4.1.17 Use case “User deletes a product from shopping list”
Use case ID
Name
Goal
Participating
actors
Precondition
Main scenario
Exceptions
UC17
Delete product
Delete one or more products from the shopping list
Application user
User opened shopping list
1. User marks the wanted products
2. User presses the Delete product button
3. Application deletes marked products from the shopping list
If the user presses the Delete product button and no products are selected,
Page 16
BuySafe
Requirements Definition
Version:
0.0.1
Date: 2002-00-0
application displays warning message.
Extensions
Dependent UC
4.1.18 Use case “User exits the application”
Use case ID
Name
Goal
Participating
actors
Precondition
Main scenario
Exceptions
UC18
Exit application
Exit application
Application user
Application started
1. User presses the Exit button
2. Application closes
-
Extensions
Dependent UC
4.1.19 Use case “user searches all safe products”
Use case ID
Name
Goal
Participating
actors
Precondition
Main scenario
Exceptions
Extensions
Dependent UC
UC19
Safe products for user
Search and display all safe products based on user profile
Application user
User profile already created
1. User presses the button Products for me
2. Application displays list with possible products
If the user aborts search, application displays main window.
If no product is found, application displays a message and returns to main
screen.
UC8
4.1.20 Use case “recall and incident history”
Use case ID
Name
Goal
Participating
actors
Precondition
Main scenario
Exceptions
Extensions
Dependent UC
UC20
Recall and incident history
Helps users to check if there is recall or incident has been reported about the
product.
Application user
User has input the barcode or name of the product
1. User checks the “check recall and incident history” option
2. Application displays if there is related report
UC4, UC5, UC7
Page 17
BuySafe
Requirements Definition
5.
Requirements Definition
5.1
Requirement Group Definitions
Identification
SS
PH
UPH
SLH
AC
DBPH
DX
SM
5.2
Sys
Ds
Requirement Group
Rem.
Server Side
Product Handling
User Profile Handling
Shopping List Handling
Android Client
Database and Parser Handling
Data Exchange
Security Management
Requirement Sources
Source
Ctm
Version:
0.0.1
Date: 2002-00-0
Description
Rem.
Customer
Required as a consequence of system design (contractor’s
requirement)
Development team’s suggestion
Page 18
BuySafe
Requirements Definition
5.3
Version:
0.0.1
Date: 2002-00-0
Requirement definitions
Sta
tus
Prio
rity
SS-1
SS-2
I
I
1
3
PH-1
PH-2
PH-3
PH-4
PH-5
PH-6
PH-7
PH-8
PH-9
PH-10
I
I
I
I
I
I
I
I
I
I
1
1
1
1
1
1
1
1
2
2
SLH-1
SLH-2
SLH-3
SLH-4
SLH-5
SLH-6
I
I
I
I
I
I
2
2
2
2
2
2
UPH-1
UPH-2
UPH-3
I
I
I
1
1
1
AC-1
I
1
Identity
Reference
3.7
Description
Server Side
Handle exceptions and errors efficiently and act accordingly in the case of exceptions.
Schedule database updates from external sources.
Product Handling
UC4
UC5
UC6
UC7
UC8
UC10
UC11
UC12
UC19
UC20
Shopping List Handling
UC9
UC13
UC14
UC15
UC16
UC17
User Profile Handling
UC1
UC2
UC3
Android Client
Use android SDK 2.3 to ensure compatibility with maximum number of devices.
Page 19
Sour
ce
Sys
Ds
Ctm
Ctm
Ctm
Ctm
Ctm
Ctm
Ctm
Ctm
Ctm
Ctm
Ctm
Ctm
Ctm
Ctm
Ctm
Ctm
Ctm
Ctm
Sys
BuySafe
Requirements Definition
AC-2
AC-3
AC-3.1
AC-3.2
I
1
I
I
1
1
DBPH-1
DBPH-2
DBPH-2.1
DBPH-2.2
I
3
I
I
1
2
DX-1
DX-2
DX-2.1
DX-2.2
I
2
I
I
1
1
SM-1
SM-2
I
I
3
1
Version:
0.0.1
Date: 2002-00-0
3.11
3.3
3.8
3.10
XML-based layout to speed up the UI-design process.
UC18
Save data locally in device before exiting.
Close all connections.
Database and Parser Handling
Optimize database to enable faster searches.
Handle different data sources accordingly.
Connect to database for locally stored data.
Connect to external websites and parse data.
Data Exchange
Response time should be less than 10 seconds.
Send and receive data.
Send data as name-value-pairs, from android.
Send data as XML strings, from server, which can be parsed on android.
Security Management
Encrypt data before sending from android to server and vice versa.
No personal data of user sent to server.
Requirement status:
I = initial (this requirement has been identified at the beginning of the project),
D = dropped (this requirement has been deleted from the requirement definitions),
H = on hold (decision to be implemented or dropped will be made later),
A = additional (this requirement was introduced during the project course).
Page 20
Sys
Ds
Sys
Sys
Ds
Ds
Ds
Sys
Sys
Ds
Ctm
BuySafe
Requirements Definition
Version:
0.0.1
Date: 2002-00-0
5.3.1 Change Log
Table contains the list of changes to requirements from the main table, in chronological order.
Acti
on
Identity
Date
Comments
Requirement status:
D = dropped (this requirement has been deleted from the requirement definitions),
H = onhold (decision to be implemented or dropped will be made later),
A = added (this requirement was introduced during the project course).
R = resurrected (dropped or on hold requirement was reactivated)
6.
Future Development
6.1
General overview
Future development of this application should mainly focus on adding more information for a wider
range of products, since this application chooses food product as baseline. After covering a decent
amount of other products on the market future developers should consider adding support for other
mobile platforms. It should be also considered to add additional functionalities on top of the existing
ones.
6.2
Product range
Increasing product range should be the main focus of future development. Not only should the
number of products be increased, but future developers should also try to add different product types.
After covering a satisfying part of the market, it should be also considered to add support for other
countries and regions.
6.3
Additional platforms
BuySafe application will be developed for the Google Android platform as a starting point of this
project. In future projects developing an application for iOS and Windows Phone would increase the
number of potential customers.
6.4
Additional functionalities



Provide user with interface to report incidents
Incorporate “Wiser Buy”, for instance, show users the cheaper products but with
almost the same content or quality
Show side effect of the ingredients that a user input
Page 21
Download