TestingTechniques

# TestingTechniques - Software Engineering: A Practitioner's...

This preview shows pages 1–12. Sign up to view the full content.

1 Software Engineering: A Practitioner’s Approach, 6/e Software Testing Techniques

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

View Full Document
2 What is a “Good” Test? A good test has a high probability of finding an error A good test is not redundant A good test should be “best of breed”  A good test should be neither too simple nor too complex
3 Test Case Design "Bugs lurk in corners and congregate at boundaries . .." Boris Beizer OBJECTIVE CRITERIA CONSTRAINT to uncover errors in a complete manner with a minimum of effort and time

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

View Full Document
4 Exhaustive Testing loop < 20 X There are 10 possible paths! If we execute one test per millisecond, it would take 3,170 years to test this program!! 14
5 Selective Testing loop < 20 X Selected path

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

View Full Document
6 Software Testing Methods Strategies white-box methods black-box methods
7 White-Box Testing ... our goal is to ensure that all statements and conditions have been executed at least once . ..

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

View Full Document
8 Basis Path Testing First , we compute the cyclomatic complexity: number of simple decisions + 1 or number of enclosed areas + 1 In this case, V(G) = 4 White-Box Testing
9 Basis Path Testing Next , we derive the independent paths: Since V(G) = 4, there are four paths Path 1 : 1,2,3,6,7,8 Path 2 : 1,2,3,5,7,8 Path 3 : 1,2,4,7,8 Path 4 : 1,2,4,7,2,4,. ..7,8 Finally , we derive test cases to exercise these paths. 1 2 3 4 5 6 7 8 White-Box Testing

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

View Full Document
10 Basis Path Testing Notes you don't need a flow chart, but the picture will help when you trace program paths count each simple logical test, compound tests count as 2 or more basis path testing should be applied to critical modules White-Box Testing
11 Control Structure Testing Condition testing  — a test case design method that  exercises the logical conditions

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

View Full Document
This is the end of the preview. Sign up to access the rest of the document.

## This note was uploaded on 07/07/2011 for the course CS 430 taught by Professor Kapoor during the Summer '08 term at Illinois Tech.

### Page1 / 24

TestingTechniques - Software Engineering: A Practitioner's...

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

View Full Document
Ask a homework question - tutors are online