1 3231 Software Engineering By Germaine Cheung Hong Kong Computer Institute Lecture 7.

Slides:



Advertisements
Similar presentations
Software Testing Strategies
Advertisements

Unit Testing in the OO Context(Chapter 19-Roger P)
Testing (1) Let’s look at : Principles of testing The testing process
These slides are designed to accompany Software Engineering: A Practitioner’s Approach, 7/e (McGraw-Hill 2009). Slides copyright 2009 by Roger Pressman.1.
1 These courseware materials are to be used in conjunction with Software Engineering: A Practitioner’s Approach, 5/e and are provided with permission by.
These courseware materials are to be used in conjunction with Software Engineering: A Practitioner’s Approach, 6/e and are provided with permission by.
Software Testing and Quality Assurance
Illinois Institute of Technology
1 These courseware materials are to be used in conjunction with Software Engineering: A Practitioner’s Approach, 5/e and are provided with permission by.
1 These courseware materials are to be used in conjunction with Software Engineering: A Practitioner’s Approach, 5/e and are provided with permission by.
1 These courseware materials are to be used in conjunction with Software Engineering: A Practitioner’s Approach, 5/e and are provided with permission by.
CS 432 Object-Oriented Analysis and Design
Chapter Eighteen Software Testing Strategies
Software Testing Strategies based on Chapter 13 - Software Engineering: A Practitioner’s Approach, 6/e copyright © 1996, 2001, 2005 R.S. Pressman & Associates,
 Introduction Introduction  Characteristics of Strategic Testing Characteristics of Strategic Testing  Verification and Validation Verification and.
Software Testing & Strategies
Software Testing Strategies
Software Engineering Lecture 13 Software Testing Strategies 1.
These slides are designed to accompany Software Engineering: A Practitioner’s Approach, 7/e (McGraw-Hill 2009). Slides copyright 2009 by Roger Pressman.1.
Chapter 13 & 14 Software Testing Strategies and Techniques
Programinės Įrangos Testavimo Strategijos
These courseware materials are to be used in conjunction with Software Engineering: A Practitioner’s Approach, 6/e and are provided with permission by.
These slides are designed to accompany Software Engineering: A Practitioner’s Approach, 7/e (McGraw-Hill 2009). Slides copyright 2009 by Roger Pressman.1.
These courseware materials are to be used in conjunction with Software Engineering: A Practitioner’s Approach, 6/e and are provided with permission by.
1 Software Engineering: A Practitioner’s Approach, 6/e Chapter 13b: Software Testing Strategies Software Engineering: A Practitioner’s Approach, 6/e Chapter.
1 These courseware materials are to be used in conjunction with Software Engineering: A Practitioner’s Approach, 5/e and are provided with permission by.
SOFTWARE TESTING STRATEGIES CIS518001VA : ADVANCED SOFTWARE ENGINEERING TERM PAPER.
1 Software Engineering: A Practitioner’s Approach, 6/e Chapter 13a: Software Testing Strategies Software Engineering: A Practitioner’s Approach, 6/e Chapter.
1 Software Engineering Muhammad Fahad Khan Software Engineering Muhammad Fahad Khan University Of Engineering.
These slides are designed to accompany Software Engineering: A Practitioner’s Approach, 7/e (McGraw-Hill 2009). Slides copyright 2009 by Roger Pressman.1.
1 Chapter 7 Software Testing Strategies. 2 Software Testing Testing is the process of exercising a program with the specific intent of finding errors.
These slides are designed to accompany Software Engineering: A Practitioner’s Approach, 7/e (McGraw-Hill 2009). Slides copyright 2009 by Roger Pressman.1.
1 These courseware materials are to be used in conjunction with Software Engineering: A Practitioner’s Approach, 5/e and are provided with permission by.
CS 3610: Software Engineering – Spring 2009 Dr. Hisham Haddad – CSIS Dept. Chapter 13 Software Testing Strategies Discussion of Software Testing Strategies.
Quality Mgmt in S/W ? By Dr.S.Sridhar, Ph.D.(JNUD), RACI(Paris, NICE), RMR(USA), RZFM(Germany) DIRECTOR-Technical Einstein College of Engineering Quality.
LECTURE 19 23/11/15 Software Quality and Testing.
Software Testing and Quality Assurance 1. What is the objectives of Software Testing?
Integration testing Integrate two or more module.i.e. communicate between the modules. Follow a white box testing (Testing the code)
Testing dan Implementasi
1 Software Testing Strategies: Approaches, Issues, Testing Tools.
What is a level of test?  Defined by a given Environment  Environment is a collection of people, hard ware, software, interfaces, data etc.
Chapter 22 소프트웨어 테스팅 전략 Software Testing Strategies
These slides are designed to accompany Software Engineering: A Practitioner’s Approach, 7/e (McGraw-Hill 2009). Slides copyright 2009 by Roger Pressman.1.
These slides are designed to accompany Software Engineering: A Practitioner’s Approach, 7/e (McGraw-Hill 2009). Slides copyright 2009 by Roger Pressman.1.
1 These courseware materials are to be used in conjunction with Software Engineering: A Practitioner’s Approach, 5/e and are provided with permission by.
OBJECT-ORIENTED TESTING. TESTING OOA AND OOD MODELS Analysis and design models cannot be tested in the conventional sense. However, formal technical reviews.
SOFTWARE TESTING. SOFTWARE Software is not the collection of programs but also all associated documentation and configuration data which is need to make.
Software Testing Testing is the process of exercising a program with the specific intent of finding errors prior to delivery to the end user.
Software Testing Strategies for building test group
Group mambers: Maira Naseer (BCS ).
Software Testing Strategies
Software Testing Techniques
Chapter 22 Software Testing Strategies برنامج استراتيجيات الاختبار
Software Engineering: A Practitioner’s Approach, 6/e Chapter 13 Software Testing Strategies copyright © 1996, 2001, 2005 R.S. Pressman & Associates,
Chapter 18 Software Testing Strategies
Levels Of Testing and Special Tests
Chapter 13 & 14 Software Testing Strategies and Techniques
CS 8532: Advanced Software Engineering
Chapter 17 Software Testing Strategies
CS 8532: Advanced Software Engineering
Chapter 10 – Software Testing
Chapter 17 Software Testing Strategies
Chapter 17 Software Testing Strategies
Chapter 17 Software Testing Strategies.
Chapter 22 Software Testing Strategies
Chapter 17 Software Testing Strategies
Chapter 17 Software Testing Strategies
Integration Testing.
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:

Software Engineering By Germaine Cheung Hong Kong Computer Institute Lecture 7

2 Chapter 13 Testing Strategies

3 Software Testing Testing is the process of exercising a program with the specific intent of finding errors prior to to the end user. errors prior to delivery to the end user.

4 What Testing Shows errors requirements conformance performance an indication of quality

5 Who Tests the Software? developer independent tester Understands the system but, will test "gently" and, is driven by "delivery" Must learn about the system, but, will attempt to break it and, is driven by quality

6 Testing Strategy unit test integrationtest validationtest systemtest

7 Testing Strategy We begin by ‘ testing-in-the-small ’ and move toward ‘ testing-in-the-large ’ For conventional software –The module (component) is our initial focus –Integration of modules follows For OO software –our focus when “ testing in the small ” changes from an individual module (the conventional view) to an OO class that encompasses attributes and operations and implies communication and collaboration

8 Strategic Issues State testing objectives explicitly. Understand the users of the software and develop a profile for each user category. Develop a testing plan that emphasizes “ rapid cycle testing. ” Build “ robust ” software that is designed to test itself Use effective formal technical reviews as a filter prior to testing Conduct formal technical reviews to assess the test strategy and test cases themselves. Develop a continuous improvement approach for the testing process.

9 Unit Testing module to be tested test cases results softwareengineer

10 Unit Testing interface local data structures boundary conditions independent paths error handling paths module to be tested test cases

11 Unit Test Environment Module stub stub driver RESULTS interface local data structures boundary conditions independent paths error handling paths test cases

12 Integration Testing Strategies Options: the “big bang” approachthe “big bang” approach an incremental construction strategyan incremental construction strategy

13 Top Down Integration top module is tested with stubs stubs are replaced one at a time, "depth first" as new modules are integrated, some subset of tests is re-run A B C DE FG

14 Bottom-Up Integration drivers are replaced one at a time, "depth first" worker modules are grouped into builds and integrated A B C DE FG cluster

15 Sandwich Testing Top modules are tested with stubs Worker modules are grouped into builds and integrated A B C DE FG cluster

16 Object-Oriented Testing begins by evaluating the correctness and consistency of the OOA and OOD models testing strategy changes –the concept of the ‘ unit ’ broadens due to encapsulation –integration focuses on classes and their execution across a ‘ thread ’ or in the context of a usage scenario –validation uses conventional black box methods test case design draws on conventional methods, but also encompasses special features

17 OOT Strategy class testing is the equivalent of unit testing –operations within the class are tested –the state behavior of the class is examined integration applied three different strategies –thread-based testing — integrates the set of classes required to respond to one input or event –use-based testing — integrates the set of classes required to respond to one use case –cluster testing — integrates the set of classes required to demonstrate one collaboration

18 Smoke Testing A common approach for creating “ daily builds ” for product software Smoke testing steps: –Software components that have been translated into code are integrated into a “ build. ” A build includes all data files, libraries, reusable modules, and engineered components that are required to implement one or more product functions. –A series of tests is designed to expose errors that will keep the build from properly performing its function. The intent should be to uncover “ show stopper ” errors that have the highest likelihood of throwing the software project behind schedule. –The build is integrated with other builds and the entire product (in its current form) is smoke tested daily. The integration approach may be top down or bottom up.

19 High Order Testing Validation testing –Focus is on software requirements System testing –Focus is on system integration Alpha/Beta testing –Focus is on customer usage Recovery testing –forces the software to fail in a variety of ways and verifies that recovery is properly performed Security testing –verifies that protection mechanisms built into a system will, in fact, protect it from improper penetration Stress testing – executes a system in a manner that demands resources in abnormal quantity, frequency, or volume Performance Testing –test the run-time performance of software within the context of an integrated system

20 Debugging: A Diagnostic Process

21 The Debugging Process test cases results Debugging suspectedcauses identifiedcauses corrections regressiontests new test cases

22 Debugging Effort time required to diagnose the symptom and determine the cause time required to correct the error and conduct regression tests

23 Symptoms & Causes symptom cause symptom and cause may be geographically separated symptom may disappear when another problem is fixed cause may be due to a combination of non-errors cause may be due to a system or compiler error cause may be due to assumptions that everyone believes symptom may be intermittent

24 Consequences of Bugs damage mild annoying disturbing serious extreme catastrophic infectious Bug Type Bug Categories: function-related bugs, function-related bugs, system-related bugs, data bugs, coding bugs, design bugs, documentation bugs, standards violations, etc.

25 Debugging Techniques brute force / testing backtracking induction deduction

26 Debugging: Final Thoughts Don't run off half-cocked, think about the about the symptom you're seeing. Use tools (e.g., dynamic debugger) to gain (e.g., dynamic debugger) to gain more insight. If at an impasse, get help from someone else. from someone else. Be absolutely sure to conduct regression tests when you do "fix" the bug

27 The End