Slide 15.1 © The McGraw-Hill Companies, 2002 Object-Oriented and Classical Software Engineering Fifth Edition, WCB/McGraw-Hill, 2002 Stephen R. Schach.

Slides:



Advertisements
Similar presentations
Defect testing Objectives
Advertisements

Presentation by Prabhjot Singh
1 Integration Testing CS 4311 I. Burnstein. Practical Software Testing, Springer-Verlag, 2003.
CMSC 345, Version 11/07 SD Vick from S. Mitchell Software Testing.
Integration testing Satish Mishra
Unit 241 Integration Phase  The objective of this section is to introduce how the software product is realized from a set of programs, program units or.
Lab/Sessional -CSE-374. SYSTEM DEVELOPMENT LIFE CYCLE.
Unit 251 Implementation and Integration Implementation Unit Testing Integration Integration Approaches.
Illinois Institute of Technology
Slide 1.1 © The McGraw-Hill Companies, 2002 Object-Oriented and Classical Software Engineering Fifth Edition, WCB/McGraw-Hill, 2002 Stephen R. Schach
Slide 10.1 © The McGraw-Hill Companies, 2002 Object-Oriented and Classical Software Engineering Fifth Edition, WCB/McGraw-Hill, 2002 Stephen R. Schach.
1 Implementation Xiaojun Qi. 2 Choice of Programming Language The language is usually specified in the contract But what if the contract specifies that.
Software Engineering Oct-01 #17: Integration and Crypto Phil Gross.
9 1 Chapter 9 Database Design Database Systems: Design, Implementation, and Management, Seventh Edition, Rob and Coronel.
Software Testing & Strategies
Software System Integration
BY RAJESWARI S SOFTWARE TESTING. INTRODUCTION Software testing is the process of testing the software product. Effective software testing will contribute.
Introduction to Computer Technology
Software Testing Sudipto Ghosh CS 406 Fall 99 November 9, 1999.
System/Software Testing
ECE 355: Software Engineering
Slide 6.1 CHAPTER 6 TESTING. Slide 6.2 Overview l Quality issues l Nonexecution-based testing l Execution-based testing l What should be tested? l Testing.
Testing. Definition From the dictionary- the means by which the presence, quality, or genuineness of anything is determined; a means of trial. For software.
Implementation & Integration Phase Implementation, then integration: Implementation, then integration:  Each module is implemented by member of programmer.
Slide 15.1 Copyright © 2011 by The McGraw-Hill Companies, Inc. All rights reserved. Object-Oriented and Classical Software Engineering Eighth Edition,
Computers Are Your Future Eleventh Edition Chapter 13: Systems Analysis & Design Copyright © 2011 Pearson Education, Inc. Publishing as Prentice Hall1.
CS540 Software Design Lecture 8 1 Lecture 8: Structured Design Anita S. Malik Adapted from Schach (2004) Chapter 13 and Appendix.
INT-Evry (Masters IT– Soft Eng)IntegrationTesting.1 (OO) Integration Testing What: Integration testing is a phase of software testing in which.
CS 390- Unix Programming Environment CS 390 Unix Programming Environment Topics to be covered: Distributed Computing Fundamentals.
Testing Basics of Testing Presented by: Vijay.C.G – Glister Tech.
Slide 1 Construction (Testing) Chapter 15 Alan Dennis, Barbara Wixom, and David Tegarden John Wiley & Sons, Inc. Slides by Fred Niederman Edited by Solomon.
Introduction CS 3358 Data Structures. What is Computer Science? Computer Science is the study of algorithms, including their  Formal and mathematical.
Software Testing Reference: Software Engineering, Ian Sommerville, 6 th edition, Chapter 20.
Computers Are Your Future Tenth Edition Chapter 13: Systems Analysis & Design Copyright © 2009 Pearson Education, Inc. Publishing as Prentice Hall1.
Software Construction Lecture 18 Software Testing.
TESTING LEVELS Unit Testing Integration Testing System Testing Acceptance Testing.
Chapter 10 Software Engineering. Understand the software life cycle. Describe the development process models. Understand the concept of modularity in.
The Software Development Process
1 CSCD 326 Data Structures I Software Design. 2 The Software Life Cycle 1. Specification 2. Design 3. Risk Analysis 4. Verification 5. Coding 6. Testing.
Slide 13.1 © The McGraw-Hill Companies, 2002 Object-Oriented and Classical Software Engineering Fifth Edition, WCB/McGraw-Hill, 2002 Stephen R. Schach.
Slide 5.1 © The McGraw-Hill Companies, 2002 CASE (Computer-Aided Software Engineering) l Scope of CASE –Can support the entire life-cycle l Graphical display.
Assoc. Prof. Dr. Ahmet Turan ÖZCERİT.  System and Software  System Engineering  Software Engineering  Software Engineering Standards  Software Development.
CSC 480 Software Engineering Test Planning. Test Cases and Test Plans A test case is an explicit set of instructions designed to detect a particular class.
CS 240, Prof. Sarwar Slide 1 CS 240: Software Project Fall 2003 Sections 1 & 2 Dr. Badrul M. Sarwar San Jose State University Lecture #18.
Integration testing Integrate two or more module.i.e. communicate between the modules. Follow a white box testing (Testing the code)
Software Engineering Issues Software Engineering Concepts System Specifications Procedural Design Object-Oriented Design System Testing.
CS451 Software Implementation and Integration Yugi Lee STB #555 (816) Note: This lecture was designed.
What is a level of test?  Defined by a given Environment  Environment is a collection of people, hard ware, software, interfaces, data etc.
HNDIT23082 Lecture 09:Software Testing. Validations and Verification Validation and verification ( V & V ) is the name given to the checking and analysis.
1 Phase Testing. Janice Regan, For each group of units Overview of Implementation phase Create Class Skeletons Define Implementation Plan (+ determine.
©Ian Sommerville 2004Software Engineering, 7th edition. Chapter 23 Slide 1 Software testing.
Software Testing Reference: Software Engineering, Ian Sommerville, 6 th edition, Chapter 20.
Software Engineering Zhang Shuang
SOFTWARE TESTING LECTURE 9. OBSERVATIONS ABOUT TESTING “ Testing is the process of executing a program with the intention of finding errors. ” – Myers.
Testing i. explain the importance of system testing and installation planning;
SOFTWARE TESTING Date: 29-Dec-2016 By: Ram Karthick.
Integration Testing.
Chapter 13 & 14 Software Testing Strategies and Techniques
Lecture 09:Software Testing
Static Testing Static testing refers to testing that takes place without Execution - examining and reviewing it. Dynamic Testing Dynamic testing is what.
Object-Oriented and Classical Software Engineering Fifth Edition, WCB/McGraw-Hill, 2002 Stephen R. Schach
Testing Overview References:
Test Case Test case Describes an input Description and an expected output Description. Test case ID Section 1: Before execution Section 2: After execution.
IMPLEMENTATION AND INTEGRATION PHASE
Software Testing “If you can’t test it, you can’t design it”
WALKTHROUGH and INSPECTION
Chapter 11: Integration- and System Testing
Overview Activities from additional UP disciplines are needed to bring a system into being Implementation Testing Deployment Configuration and change management.
Software Testing Strategies
Chapter 13 & 14 Software Testing Strategies and Techniques 1 Software Engineering: A Practitioner’s Approach, 6th edition by Roger S. Pressman.
Presentation transcript:

Slide 15.1 © The McGraw-Hill Companies, 2002 Object-Oriented and Classical Software Engineering Fifth Edition, WCB/McGraw-Hill, 2002 Stephen R. Schach

Slide 15.2 © The McGraw-Hill Companies, 2002 CHAPTER 15 IMPLEMENTATION AND INTEGRATION PHASE

Slide 15.3 © The McGraw-Hill Companies, 2002 Overview l Implementation and integration l Testing during the implementation and integration phase l Integration testing of graphical user interfaces l Product testing l Acceptance testing l CASE tools for the implementation and integration phase l CASE tools for the complete software process

Slide 15.4 © The McGraw-Hill Companies, 2002 Overview (contd) l Integrated environments l Environments for business applications l Public tool infrastructures l Potential problems with environments l Metrics for the implementation and integration phase l Air Gourmet Case Study: Implementation and integration phase l Challenges of the implementation and integration phase

Slide 15.5 © The McGraw-Hill Companies, 2002 Implementation and Integration Phase l Up to now: Implementation followed by integration –Poor approach l Better –Combine implementation and integration methodically

Slide 15.6 © The McGraw-Hill Companies, 2002 Product with 13 Modules

Slide 15.7 © The McGraw-Hill Companies, 2002 Implementation, Then Integration l Code and test each module separately l Link all 13 modules together, test product as a whole

Slide 15.8 © The McGraw-Hill Companies, 2002 Drivers and stubs l To test module a, modules b, c, d must be stubs –Empty module, or –Prints message ("Procedure radarCalc called"), or –Returns precooked values from preplanned test cases To test module h on its own requires a driver, which calls it –Once, or –Several times, or –Many times, each time checking value returned Testing module d requires driver and two stubs

Slide 15.9 © The McGraw-Hill Companies, 2002 Implementation, Then Integration (contd) l Problem 1 –Stubs and drivers must be written, then thrown away after module testing is complete l Problem 2 –Lack of fault isolation –A fault could lie in any of 13 modules or 13 interfaces –In a large product with, say, 103 modules and 108 interfaces, there are 211 places where a fault might lie l Solution to both problems –Combine module and integration testing –“Implementation and integration phase”

Slide © The McGraw-Hill Companies, 2002 Top-down Implementation and Integration l If module m1 calls module m 2, then m1 is implemented and integrated before m2 l One possible top-down ordering is –a, b, c, d, e, f, g, h, i, j, k, l, m l Another possible top-down ordering is – a –[a]b, e, h –[a]c, d, f, i –[a, d]g, j, k, l, m

Slide © The McGraw-Hill Companies, 2002 Top-down Implementation and Integration (contd) l Advantage 1: Fault isolation –Previously successful test case fails when mNew is added to what has been tested so far l Advantage 2: Stubs not wasted –Stub expanded into corresponding complete module at appropriate step

Slide © The McGraw-Hill Companies, 2002 Top-down Implementation and Integration (contd) l Advantage 3: Major design flaws show up early –Logic modules include decision-making flow of control »In the example, modules a, b, c, d, g, j –Operational modules perform actual operations of module »In the example, modules e, f, h, i, k, l, m l Logic modules are developed before operational modules

Slide © The McGraw-Hill Companies, 2002 Top-down Implementation and Integration (contd) l Problem 1 –Reusable modules are not properly tested –Lower level (operational) modules are not tested frequently –The situation is aggravated if the product is well designed l Defensive programming (fault shielding) –Example: if (x >= 0) y = computeSquareRoot (x, errorFlag); –Never tested with x < 0 –Reuse implications

Slide © The McGraw-Hill Companies, 2002 Bottom-up Implementation and Integration l If module m1 calls module m2, then m 2 is implemented and integrated before m1 –One possible bottom-up ordering is l, m, h, i, j, k, e, f, g, b, c, d, a –Another possible bottom- up ordering is h, e, b i, f, c, d l, m, j, k, g[d] a[b, c, d]

Slide © The McGraw-Hill Companies, 2002 Bottom-up Implementation and Integration (contd) l Advantage 1 –Operational modules thoroughly tested l Advantage 2 –Operational modules are tested with drivers, not by fault shielding, defensively programmed calling modules l Advantage 3 –Fault isolation

Slide © The McGraw-Hill Companies, 2002 Bottom-up Implementation and Integration (contd) l Difficulty 1 –Major design faults are detected late l Solution –Combine top-down and bottom-up strategies making use of their strengths and minimizing their weaknesses

Slide © The McGraw-Hill Companies, 2002 Sandwich Implementation and Integration l Logic modules are implemented and integrated top-down l Operational modules are implemented and integrated bottom- up l Finally, the interfaces between the two groups are tested

Slide © The McGraw-Hill Companies, 2002 Sandwich Implementation and Integration (contd) l Advantage 1 –Major design faults are caught early l Advantage 2 –Operational modules are thoroughly tested –They may be reused with confidence l Advantage 3 –There is fault isolation at all times

Slide © The McGraw-Hill Companies, 2002 Summary

Slide © The McGraw-Hill Companies, 2002 Object-Oriented Implementation and Integration l Object-oriented implementation and integration –Almost always sandwich implementation and integration –Objects are integrated bottom-up –Other modules are integrated top-down

Slide © The McGraw-Hill Companies, 2002 Management Issues during Implem. and Int. l Example –Design document used by Team 1 (who coded module m1 ) shows m1 calls m2 passing 4 parameters –Design document used by Team 2 (who coded module m2 ) states clearly that m2 has only 3 parameters l Solution –The implementation and integration. process must be run by SQA

Slide © The McGraw-Hill Companies, 2002 Testing during Implem. and Integration Phase l Product testing –Performed to ensure that the product will not fail its acceptance test l Failing the acceptance test is a disaster for management –The client may conclude that the developers are incompetent –Worse, the client may believe that the developers tried to cheat l The SQA team must ensure that the product passes its acceptance test

Slide © The McGraw-Hill Companies, 2002 Integration Testing of Graphical User Interfaces l GUI test cases: –Mouse clicks –Key presses –And so on l Cannot be stored in the usual way l We need special CASE tools l Examples: –QAPartner –XRunner

Slide © The McGraw-Hill Companies, 2002 Strategy for Product Testing l The SQA team must try to approximate the acceptance test l Black box test cases for the product as a whole l Robustness of product as a whole –Stress testing (under peak load) –Volume testing (e.g., can it handle large input files?)

Slide © The McGraw-Hill Companies, 2002 Strategy for Product Testing (contd) l Check all constraints –Timing constraints –Storage constraints –Security constraints –Compatibility l Review all documentation to be handed over to the client l Verify the documentation against the product l The product (software plus documentation) is now handed over to the client organization for acceptance testing

Slide © The McGraw-Hill Companies, 2002 Acceptance Testing l The client determines whether the product satisfies its specifications l Performed by –The client organization, or –The SQA team in the presence of client representatives, or –An independent SQA team hired by the client

Slide © The McGraw-Hill Companies, 2002 Acceptance Testing (contd) l Four major components of acceptance testing –Correctness –Robustness –Performance –Documentation l (Precisely what was done by developer during product testing)

Slide © The McGraw-Hill Companies, 2002 CASE tools for the Implem. and Integ. Phase l Bare minimum: –Version control tools –Examples: »rcs, sccs, PCVS, SourceSafe

Slide © The McGraw-Hill Companies, 2002 CASE Tools for the Complete Software Process l A large organization needs an environment l A medium-sized organization can probably manage with a workbench l A small organization can usually manage with just tools.

Slide © The McGraw-Hill Companies, 2002 Integrated Environments l Usual meaning of “integrated” –User interface integration –Similar “look and feel” –Most successful on the Macintosh l There are also other types of integration

Slide © The McGraw-Hill Companies, 2002 Process Integration l Environment supports one specific process l Subset: Technique-based environment –Formerly: “method-based environment” –Supports specific technique –Examples: »Structured systems analysis »Petri nets –Usually comprises »Graphical support for specification, design phases »Data dictionary »Some consistency checking »Some management support –Support and formalization of manual processes –Examples: »Analyst/Designer, Rose, Rhapsody (for Statecharts)

Slide © The McGraw-Hill Companies, 2002 Technique-Based Environments (contd) l Advantage of technique-based environment –Forced to use specific method, correctly l Disadvantages of technique-based environment –Forced to use specific method –Inadequate support of programming-in-the-many

Slide © The McGraw-Hill Companies, 2002 Environments for Business Application l The emphasis is on ease of use –GUI –Standard forms for input, output –Code generator »Detailed design is lowest level of abstraction »Expect productivity rise l Examples: –Foundation, Bachman Product Set

Slide © The McGraw-Hill Companies, 2002 Public Tool Infrastructure l PCTE—Portable common tool environment –NOT an environment –An infrastructure for supporting CASE tools (similar to the way an operating system provides services for user products) –Adopted by ECMA (European Computer Manufacturers Association) l Example implementations: –IBM, Emeraude

Slide © The McGraw-Hill Companies, 2002 Potential Problems with Environments l No one environment is ideal for all organizations –Each has its strengths and weaknesses l Warning 1 –Choosing the wrong environment can be worse than no environment –Enforcing a wrong technique is counterproductive l Warning 2 –Shun environments below CMM level 3 –We cannot automate a nonexistent process –A CASE tool or CASE workbench is fine

Slide © The McGraw-Hill Companies, 2002 Metrics for the Implem. and Integ. Phase l The five basic metrics, plus l Complexity metrics l Number of test cases, percentage which resulted in failure l Total number of faults, by types

Slide © The McGraw-Hill Companies, 2002 Air Gourmet Case Study: Impl. and Integ. Phase l Complete C++ implementation, l Complete Java implementation, –at

Slide © The McGraw-Hill Companies, 2002 Challenges of the Implem. and Integration Phase l Management issues are paramount here –Appropriate CASE tools –Test case planning –Communicating changes to all personnel –Deciding when to stop testing