lec10 - CPS406 Introduction to Software Engineering Testing...

Info icon This preview shows pages 1–6. Sign up to view the full content.

View Full Document Right Arrow Icon
3/17/2009 1 CPS406: Introduction to Software Engineering Testing Adapted from: Object-Oriented Software Engineering, T. Lethbridge and R. Laganiere, 2005, Object-Oriented & Classical Software Engineering, S. Schach, 2006, Software Engineering, I. Sommerville, 2006, Software Engineering: An Object-Oriented Perspective, E. Braude, 2001 Overview Testing workflow in unified process Unit testing I i i Integration testing System testing Acceptance testing Writing test cases and test plans Inspection vs. testing G 2 Glass-box testing Black-box testing Detecting specific categories of defects
Image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
3/17/2009 2 Elaboration Unified Process Inception Construction Transition Requirements Analysis Design Implemen- tation 3 Test Unit Tests Integration tests ... System tests Testing: the Big Picture I l d 3. System tests Packages of classes OO: Include use-cases Module combination 2. Integration tests 1. 4 Methods Combinations of methods in class Function Module Unit tests
Image of page 2
3/17/2009 3 Golden Rules of Testing Goal of testing: maximize the number and severity of defects found per dollar spent thus: test early Limits of testing: Testing can only determine the presence of defects, never their absence 5 use proofs of correctness to establish “absence” Unit Testing The art of testing: Select a small, manageable set of test cases to Maximize the chances of detecting a fault while Maximize the chances of detecting a fault, while Minimizing the chances of wasting a test case Every test case must detect a previously undetected fault We need a method that will highlight as many faults as possible First black-box test cases (testing to specifications) 6 Then glass-box methods (testing to code)
Image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon