Presentation is loading. Please wait.

Presentation is loading. Please wait.

Software Requirements Specification (SRS) 0810. Complete description of external behavior of software system Complete description of external behavior.

Similar presentations


Presentation on theme: "Software Requirements Specification (SRS) 0810. Complete description of external behavior of software system Complete description of external behavior."— Presentation transcript:

1 Software Requirements Specification (SRS) 0810

2 Complete description of external behavior of software system Complete description of external behavior of software system Partitions universe into two sets Partitions universe into two sets  All systems satisfying user’s real needs  All system that do not satisfy user’s real needs As analysis yields understanding, sections of SRS are written. As analysis yields understanding, sections of SRS are written.

3 Why write an SRS?

4 SRS SRS is a complete yet concise description of the entire external interface of the system with its environment including other software, communication ports, hardware, and human users. SRS is a complete yet concise description of the entire external interface of the system with its environment including other software, communication ports, hardware, and human users. Includes: Includes:  Behavioral  Non-behavioral Davis, A., Software Requirements

5 Behavioral Behavioral: define what the system does; Behavioral: define what the system does;  Inputs  Outputs  transformation of inputs to outputs Davis, A., Software Requirements

6 Non-behavioral Non-behavioral: define the attributes of the system as it performs its job Non-behavioral: define the attributes of the system as it performs its job  Efficiency  Reliability  Security  Maintainability  Portability  Standards compliance Davis, A., Software Requirements

7 Attributes of a Well-Written SRS-1 Correct iff every requirement stated therein accurately represents something required of the system to be built. Correct iff every requirement stated therein accurately represents something required of the system to be built. Unambiguous iff every requirement stated therein has only one interpretation. Unambiguous iff every requirement stated therein has only one interpretation. Davis, A., Software Requirements

8 Attributes of a Well-Written SRS-2 Complete if it possesses the following: Complete if it possesses the following:  Everything that the software is suppose to do is included in the SRS;  Definitions of responses of software of all realizable classes of input data in all realizable classes of situations is included;  Think of a finite state machine: I X S => O X SI X S => O X S Must have a complete mappingMust have a complete mapping  All terms are defined and units of measures are provided; Davis, A., Software Requirements

9 Attributes of a Well-Written SRS-2.1 Complete if it possesses the following: Complete if it possesses the following: Davis, A., Software Requirements

10 Attributes of a Well-Written SRS-2.2 Violation of completeness is difficult to determine: something is missing. Violation of completeness is difficult to determine: something is missing.  Prototypes may help.  Example: If party A calls party B and party B is idle, B’s phone shall ring.  (What if it makes all the phones ring …)  If party A calls party B and party B is idle, B’s phone shall ring and no other phone shall ring. Davis, A., Software Requirements

11 Attributes of a Well-Written SRS-3 Verifiable (SRS) iff every requirement stated therein is verifiable. Verifiable (SRS) iff every requirement stated therein is verifiable. A requirement is verifiable iff there exists some finite, cost-effective process with which a person or machine can check that an actual, as-built software product meets the requirements. A requirement is verifiable iff there exists some finite, cost-effective process with which a person or machine can check that an actual, as-built software product meets the requirements.  Examples:  “The product shall have an easy-to-use interface.”  “The program shall not enter an infinite loop.” Avoid words such as “usually”, “generally,” or “often”. Avoid words such as “usually”, “generally,” or “often”.

12 Attributes of a Well-Written SRS-4 Consistent iff no requirement stated therein is in conflict with other preceding documents and no subset of requirements stated therein conflict. Consistent iff no requirement stated therein is in conflict with other preceding documents and no subset of requirements stated therein conflict.

13 Attributes of a Well-Written SRS-5 Traceable if the SRS is written in a manner that facilitates the referencing of each individual requirement stated therein. Traceable if the SRS is written in a manner that facilitates the referencing of each individual requirement stated therein. Traced if origin of requirements is clear. Traced if origin of requirements is clear.

14 SRS is a resource Organization is critical: Organization is critical:  Why organize it like this?  How do you find things in an SRS? Emphasize the section 3.2 layout: Emphasize the section 3.2 layout:  View system from different perspectives to capture requirements: functional is weakest of the bunch.

15 Outline of SRS Document DOCUMENT CONTROL 1.INTRODUCTION 2.GENERAL DESCRIPTION 3.EXTERNAL INTERFACE REQUIREMENTS 4.BEHAVIORAL REQUIREMENTS 5.NON-BEHAVIORAL REQUIREMENTS 6.OTHER REQUIREMENTS 7.APPENDIX A: ANALYSIS MODELS 8.APPENDIX B: ISSUES LIST

16 Introduction 1.1.PURPOSE AND SCOPE OF PRODUCT 1.2.INTENDED AUDIENCE 1.3.OVERVIEW 1.4.DEFINITIONS, ACRONYMS, AND ABBREVIATIONS 1.4.1.Definitions 1.4.2.Acronyms and Abbreviations 1.5.REFERENCES

17 General Description 2.1.PRODUCT PERSPECTIVE 2.2.PRODUCT FEATURES 2.3.USER CHARACTERISTICS 2.4.OPERATING ENVIRONMENT 2.5.GENERAL CONSTRAINTS 2.6.ASSUMPTIONS AND DEPENDENCIES

18 3. External Interface 3.1.USER INTERFACES 3.2.HARDWARE INTERFACES 3.3.SOFTWARE INTERFACES 3.4.COMMUNICATIONS INTERFACES

19 4.BEHAVIORAL REQUIREMENTS 4.1.SAME CLASS OF USER 4.2.RELATED REAL-WORLD OBJECTS 4.3.STIMULUS 4.4.RELATED FEATURES 4.5.FUNCTIONAL

20 5.NON-BEHAVIORAL REQUIREMENTS 5.1.PERFORMANCE REQUIREMENTS 5.2.SECURITY 5.3.QUALITATIVE REQUIREMENTS 5.3.1.Availability 5.3.2.Maintainability 5.3.3.Portability 5.3.4.Design and Implementation Constraints

21 The rest … 6.OTHER REQUIREMENTS 6.1.DATABASE 6.2.OPERATIONS 6.3.SITE ADAPTATION 7.APPENDIX A: ANALYSIS MODELS 8.APPENDIX B: ISSUES LIST

22 Groupings of requirements Organize the SRS for understanding Organize the SRS for understanding Group requirements related by Group requirements related by  Same external stimulus  Same system feature  Same system response  Same real world object  Same class of user  Same class of function

23 Same External Stimulus Put all the requirements related to some stimulus together. Put all the requirements related to some stimulus together. Example: Microwave oven: Group by Example: Microwave oven: Group by  All requirements related to the door open  All requirements related to the start command  All requirements related to timer inputs ...

24 Same System Feature Example: Telephone switching system Example: Telephone switching system Group by Group by  All requirements related to local calls  All requirements related to long distance calls  All requirements related to call forwarding ...

25 Same System Response Example: payroll system Example: payroll system  All requirements related to generating pay checks  All requirements related to generating employee reports  All requirements related to generating labor costs ...

26 Same Real World Object Example: Library system Example: Library system  All requirements related to books  All requirements related to borrowers  All requirements related to publishers ...

27 Same Class of User Example: ATM Example: ATM All requirements related to customers All requirements related to customers All requirements related to maintenance personnel All requirements related to maintenance personnel All requirements related to repair personnel All requirements related to repair personnel

28 Same class of Function (weakest, corresponds to unguided use of stepwise decomposition) (weakest, corresponds to unguided use of stepwise decomposition) Example: accounting system: group by Example: accounting system: group by  All requirements related to incoming data  All requirements related to user interface  All requirements related to report generation  All requirements related to maintaining data base

29 Best Way? Multilevel hierarchy where each level corresponds to a different criteria Multilevel hierarchy where each level corresponds to a different criteria  X. Detailed Requirements  X.1 Passenger X.1.1 calling the elevatorX.1.1 calling the elevator X.1.2 Requesting a floorX.1.2 Requesting a floor  X.2 maintenance Personnel X.2.1 inspecting ShaftX.2.1 inspecting Shaft......


Download ppt "Software Requirements Specification (SRS) 0810. Complete description of external behavior of software system Complete description of external behavior."

Similar presentations


Ads by Google