UNIX ProjectSpec FP2005 Ver1.1
-
Upload
tanujkarnik49 -
Category
Documents
-
view
239 -
download
0
Transcript of UNIX ProjectSpec FP2005 Ver1.1
7/30/2019 UNIX ProjectSpec FP2005 Ver1.1
http://slidepdf.com/reader/full/unix-projectspec-fp2005-ver11 1/20
Education and Research Department
Project Specification for UNIX
Aug 2005
Document No. Authorized By Ver. Revision Signature / Date
ER// CORP/CRS/OS04/006
Ravindra M P Ver.1.1
COMPANY CONFIDENTIAL
7/30/2019 UNIX ProjectSpec FP2005 Ver1.1
http://slidepdf.com/reader/full/unix-projectspec-fp2005-ver11 2/20
Infosys Document Revision History
Document Revision History
Ver.
Revision
Date Author(s) Reviewer(s) Description
1.00 JULY2004
Dr. Ramesh Babu,Ajit Ravindran Nair
Girish Aithal,Alok Tiwari,
Savita C
Initial Draft
1.1 AUG
2005
Ajit Ravindran Nair Made changes with
respect to new FP
Restructuring
ER// CORP/CRS/OS04/006 Version No. 1.1 ii
7/30/2019 UNIX ProjectSpec FP2005 Ver1.1
http://slidepdf.com/reader/full/unix-projectspec-fp2005-ver11 3/20
Infosys Table of Contents
Contents
Education and Research Department..............................................................................1
Project Specification for UNIX........................................................................................1
1 OVERVIEW....................................................................................................................1
2 BUSINESS REQUIREMENTS.....................................................................................2
3 OPERATING ENVIRONMENT REQUIREMENTS..................................................7
4 FUNCTIONAL REQUIREMENTS..............................................................................8
5 STANDARDS REQUIREMENTS...............................................................................10
6 USER REQUIREMENTS............................................................................................10
7 TEST PLAN..................................................................................................................11
8 GLOSSARY OF TERMS..............................................................................................17
ER// CORP/CRS/OS04/006 Version No. 1.1 iii
7/30/2019 UNIX ProjectSpec FP2005 Ver1.1
http://slidepdf.com/reader/full/unix-projectspec-fp2005-ver11 4/20
Infosys Project Specification for Unix
1 OVERVIEW
To develop a Department Maintenance system involving department and employeeinformation.
1.1 CURRENT SYSTEM
Manual entry using Ledger books.
1.1.1 Limitations of the Current System
a) The current system is not accessible to users present in different locations of the
organization.
b) The user needs to keep track of all employee related data.c) Searching for relevant information is time-consuming.
d) Updation is manual and often leads to inconsistency.
1.2 PROPOSED SYSTEM
The system to be built needs to overcome the above limitations.
1.2.1 Objectives of the Proposed Systema) The application should be accessible to the authorized users in different
locations.
b) Relevant data like Employee Number, etc need to be automatically generated,and should involve least human intervention.
c) Search should be faster and should be flexible with multiple options.
d) Data Consistency and Integrity should be maintained.
ER// CORP/CRS/OS04/006 Version No. 1.1 1
7/30/2019 UNIX ProjectSpec FP2005 Ver1.1
http://slidepdf.com/reader/full/unix-projectspec-fp2005-ver11 5/20
Infosys Project Specification for Unix
2 BUSINESS REQUIREMENTS
1. To maintain department codes.
2. To maintain Employee Master.3. To enquire Department details.
2.1 System Requirements
2.1.1 Scope & Boundary
a) The enquiry is to be based only on department code and not on employee code.
b) The system need to make use of simple plain file system. No databasetechnology usage.
2.1.2 Context Diagram
The Level 0 Context diagram for the proposed system is as follows:
ER// CORP/CRS/OS04/006 Version No. 1.1 2
Department
Maintenance
EmployeeData Entity
DepartmentData Entity
Display
Employee
Data Store
Department
Data Store
7/30/2019 UNIX ProjectSpec FP2005 Ver1.1
http://slidepdf.com/reader/full/unix-projectspec-fp2005-ver11 6/20
Infosys Project Specification for Unix
2.2 Business Events
2.2.1 External Events
While running the above application if the key ^C is hit, a message “ Do you really
want to quit (y/n)” should be displayed. If the user hits y or Y, control comes out of
the application. If any key other than Y,y N,n is entered message “Invalid Choice” isdisplayed.
2.3 Inputs and Outputs
Input Entities area) Department data
a. Department Code. (max 4 chars)
b. Department Name. (max 15 chars) b) Employee Data
a. Employee Id (max 4 chars)
b. Employee Name (max 25 chars)c. Department Code (max 4 chars) - generated by system.
d. Location (max 5 chars)
2.4 Relationships
Every employee in this system has a department code, which needs to be existent inthe department data store (dept file).
2.5 Precedence Relationships
The department creation must precede the employee creation in a particular
department.
ER// CORP/CRS/OS04/006 Version No. 1.1 3
7/30/2019 UNIX ProjectSpec FP2005 Ver1.1
http://slidepdf.com/reader/full/unix-projectspec-fp2005-ver11 7/20
Infosys Project Specification for Unix
2.6 Screens
Note for all screens:
• All the fields with ………are user inputs.• All fields with ________ are to be generated by the system.
• All error messages are to be displayed at the bottom of the screen.
• When an error message is displayed system should wait for a key press.
• All validations done should be case insensitive. For e.g. when you ask the user if he
wishes to continue, following inputs are valid: ‘y’ or ‘Y’ or ‘n’ or ‘N’. Any other
input is invalid.
• The display should be visually appealing.
(Note: You could use commands like “tput” for the same. Kindly go through the
documentation of “tput” using “man” command for further information.)
1) Department Maintenance Screen.
ER// CORP/CRS/OS04/006 Version No. 1.1 4
Department Maintenance Screen
1. To Add a Department
2. To Add an Employee
3. Enquiry
0. To quit
Enter your choice..
7/30/2019 UNIX ProjectSpec FP2005 Ver1.1
http://slidepdf.com/reader/full/unix-projectspec-fp2005-ver11 8/20
Infosys Project Specification for Unix
2) Add a Department :
3) Add an Employee
ER// CORP/CRS/OS04/006 Version No. 1.1 5
Add a Department
Enter the Department name : ………………………
The Department code is : ________________
Add another Department [y/n] ?
Add an Employee
Enter the name :……………………
Employee Id :________________
Enter the Department code :……………………
Department Name :_______________
Enter the Location :……………….
Add another employee [y/n] ?
7/30/2019 UNIX ProjectSpec FP2005 Ver1.1
http://slidepdf.com/reader/full/unix-projectspec-fp2005-ver11 9/20
Infosys Project Specification for Unix
4) Enquiry by Department :
ER// CORP/CRS/OS04/006 Version No. 1.1 6
Enquiry by Department
Enter the Department Code : ………………………..
Department Name : _________________
Details
Employee Id Name Location
____________ ________ ___________
____________ ________ ___________
:
:
____________ ________ ___________
Enquire by another Department [y/n]?
7/30/2019 UNIX ProjectSpec FP2005 Ver1.1
http://slidepdf.com/reader/full/unix-projectspec-fp2005-ver11 10/20
Infosys Project Specification for Unix
3 OPERATING ENVIRONMENT REQUIREMENTS
3.1 Hardware
Server-side
Hardware satisfying Unix Operating System requirements.Client-side
Dumb Unix terminal (could also be software simulated like Telnet, etc).
3.2 Software
Server: Any Unix flavour.Client: Any Unix client utilities like Telnet, Cygwin, etc.
3.3 Network
Connection over LAN, etc.
3.4 Communication
Typically TCP/IP based communication protocols.
ER// CORP/CRS/OS04/006 Version No. 1.1 7
7/30/2019 UNIX ProjectSpec FP2005 Ver1.1
http://slidepdf.com/reader/full/unix-projectspec-fp2005-ver11 11/20
Infosys Project Specification for Unix
4 FUNCTIONAL REQUIREMENTS
Department Maintenance:
This module will have one main function:a To Add department codes
Add Department:
2 fields: Department Code, Department Name
• The department code should start with 1000. Every new department added
should get a 1 up number for the department code.
• The department codes should be unique
• Department names cannot be duplicated. Comparison should be case insensitive.
• The department codes should be generated by the system.The add department screen should have provision for adding new departments as long as the user
wishes. When the user finishes adding new departments, the control should return to theDepartment Code Maintenance Screen.
Assume that the user always enters a name less than or equal to 15 characters. Novalidation is required for this field. A Record is inserted into dept.dat file with ‘:’
as the delimiter between the 2 fields xxxx:xxxxxxxxxxxxxxx
Employee Master
This module will have one main function:a To Add new Employees
Add New Employees:
4 fields: Employee Id, Employee name, Dept Code, Location.
•
The employee id should start with 1000. Every new employee added should get a1 up number for the employee id.
• The employee ids should be unique
• The employee ids should be generated by the system.
• When the control comes to accepting the department code, list the existing
department codes along with their names on the screen for selection of the proper
department code.
ER// CORP/CRS/OS04/006 Version No. 1.1 8
7/30/2019 UNIX ProjectSpec FP2005 Ver1.1
http://slidepdf.com/reader/full/unix-projectspec-fp2005-ver11 12/20
Infosys Project Specification for Unix
• Department Code must be a valid code (should be existing in Department
Maintenance file)
• Department name is displayed corresponding to the code entered. User should
not edit this field.
• The add employee screen should have provision for adding new employees as
long as the user wishes. When the user finishes adding new employees, thecontrol should return to the Department Code Maintenance Screen.
Assume that the user always enters a name less than or equal to 25 characters and a
location not exceeding 5 characters. No validation is required for the length of these2 fields. A Record is inserted into emp.dat file with : as the delimiter between the 4
fields
xxxx:xxxxxxxxxxxxx:xxxx:xxxxx
Department Enquiry
This module should have:a Enquiry on department code
Enquiry on Department Code:
• Department code should exist.
• If the department code does not exist, an error message should be displayed, and
system should prompt the user whether he wants to enquire on another
department.
• If the department code exists, the details of all the employees in that department
should be displayed in sorted order.
• The enquiry by department screen should have provision for enquiry on different
departments as long as the user wishes.
• When the user finishes enquiry by department, the control should return to the
Department Code Maintenance Screen.
• The result is displayed on the screen and also diverted to a file dept.rep.
ER// CORP/CRS/OS04/006 Version No. 1.1 9
7/30/2019 UNIX ProjectSpec FP2005 Ver1.1
http://slidepdf.com/reader/full/unix-projectspec-fp2005-ver11 13/20
Infosys Project Specification for Unix
5 STANDARDS REQUIREMENTSProper coding standards need to be followed to ensure readability.
6 USER REQUIREMENTS
6.1 Features Required
• Login should lead to creation of dept.dat and emp.dat files in the proper directory. No
change if the files already exist.
•
By typing mkworkdir all the user directories should get created. If already createdMessage “Dir exists” is displayed
ER// CORP/CRS/OS04/006 Version No. 1.1 10
7/30/2019 UNIX ProjectSpec FP2005 Ver1.1
http://slidepdf.com/reader/full/unix-projectspec-fp2005-ver11 14/20
Infosys Project Specification for Unix
7 TEST PLAN
7.1 Test Plan For Unix
Group Number : ______ Marks Obtained : ________
Emp No. : __________
____________
____________
____________
Max Marks :
Instructions : The project will be tested according to this test plan. You get full marks if the test
condition is satisfied else no marks. No explanations for getting the requirements wrong will beentertained.
Sq
No
Condition to be
tested
Expected Result Input Expected
output
Actual o/p
1 Navigation betweendifferent screens
Should work asdefined in the
project specs.
2 Entering a choice
which doesn’t exist
on the screen
Error message On the main
menu screen
enter choice as
5
Message “valid
choice should
be entered”
3 MaintenanceScreens
Program shouldnot go back tothe previous
menu unless the
user actually
wants to
ER// CORP/CRS/OS04/006 Version No. 1.1 11
7/30/2019 UNIX ProjectSpec FP2005 Ver1.1
http://slidepdf.com/reader/full/unix-projectspec-fp2005-ver11 15/20
Infosys Project Specification for Unix
Department Code
Maintenance
Choose the
menu to takeyou to
Department
Maintenance
screen4 Add Department
Screen
Add a new
department
department codeshould be
allocated
Choose theoption to add
departments
from the menu
Enter the
department as
Finance
Do you want to
enter another department :
yes
Departmentcode of 1000
Should be
allocated
Exit from the
departmentmaintenance
screen
On the mainmenu exit the
applicationRe enter theapplication go
to the
department
maintenancescreen and from
it enter add
departmentscreen.
Go back to the
main menu
5 ADD
EMPLOYEE
SCREEN
Select employee
master screen,
then go to the
add employeescreen
ER// CORP/CRS/OS04/006 Version No. 1.1 12
7/30/2019 UNIX ProjectSpec FP2005 Ver1.1
http://slidepdf.com/reader/full/unix-projectspec-fp2005-ver11 16/20
Infosys Project Specification for Unix
6 ADD EMPLOYEE
SCREEN
Add a new
employee
Employee ID
should beallocated
Enter name as
Vinay
Enter
departmentCode as 1000
Enter locationas keonics
Do you want toadd another employee : yes
Employee ID
1000should be
allocated
List of existing
validdepartments
with their codeand names
should be
displayed
Department as
Finance should
beDisplayed
7 ADD
EMPLOYEE
SCREEN
Add a new
employee
With name field
more than 25characters
Error message Enter a name
greater than 25
characters.Enter a valid
department
code and a valid
locationDo you want to
add another employee: yes
Message
“Name should
be less than 25characters”
8 ADD
EMPLOYEE
SCREEN
Add a newemployee
With location field
more than 15characters
Error message Enter a nameless than 25
characters.
Enter a locationgreater than 15
characters and a
validdepartment
code
Do you want to
add another
employee: yes
Message”Location
should be less
than 15characters”
ER// CORP/CRS/OS04/006 Version No. 1.1 13
7/30/2019 UNIX ProjectSpec FP2005 Ver1.1
http://slidepdf.com/reader/full/unix-projectspec-fp2005-ver11 17/20
Infosys Project Specification for Unix
9 ADD
EMPLOYEE
SCREEN
Add a new
employee
With invaliddepartment code
Error message Enter name as
sidharth andlocation as
keonics
With
departmentcode as 1008
Do you want to
add another
employee: yes
Message”Only
existingdepartment
code should be
given”
10 ADD
EMPLOYEE
SCREEN
Add a new
employee
Employee ID
should beallocated
Enter name as
Sidharth
Enter
departmentCode as 1001
Enter locationas keonics
Do you want toadd another
employee : yes
Employee ID
1001should be
allocated
List of existingdepartments
with there
names should be displayed
Department as
productionshould be
Displayed
11 ADD
EMPLOYEE
SCREEN
Add a new
employee
Employee ID
should beallocated
Enter name as
Abhishek
Enter
departmentCode as 1001
Employee ID
1002Should be
allocated
List of existingdepartments
with there
names should be displayed
Department as
production
should be
Displayed
ER// CORP/CRS/OS04/006 Version No. 1.1 14
7/30/2019 UNIX ProjectSpec FP2005 Ver1.1
http://slidepdf.com/reader/full/unix-projectspec-fp2005-ver11 18/20
Infosys Project Specification for Unix
Enter location
as keonics
Do you want to
add another
employee : yes
12 ADD
EMPLOYEE
SCREEN
Add a newemployee
Employee ID
should be
allocated
Enter name as
Abhinav
Enter
department
Code as 1000
Enter location
as keonics
Do you want to
add another
employee :
**12Do you want to
add another employee:
no
Employee ID
1003
Should be
allocatedList of existing
departments
with therenames should
be displayed
Department as
Finance should
beDisplayed
Message”Pleas
e enter ‘yes’
Or ‘no’”
Go back to the
main menu
screen
13 ENQUIRY BY
DEPARTMENT
SCREENEnquiry about
department
Relevant record
are shown
corresponding tothe department
Enter
department
code as 1000
Do you want tomake another
Dept Name
and the
correspondingemployee
details asentered above
should be
displayed.
ER// CORP/CRS/OS04/006 Version No. 1.1 15
7/30/2019 UNIX ProjectSpec FP2005 Ver1.1
http://slidepdf.com/reader/full/unix-projectspec-fp2005-ver11 19/20
Infosys Project Specification for Unix
enquiry on
department :yes
14 ENQUIRY BYDEPARTMENT
SCREENEnquiry about dept
codes which do notexist
Error message Enter department
code as 2000
Do you want to
make another
enquiry ondepartment : no
Message”Department
does not exist”
Go back to themain menu
ER// CORP/CRS/OS04/006 Version No. 1.1 16
7/30/2019 UNIX ProjectSpec FP2005 Ver1.1
http://slidepdf.com/reader/full/unix-projectspec-fp2005-ver11 20/20
Infosys Project Specification for Unix
8 GLOSSARY OF TERMS
Department
Department indicates a sub-division of an organization, which contains a group of people.
Department Code
Department Code indicates a unique number, assigned by corporate policy.
Department Name
Department Name indicates the name of a department , as assigned by corporate policy.
Employee
Employee refers to any person working in the organization.
Employee IdEmployee Id refers to a unique identification number allotted to the employee.
Employee Name
Employee Name refers to the name of the individual.
Location
Location refers to the place where the employee is located.
ER//CORP/CRS/OS04/006 V N 1 1 17