oo integration testing chapter 18 what assumption is made
play

OO Integration Testing Chapter 18 What assumption is made for - PowerPoint PPT Presentation

OO Integration Testing Chapter 18 What assumption is made for integration testing? IOO2 What assumption is made for integration testing? Assume unit level testing is complete IOO3 What choices are there for unit testing?


  1.  What is a better definition than a neighbourhood?  Centers of a graph  Ultra-center  Minimize maximum distance to other nodes  Neighbourhood grows from an ultra-center  Analogy with ripples from dropping an object into water  What are the advantages / disadvantages?  Less stubs  Less diagnostic precision IOO–70

  2.  What is an MM-path in OO? IOO–71

  3.  What is an MM-path in OO?  A sequence of method executions linked by messages IOO–72

  4.  What is an MM-path in OO?  A sequence of method executions linked by messages  How is an execution path constructed? IOO–73

  5.  What is an MM-path in OO?  A sequence of method executions linked by messages  Start at any class by sending a message  Keep going until message quiescence is reached  End at return from original message IOO–74

  6.  What is an MM-path in OO?  A sequence of method executions linked by messages  Start at any class by sending a message  Keep going until message quiescence is reached  What is this?  End at return from original message IOO–75

  7. See Figures 18.3, 18.4, 18.5  What is an MM-path in OO?  A sequence of method executions linked by messages  Start at any class by sending a message  Keep going until message quiescence is reached  At a class that does not send any messages  End at return from original message IOO–76

  8.  What is the highest integration level? IOO–77

  9.  What is the highest integration level?  Classes that implement an atomic system function IOO–78

  10.  What is an atomic system function? IOO–79

  11.  What is an atomic system function?  An MM-path  Stimulus / response pair of port-level events IOO–80

  12.  What is an atomic system function?  An MM-path  Stimulus / response pair of port-level events  What does it begin and end with? IOO–81

  13.  What is an atomic system function?  An MM-path  Stimulus / response pair of port-level events  Begins with an input port event  Event quiescence  Ends with an output port event  Event quiescence IOO–82

  14.  What good are atomic system functions? IOO–83

  15.  What good are atomic system functions?  Addresses event-driven nature of OO programs  At the boundary of integration and system testing IOO–84

  16.  Why do we use directed graphs? IOO–85

  17.  Why do we use directed graphs?  Directed graph makes it possible to be analytical in choosing test cases IOO–86

  18.  OO-calendar analysis  How many test cases are there? IOO–87

  19.  OO-calendar analysis  How many test cases are there?  Cyclomatic complexity is 23 IOO–88

  20.  OO-calendar analysis  How many test cases are there?  Cyclomatic complexity is 23  Implies 23 basis paths to test  Can we do better? IOO–89

  21.  OO-calendar analysis  How many test cases are there?  Cyclomatic complexity is 23  Implies 23 basis paths to test  Lower bound could be 3 test cases IOO–90

  22.  OO-calendar analysis  How many test cases are there?  Cyclomatic complexity is 23  Implies 23 basis paths to test  Lower bound could be 3 test cases  What are they? IOO–91

  23.  OO-calendar analysis  How many test cases are there?  Cyclomatic complexity is 23  Implies 23 basis paths to test  Lower bound could be 3 test cases  Start at each of the three statements in routine testIt IOO–92

  24.  OO-calendar analysis  How many test cases are there?  Cyclomatic complexity is 23  Implies 23 basis paths to test  Lower bound could be 3 test cases  Start at each of the three statements in routine testIt  What is the problem? IOO–93

  25.  OO-calendar analysis  How many test cases are there?  Cyclomatic complexity is 23  Implies 23 basis paths to test  Lower bound could be 3 test cases  Start at each of the three statements in routine testIt  What is the problem?  Depends upon choice of test cases, which could miss leap year related cases IOO–94

  26.  OO-calendar analysis  Depends upon choice of test cases, which could miss leap year related cases  What do we need to do? IOO–95

  27.  OO-calendar analysis  Depends upon choice of test cases, which could miss leap year related cases  Need to cover every message IOO–96

  28.  OO-calendar analysis  Depends upon choice of test cases, which could miss leap year related cases  Need to cover every message  What is a good way to do this? IOO–97

  29. OO-calendar analysis  OO-calendar analysis  Depends upon choice of test cases, which could miss leap year related cases  Need to cover every message  What is a good way to do this?  The test cases identified in decision table testing (Table 7.16) would give a good integration test suite  Look for test cases to cover every message in Figure 18.3 IOO–98

  30.  Are MM-paths sufficient? IOO–99

  31. Data flow testing  Are MM-paths sufficient?  Like DD-paths, they are insufficient IOO–100

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend