Paths are executed a dynamic program analyser may be

  • No School
  • AA 1
  • 10

This preview shows page 6 - 8 out of 10 pages.

paths are executed A dynamic program analyser may be used to check that paths have been executed Independent paths ©Ian Sommerville 2000 Software Engineering, 6th edition. Chapter 20 Slide 32 Integration testing Tests complete systems or subsystems composed of integrated components Integration testing should be black-box testing with tests derived from the specification Main difficulty is localising errors Incremental integration testing reduces this problem ©Ian Sommerville 2000 Software Engineering, 6th edition. Chapter 20 Slide 33 Incremental integration testing T3 T2 T1 T4 T5 A B C D T2 T1 T3 T4 A B C T1 T2 T3 A B Test sequence 1 Test sequence 2 Test sequence 3 ©Ian Sommerville 2000 Software Engineering, 6th edition. Chapter 20 Slide 34 Approaches to integration testing Top-down testing Start with high-level system and integrate from the top-down replacing individual components by stubs where appropriate Bottom-up testing Integrate individual components in levels until the complete system is created In practice, most integration involves a combination of these strategies ©Ian Sommerville 2000 Software Engineering, 6th edition. Chapter 20 Slide 35 Top-down testing Level 2 Level 2 Level 2 Level 2 Level 1 Level 1 Testing sequence Level 2 stubs Level 3 stubs . . . ©Ian Sommerville 2000 Software Engineering, 6th edition. Chapter 20 Slide 36 Bottom-up testing Level N Level N Level N Level N Level N Level N 1 Level N 1 Level N 1 Testing sequence Test drivers Test drivers
Image of page 6

Subscribe to view the full document.

©Ian Sommerville 2000 Software Engineering, 6th edition. Chapter 20 Slide 37 Tetsing approaches Architectural validation Top-down integration testing is better at discovering errors in the system architecture System demonstration Top-down integration testing allows a limited demonstration at an early stage in the development Test implementation Often easier with bottom-up integration testing Test observation Problems with both approaches. Extra code may be required to observe tests ©Ian Sommerville 2000 Software Engineering, 6th edition. Chapter 20 Slide 38 Takes place when modules or sub-systems are integrated to create larger systems Objectives are to detect faults due to interface errors or invalid assumptions about interfaces Particularly important for object-oriented development as objects are defined by their interfaces Interface testing ©Ian Sommerville 2000 Software Engineering, 6th edition. Chapter 20 Slide 39 Interface testing Test cases B A C ©Ian Sommerville 2000 Software Engineering, 6th edition. Chapter 20 Slide 40 Interfaces types Parameter interfaces Data passed from one procedure to another Shared memory interfaces Block of memory is shared between procedures Procedural interfaces Sub-system encapsulates a set of procedures to be called by other sub-systems Message passing interfaces Sub-systems request services from other sub-systems ©Ian Sommerville 2000 Software Engineering, 6th edition. Chapter 20 Slide 41 Interface errors Interface misuse A calling component calls another component and makes an error in its use of its interface e.g. parameters in the wrong order Interface misunderstanding A calling component embeds assumptions about the
Image of page 7
Image of page 8

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern

Ask Expert Tutors You can ask 0 bonus questions You can ask 0 questions (0 expire soon) You can ask 0 questions (will expire )
Answers in as fast as 15 minutes