Docsity

Software development easy, Lecture notes of Software Development

Partial preview of the text

Download Software development easy and more Lecture notes Software Development in PDF only on Docsity!

TEAMFLY

Want to learn more?

We hope you enjoy this McGraw-Hill eBook! If you’d like more

information about this book, its author, or related books and web-

sites, please click here.

This page intentionally left blank.

Theory and Problems of

SOFTWARE

ENGINEERING

DAVID A. GUSTAFSON

Computing and Information Sciences Department
Kansas State University

Schaum’s Outline Series McGRAW-HILL New York Chicago San Francisco Lisbon London Madrid Mexico City Milan New Delhi San Juan Seoul Singapore Sydney Toronto

v

Software Engineering is not just surveys of techniques and terminology; it includes techniques that students must master. This book is designed for college students taking courses in software engineering at the undergraduate and graduate level. During my 25+ years of teaching software engineering at both the undergraduate and graduate level, I have realized the need for solved examples and for guidance to help students with these techniques. This book is intended to be used in conjunction with a textbook or lecture notes on software engineering. The background and motivation for diagrams, notations and techniques are not included. Included are rules about proper construction of diagrams. Instructions on using techniques are given. Rules are included about applying techniques. Most important, examples and solved problems are given for diagrams, notations, and techniques. Writing this book was not a solitary effort. Many people have influenced this book. In particular, I wish to acknowledge the following: Karen, my wonderful wife, for all of her support and help in creating this book. Without her help, this book would not have been done. Steve, who took time from his PhD studies to critique many of the chapters. My students, who provided the original inspiration for writing this material and who have read these chapters as individual readings, have found mistakes, and have offered suggestions. I would like to thank Ramon, who suggested this book, and the McGraw-Hill editorial staff for their help and suggestions. D AVID A. G USTAFSON

Copyright 2002 The McGraw-Hill Companies, Inc. Click Here for Terms of Use.

This page intentionally left blank.

CONTENTS (^) ix

  • CHAPTER 1 The Software Life Cycle
    • 1.1 Introduction
    • 1.2 Software Life Cycle Models
  • CHAPTER 2 Software Process and Other Models
    • 2.1 The Software Process Model
    • 2.2 Data Flow Diagrams
    • 2.3 Petri Net Models
    • 2.4 Object Models
    • 2.5 Use Case Diagrams
    • 2.6 Scenarios
    • 2.7 Sequence Diagrams
    • 2.8 Hierarchy Diagrams
    • 2.9 Control Flow Graphs
    • 2.10 State Diagrams
    • 2.11 Lattice Models
  • CHAPTER 3 Software Project Management
    • 3.1 Introduction
    • 3.2 Management Approaches
    • 3.3 TeamApproaches
    • 3.4 Critical Practices
    • 3.5 Capability Maturity Model
    • 3.6 Personal Software Process
    • 3.7 Earned Value Analysis
    • 3.8 Error Tracking
    • 3.9 Postmortem Reviews
  • CHAPTER 4 Software Project Planning
    • 4.1 Project Planning
    • 4.2 WBS–Work Breakdown Structure
      • Technique 4.3 PERT–ProgramEvaluation and Review
    • 4.4 Software Cost Estimation
  • CHAPTER 5 Software Metrics
    • 5.1 Introduction
    • 5.2 Software Measurement Theory
    • 5.3 Product Metrics
    • 5.4 Process Metrics
    • 5.5 The GQM Approach
  • CHAPTER 6 Risk Analysis and Management
    • 6.1 Introduction
    • 6.2 Risk Identification
    • 6.3 Risk Estimation
    • 6.4 Risk Exposure
    • 6.5 Risk Mitigation
    • 6.6 Risk Management Plans
  • CHAPTER 7 Software Quality Assurance
    • 7.1 Introduction
    • 7.2 Formal Inspections and Technical Reviews
    • 7.3 Software Reliability
    • 7.4 Statistical Quality Assurance
  • CHAPTER 8 Requirements
    • 8.1 Introduction
    • 8.2 Object Model
    • 8.3 Data Flow Modeling
    • 8.4 Behavioral Modeling
    • 8.5 Data Dictionary
    • 8.6 SystemDiagrams
      • Specification 8.7 IEEE Standard for Software Requirements
  • CHAPTER 9 Software Design
    • 9.1 Introduction
    • 9.2 Phases of the Design Process
    • 9.3 Design Concepts
    • 9.4 Measuring Cohesion
    • 9.5 Measuring Coupling
    • 9.6 Requirements Traceability
  • CHAPTER 10 Software Testing
    • 10.1 Introduction
    • 10.2 Software Testing Fundamentals
    • 10.3 Test Coverage Criterion
    • 10.4 Data Flow Testing
    • 10.5 RandomTesting
    • 10.6 Boundary Testing
  • CHAPTER 11 Object-Oriented Development
    • 11.1 Introduction
    • 11.2 Identifying Objects
    • 11.3 Identifying Associations
    • 11.4 Identifying Multiplicities
  • CHAPTER 12 Object-Oriented Metrics
    • 12.1 Introduction
    • 12.2 Metrics Suite for Object-Oriented Design
    • 12.3 The MOOD Metrics
  • CHAPTER 13 Object-Oriented Testing
    • 13.1 Introduction
    • 13.2 MM Testing
    • 13.3 Function Pair Coverage
  • CHAPTER 14 Formal Notations
    • 14.1 Introduction
    • 14.2 Formal Specifications
    • 14.3 Object Constraint Language (OCL)
  • INDEX

SCHAUM’S OUTLINE OF

Theory and Problems of

SOFTWARE

ENGINEERING

This page intentionally left blank.

Work-breakdown structure—Determining the subtasks necessary to develop the product.

1.1.1.4 Design—Determining how the software should provide the func- tionality. Architectural design—Designing the structure of the system. Interface design—Specifying the interfaces between the parts of the system. Detailed design—Designing the algorithms for the individual parts.

1.1.1.5 Implementation—Building the software.

1.1.1.6 Testing—Executing the software with data to help ensure that the software works correctly. Unit testing—Testing by the original developer. Integration testing—Testing during the integration of the soft- ware. System testing—Testing the software in an environment that matches the operational environment. Alpha testing—Testing by the customer at the developer’s site. Beta testing—Testing by the customer at the customer’s site. Acceptance testing—Testing to satisfy the purchaser. Regression testing—Saving tests from the previous version to ensure that the new version retains the previous capabilities.

1.1.1.7 Delivery—Providing the customer with an effective software solu- tion. Installation—Making the software available at the customer’s operational site. Training—Teaching the users to use the software. Help desk—Answering questions of the user.

1.1.1.8 Maintenance—Updating and improving the software to ensure continued usefulness.

1.1.2TYPICAL DOCUMENTS

1.1.2.1 Statement of work—Preliminary description of desired capabil- ities, often produced by the user.

1.1.2.2 Software requirements specification—Describes what the finished software will do. Object model—Shows main objects/classes.

2 CHAPTER 1^ The Software Life Cycle

Use case scenarios—Show sequences of possible behaviors from the user’s viewpoint.

1.1.2.3 Project schedule—Describes the order of tasks and estimates of time and effort necessary.

1.1.2.4 Software test plan—Describes how the software will be tested to ensure proper behavior. Acceptance tests—Tests designated by the customer to determine acceptability of the system.

1.1.2.5 Software design—Describes the structure of the software. Architectural design—The high-level structure with the intercon- nections. Detailed design—The design of low-level modules or objects.

1.1.2.6 Software quality assurance plan (SQA plan)—Describes the activ- ities that will be done to ensure quality.

1.1.2.7 User manual—Describes how to use the finished software.

1.1.2.8 Source code—The actual product code.

1.1.2.9 Test report—Describes what tests were done and how the system behaved.

1.1.2.10 Defect report—Describes dissatisfaction of the customer with specific behavior of the system; usually, these are software fail- ures or errors.

1.2Software Life Cycle Models

The four different software life cycle models presented in the following sections are the most common software life cycle models.

1.2.1 THE LINEAR SEQUENTIAL MODEL

This model, shown in Fig. 1-1, is also called the waterfall model, since the typical diagram looks like a series of cascades. First described by Royce in 1970, it was the first realization of a standard sequence of tasks. There are many versions of the waterfall model. Although the specific develop- ment tasks will occur in almost every development, there are many ways to divide them into phases. Note that in this version of the waterfall, the project planning

CHAPTER 1 The Software Life Cycle (^3)

Review Questions

  1. How does a phased life cycle model assist software management?
  2. What are two required characteristics of a milestone?
  3. For each of the following documents, indicate in which phase(s) of the software life cycle it is produced: final user manual, architectural design, SQA plan, module speci- fication, source code, statement of work, test plan, preliminary user manual, detailed design, cost estimate, project plan, test report, documentation.
  4. Order the following tasks in terms of the waterfall model: acceptance testing, project planning, unit testing, requirements review, cost estimating, high-level design, market analysis, low-level design, systems testing, design review, implementation, requirement specification.
  5. Draw a diagram that represents an iterative life cycle model.

Answers to Review Questions

  1. How does a phased life cycle model assist software management? The phased life cycle improves the visibility of the project. The project can be managed by using the phases as milestones. More detailed phases will allow closer monitoring of progress.
  2. What are the two required characteristics of a milestone? A milestone (1) must be related to progress in the software development and (2) must be obvious when it has been accomplished.
  3. Documents in the software life cycle:

Final user manual Implementation phase Architectural design Design phase SQA plan Project planning phase Module specification Design phase Source code Implementation phase Statement of work Feasibility phase Test plan Requirements phase Preliminary user manual Requirements phase Detailed design Design phase Cost estimate Project planning phase Project plan Project planning phase

CHAPTER 1 The Software Life Cycle (^5)

Test report Testing phase Documentation Implementation phase

  1. Order of tasks:

Market analysis Project planning, cost estimating, requirement specification (may be done concur- rently) Requirements review High-level design Low-level design Design review Implementation Unit testing Systems testing Acceptance testing

  1. Draw a diagram that represents an iterative life cycle model. See Fig. 1-2.

6 CHAPTER 1^ The Software Life Cycle

Req Design Imp Test Delivery

Time

Fig. 1-2. Iterative life cycle model.