13_testing

13_testing - Introduction to Computers and Programming...

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

View Full Document Right Arrow Icon
Introduction to Computers and Programming Prof. I. K. Lundqvist Lecture 13 April 16 2004 2 Testing • Goals of Testing • Classification – Test Coverage – Test Technique • Blackbox vs Whitebox • Real bugs and software bugs
Background image of page 1

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

View Full DocumentRight Arrow Icon
3 Testing Testing is a process of executing a software program with the intention of finding a error is one that has a high probability of finding an as-yet undiscovered error test is one that uncovers an as-yet undiscovered error” (Glen Myers, “The art of software testing” ) systematically uncover different classes of errors 4 Test Techniques 1 used to measure the adequacy of a set of test cases: Coverage -based testing coverage of the product to be tested Fault -based testing the adequacy Error -based testing of the typical errors that people make Primary objectives A good test case A successful Secondary Objectives Design tests that Do so with a minimum of time and effort Provide reliable indications of software quality • Classified according to the criterion • Testing requirements are specified in terms of the • Fault detecting ability of the test set determines • Focus on error-prone points, based on knowledge
Background image of page 2
5 (Definitions) Error result Fault fault. A fault thus is the manifestion of an error Failure are failures 6 PRS Exception handling is used to capture: – Error is a human action that produces an incorrect – Consequence of an error is software containing a – If encountered, a fault may result in a failure • What we observe during testing 1. Errors 2. Faults 3. Failures 4. I am still sleeping …
Background image of page 3

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

View Full DocumentRight Arrow Icon
7 Test Techniques 2 source of information used to derive test cases: White (glass) box testing structural or program-based testing Black box testing functional 8 Black-Box Testing program is considered as a ‘black-box’ the software process • Or, classify test techniques based on the • Also called • Also called or specification-based testing • An approach to testing where the • The program test cases are based on system specification • Test planning can begin early in the
Background image of page 4
9 Black-Box Testing System Inputs causing behavior Outputs which reveal I O 10
Background image of page 5

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

View Full DocumentRight Arrow Icon
Image of page 6
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 01/28/2012 for the course AERO 16.01 taught by Professor Markdrela during the Fall '05 term at MIT.

Page1 / 19

13_testing - Introduction to Computers and Programming...

This preview shows document pages 1 - 6. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online