1 / 69

1 PROCESS

1 PROCESS. Software Engineering Roadmap: Chapter 1 Focus. Identify corpor- ate practices - assess capability - specify standards - e.g. CMM level . Plan project. Analyze requirements. Maintain. Development phases. Integrate & test system. Design. Implement. Test units.

paul2
Download Presentation

1 PROCESS

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. 1PROCESS

  2. Software Engineering Roadmap: Chapter 1 Focus Identify corpor- ate practices - assess capability - specify standards - e.g. CMM level Plan project Analyze requirements Maintain Development phases Integrate & test system Design Implement Test units Adapted from Software Engineering: An Object-Oriented Perspective by Eric J. Braude (Wiley 2001), with permission.

  3. Software Engineering Roadmap: Chapter 1 Focus Plan configuration management - how to manage documents & code - document: SCMP Plan quality assurance - how to ensure quality - document: SQAP Identify corpor- ate practices - assess capability - specify standards - e.g. CMM level Plan verification & validation - verify the product satisfies requirements - validate each phase by showing it succeeded document: SVVP next chapter: Plan development process Plan project Analyze requirements Maintain Development phases Integrate & test system Design Implement Test units Adapted from Software Engineering: An Object-Oriented Perspective by Eric J. Braude (Wiley 2001), with permission.

  4. Chapter Learning Goals • Distinguish among development processes • Indicate benefits and disadvantages • Define software “quality” quantitatively • Institute collection • Understand documentation needed • Approximately one for each waterfall phase • Plan for configuration management Adapted from Software Engineering: An Object-Oriented Perspective by Eric J. Braude (Wiley 2001), with permission.

  5. 1. Introduction to the software engineering process

  6. Some Application Types • Stand-alone • residing on a single computer • not connected to other software or hardware • e.g., word processor • Embedded • part of unique application involving hardware • e.g., automobile controller • Realtime • functions must execute within small time limit • typically microseconds • e.g., radar software • Network • consist of parts interacting across a network • e.g., Web-based video game Adapted from Software Engineering: An Object-Oriented Perspective by Eric J. Braude (Wiley 2001), with permission.

  7. Typical Project Roadmap 1. Understand nature & scope of proposed product 2. Select the development process, and create a plan -- section 4 and chapter 2 3. Gather requirements -- chapters 3 and 4 4. Design and build the product -- chapters 5, 6, and 7 5. Test the product -- chapters 8 and 9 6. Deliver and maintain the product -- chapter 10 Adapted from Software Engineering: An Object-Oriented Perspective by Eric J. Braude (Wiley 2001), with permission.

  8. 2. Historical and contemporary perspectives on software engineeringprocess

  9. Structured Programming Function definition handleAccount(…) getDetailsFromUser(…) getAccount(…) doTransaction(…) …… Function definition getDetailsFromUser (…) getName(…) …... Function definition getAccount(…) getFirstName(…) …... …... TOP DOWN Adapted from Software Engineering: An Object-Oriented Perspective by Eric J. Braude (Wiley 2001), with permission.

  10. Object Orientation Real world concepts Skljkvjkvjfkavjafkk saovjsdvjfvkfjvkfjk Skljkvjkvjfkavjafkk saovjsdvjfvkfjvkfjk Skljkvjkvjfkavjafkk saovjsdvjfvkfjvkfjk Skljkvjkvjfkavjafkk saovjsdvjfvkfjvkfjk Direct correspondence Customer getFirstName() Transaction execute() Account getDetails() Software design entities Graphics reproduced with permission from Corel. Adapted from Software Engineering: An Object-Oriented Perspective by Eric J. Braude (Wiley 2001), with permission.

  11. The COM Idea Computation interface Identification interface getName() setName() getSSN() setSSN() account COM object Asset interface Adapted from Software Engineering: An Object-Oriented Perspective by Eric J. Braude (Wiley 2001), with permission.

  12. 3. Expectations for process, project, product and people

  13. Five Key Expectations (Humphrey) 1. Predetermine quantitative quality goals Used for process development Part of the project 2. Accumulate data for subsequent use 3. Keep all work visible 4. A. Design only against requirements B. Program only against designs C. Test only against requirements and designs Aspect of the product Influenced by people 5. Measure quality

  14. Artifacts and Roles USDP term Symbol & examples Artifacts: the entities that software engineering deals with. Document Component -- physical (source code etc.) Model -- a view of the application (design etc.) Workers: responsibilities allocated to people (roles). Worker Worker instance (e.g., Joe Smith) Adapted from Software Engineering: An Object-Oriented Perspective by Eric J. Braude (Wiley 2001), with permission.

  15. 4.Process alternatives

  16. The Waterfall Model Requirements analysis Produces … specification (text) Design ... diagrams & text Implementation ... code & comments Integration ... entire code Test ... test report, including defect descriptions Adapted from Software Engineering: An Object-Oriented Perspective by Eric J. Braude (Wiley 2001), with permission.

  17. More Detailed Waterfall Version Concept analysis Analysis Design Implementation & unit testing Integration System testing Maintenance Adapted from Software Engineering: An Object-Oriented Perspective by Eric J. Braude (Wiley 2001), with permission.

  18. Spiral Development Product: requirements specifications Product:class models + Step n: Analyze requirements Step n+1: Design complete targeted requirements Step n+2: Implement Step n+3: Test Product: code + Product: test results + Adapted from Software Engineering: An Object-Oriented Perspective by Eric J. Braude (Wiley 2001), with permission.

  19. Incremental Development Iteration No. 1 2 3 867 868 Update SPMP1 Test whole Integrate Update Test documentation Test units Update source code Implement Design Update SDD2 Analyze requirements Update SRS3 1 Software Project Mangement Plan (chapter 2); 2 Software Design Document (chapter 5); 3 Software Requirements Specification (chapter 3); Adapted from Software Engineering: An Object-Oriented Perspective by Eric J. Braude (Wiley 2001), with permission.

  20. The Unified Software Development Process: Classification of Iterations • Inception iterations: preliminary interaction with stakeholders • primarily customer • users • financial backers etc. • Elaboration iterations : finalization of what’s wanted and needed; set architecture baseline • Construction iterations : results in initial operational capability • Transition iterations : completes product release Adapted from Software Engineering: An Object-Oriented Perspective by Eric J. Braude (Wiley 2001), with permission.

  21. USDP vs. Standard Terminology ½ (Booch, Jacobson & Rumbaugh) Classification of iterations Individual iteration Inception Elaboration Construction Transition Iter. #k Prelim. iterations Iter. #1 Iter. #n Iter. #n+1 Iter. #m Iter. #m+1 .. … ….. Requirements Analysis USDP calls these “core workflows” (Classically called “phases”) Design Implemen- tation Test

  22. USDP vs. Standard Terminology 2 of 2 USDP Terminology Classical Terminology Requirements Analysis Requirements analysis Design Implementation Test Design Implementation Integration Test Adapted from Software Engineering: An Object-Oriented Perspective by Eric J. Braude (Wiley 2001), with permission.

  23. Unified Process Matrix Jacobson et al: USDP Inception Elaboration Construction Transition Prelim. iterations Iter. #1 Iter. #n Iter. #n+1 Iter. #m Iter. #m+1 Iter. #k .. ….. ….. Requirements Analysis Amount of effort expended on the requirements phase during the first Construction iteration Design Implemen- tation Test

  24. The Six USDP Models (Views of the Application) Use-case model Test model Analysis model Implementation model Design model Deployment model Graphics reproduced with permission from Corel.

  25. Identify the Process You Will Use One way to ... 1. Decide which of waterfall, spiral, and incremental processes is appropriate. Usually a spiral for a semester project. Combining parts is OK e.g. start with spiral, end with incremental 2. Decide how many iterations. Usually two for a semester project (there are many artifacts to coordinate at the end of each iteration). Three provides lots of practice -- but this is a challenge; make the first increment as minor as possible Three promotes the collection and use of metric data -- use metric data collected from each iteration on next. 3. Rough out a weekly schedule. Coordinate with course assignments. (The next chapter discusses scheduling.) Adapted from Software Engineering: An Object-Oriented Perspective by Eric J. Braude (Wiley 2001), with permission.

  26. 5. Documentation

  27. Undocumented Code int a( int i, char c ) { if( c== “m” ) if( i< 1000 ) return 0; else if( i< 10000 ) return 500; else return 1200; else return 1300; } Adapted from Software Engineering: An Object-Oriented Perspective by Eric J. Braude (Wiley 2001), with permission.

  28. Somewhat Documented Code int tax( int anEarning, char aStatus ) { if( aStatus == ‘m’ ) if( anEarning < 1000 ) return 0; // no tax for married, < $1000 else if( anEarning < 10000 ) return 500; // married, $1000-$10000 else return 1200; // married, >=$10000 // If not “married”, apply single tax rate of $1300 regardless else return 1300; } Adapted from Software Engineering: An Object-Oriented Perspective by Eric J. Braude (Wiley 2001), with permission.

  29. Documented Code /** * This method implements requirement 4.3: * “State tax effective 9/1/98 -12/31/99” * @author Eric J. Braude * @version 2.3.4 (8/6/98) * @param anEarning: earnings 9/1/98 thru 12/31/99 * @param aStatus: ‘m’ signifies “married” (anything * else designates unmarried) */ int tax( int anEarning, char aStatus ) { Adapted from Software Engineering: An Object-Oriented Perspective by Eric J. Braude (Wiley 2001), with permission.

  30. SVVP software validation & verification plan Project Documentation Verification & validation SQAP software quality assurance plan Quality assurance SCMP software configuration management plan Configuration SPMP software project management plan Project status Adapted from Software Engineering: An Object-Oriented Perspective by Eric J. Braude (Wiley 2001), with permission.

  31. Project Documentation SVVP software validation & verification plan Verification & validation SQAP software quality assurance plan Quality assurance SCMP software configuration management plan Configuration SPMP software project management plan Project status Customer-oriented SRS software requirements specifications Requirements Developer-oriented Architecture SDD software design document Design Detailed design Code Source Code STD software test documention Testing User’s manual Operation Adapted from Software Engineering: An Object-Oriented Perspective by Eric J. Braude (Wiley 2001), with permission.

  32. One way to ... Identify Your Documentation Needs 1. Document the way documents & code are accessed • otherwise, chaos results • “Software Configuration Management Plan*” -- section tbd 2. Specify who will do what, and when they will do it • “Software Project Management Plan*” -- chapter 2 3. Document what is to be implemented • for yourself, your customer, and your team • “Software Requirements Specification*” -- chapters 3 and 4 4. Document the design of the application • i.e., prior to programming • “Software Design Document*” -- chapters 5 and 6 5. Write and document code • the “code base” -- chapter 7 6. Document the tests you perform • so that they can be re-run, extended etc. • “Software Test Documentation*” -- chapters 8 and 9 * the IEEE standard, which can be used to organize this documentation Adapted from Software Engineering: An Object-Oriented Perspective by Eric J. Braude (Wiley 2001), with permission.

  33. 6. Quality

  34. 1. Specify how to manage project documents 2. Identify process QAInvolvement 2. QA reviews process for conformance to organizational policy 1. QA Develops and/or reviews configuration management plans, standards ... QA 3. QA develops and/or reviews provision for QA activities 4. QA reviews, inspects & tests 5. QA reviews, inspects & tests 5. Deliver & main- tain the product 4. Design and build 3. Plan Adapted from Software Engineering: An Object-Oriented Perspective by Eric J. Braude (Wiley 2001), with permission.

  35. Principle of Inspection AUTHORS CAN USUALLY REPAIR DEFECTS THAT THEY RECOGNIZE Adapted from Software Engineering: An Object-Oriented Perspective by Eric J. Braude (Wiley 2001), with permission.

  36. Principle of Inspection AUTHORS CAN USUALLY REPAIR DEFECTS THAT THEY RECOGNIZE COROLLARY: Help authors to recognize defects before they deliver their work. COROLLARY: Have their peers seek defects. Adapted from Software Engineering: An Object-Oriented Perspective by Eric J. Braude (Wiley 2001), with permission.

  37. Nominal process 1. PLANNING OVERVIEW Non-nominal process 2. PREPARATION CAUSAL ANALYSIS 3. INSPECTION 4. REWORK Inspection Process & Example Times 5. FOLLOW-UP 6. IMPROVE PROCESS Adapted from Software Engineering: An Object-Oriented Perspective by Eric J. Braude (Wiley 2001), with permission.

  38. Time/Costs per 100 LoC*-- one company’s estimates Planning 1 hr  (1 person) [ Overview 1 hr  (3-5) ] Preparation 1 hr  (2-4 people) Inspection meeting 1 hr  (3-5 people) Rework 1 hr  (1 person) [ Analysis 1 hr  (3-5) ] Total: approx. 7 - 21 person-hours * lines of non-commented code Adapted from Software Engineering: An Object-Oriented Perspective by Eric J. Braude (Wiley 2001), with permission.

  39. Hours Per Defect: One estimate If defect found ... … at inspection … at integration time time Hours to .. .. detect 0.7 to 2 0.2 to 10 .. repair 0.3 to 1.2 9+ Total1.0 to 3.29.2 to 19+ Adapted from Software Engineering: An Object-Oriented Perspective by Eric J. Braude (Wiley 2001), with permission.

  40. Prepare For & Conduct Inspections One way to ... 1. Build inspections into the project schedule • plan to inspect all phases, starting with requirements • allow for preparation (time consuming!) & meeting time 2. Prepare for collection of inspection data • include # defects per work unit (e.g., KLOC), time spent • develop forms: include description, severity and type • decide who, where, how to store and use the metric data • default: appoint a single person to be responsible • failure to decide usually results in discarding the data 3. Assign roles to participants • Three adequate (author; moderator/recorder; reader) • Two far better than none (author; inspector) 4. Ensure every participant prepares • bring defects pre-entered on forms to inspection meeting Adapted from Software Engineering: An Object-Oriented Perspective by Eric J. Braude (Wiley 2001), with permission.

  41. IEEE 730-1989 Software Quality Assurance Plans Table of Contents 1. Purpose 2. Referenced documents 3. Management 3.1 Organization 3.2 Tasks 3.3 Responsibilities 4. Documentation 4.1 Purpose 4.2 Minimum documen- tation requirements 4.3 Other 5. Standards, practices, conventions and metrics 5.1 Purpose 5.2 Content

  42. IEEE 730-1989 Software Quality Assurance Plans Table of Contents 1. Purpose 2. Referenced documents 3. Management 3.1 Organization 3.2 Tasks 3.3 Responsibilities 4. Documentation 4.1 Purpose 4.2 Minimum documen- tation requirements 4.3 Other 5. Standards, practices, conventions and metrics 5.1 Purpose 5.2 Content 6. Reviews and audits 6.1 Purpose 6.2 Minimum requirements 6.2.1 Software requirements review 6.2.2 Preliminary design review 6.2.3 Critical design review 6.2.4 SVVP review 6.2.5 Functional audit 6.2.6 Physical audit 6.2.7 In-process audits 6.2.8 Managerial review 6.2.9 SCMP review 6.2.10 Post mortem review 6.3 Other 7. - 15. -- see next chapter

  43. Meaning of “V&V” (Boehm) Verification: are we buildingthe thing right? Validation: are we buildingthe right thing? Graphics reproduced with permission from Corel.

  44. IEEE 1012-1986 Software Verification & validation Plans Table of Contents (Reaffirmed 1992) 1. Purpose 2. Referenced documents 3. Definitions 4. V&V overview 4.1 Organization 4.2 Master schedule 4.3 Resource summary 4.4 Responsibilities 4.5 Tools, techniques & methodologies 5. Lifecycle V&V 5.1 Management of V&V 5.2 Concept phase V&V 5.3 Requirements phase V&V 5.4 Design phase V&V 5.5 Implementation phase V&V

  45. IEEE 1012-1986 Software Verification & validation Plans Table of Contents (Reaffirmed 1992) 1. Purpose 2. Referenced documents 3. Definitions 4. V&V overview 4.1 Organization 4.2 Master schedule 4.3 Resource summary 4.4 Responsibilities 4.5 Tools, techniques & methodologies 5. Lifecycle V&V 5.1 Management of V&V 5.2 Concept phase V&V 5.3 Requirements phase V&V 5.4 Design phase V&V 5.5 Implementation phase V&V 5.3 Test phase V&V 5.4 Installation & checkout phase V&V 5.5 Operation & maintenance phase V&V 6. Software V&V reporting 6.1 Required reports 6.2 Optional reports 7. V&V administrative procedures 7.1 Anomaly reporting & resolution 7.2 Task iteration policy 7.3 Deviation policy 7.4 Standards, practices & conventions

  46. Produce a Quality Product One way to ... 1. Quantify your quality goals minimum: number of defects per KLOC team: # defective requirements; # classesmissing from design; # defects in testing; # defectsfound in operation. personal: apply # defects to code, compile, unit test separately 2. Build inspections and reviews into the schedule (see scheduling, next chapter) follow the inspection procedure (see figure 1.27 on page ??) 3. Document your quality goals and procedures use a documentation standard to avoid missing issues SQAP (see case study for example); If time allows: SVVP Adapted from Software Engineering: An Object-Oriented Perspective by Eric J. Braude (Wiley 2001), with permission.

  47. 7. Documentation management

  48. Example of Hyperlinked Documentation Set (with Dynamic Content shown) STP software test plan Test results* SPMP software project management plan Project status* SRS software requirements specifications Direction of hyperlink Updates* References to all other documents Source Code SCMP software configuration management plan SDD software design document Configuration* Updates* *Dynamic component Adapted from Software Engineering: An Object-Oriented Perspective by Eric J. Braude (Wiley 2001), with permission.

  49. Configuration Items (CI’s) Units tracked officially • down to the smallest unit worth tracking • includes most official documents Payroll v. 0.4.1 Payroll v. 0.3.4.3 Payroll v. 0.3.4.2 S6 A1 C4 D5 E3 Adapted from Software Engineering: An Object-Oriented Perspective by Eric J. Braude (Wiley 2001), with permission.

  50. Configuration Items (CI’s) Units tracked officially • down to the smallest unit worth tracking • includes most official documents Payroll v. 0.4.1 Payroll v. 0.3.4.3 Payroll v. 0.3.4.2 S7 S7 S6 A1 A1 A1 C4 C4 C4 D5 D5 D5 E3 E3 E3 F1 Adapted from Software Engineering: An Object-Oriented Perspective by Eric J. Braude (Wiley 2001), with permission.

More Related