TestingTechniques

TestingTechniques - 1 WhatisaGoodTest 2 TestCaseDesign"Bugs...

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

View Full Document Right Arrow Icon
1 Software Testing Techniques
Background image of page 1

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

View Full Document Right Arrow Icon
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
Background image of page 2
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
Background image of page 3

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

View Full Document Right Arrow Icon
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
Background image of page 4
5 Selective Testing loop < 20 X Selected path
Background image of page 5

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

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

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

View Full Document Right Arrow Icon
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
Background image of page 8
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
Background image of page 9

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

View Full Document Right Arrow Icon
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
Background image of page 10
11 Control Structure Testing Condition testing  — a test case design method that  exercises the logical conditions  contained in a  program module
Background image of page 11

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

View Full Document Right Arrow Icon
Image of page 12
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

Page1 / 24

TestingTechniques - 1 WhatisaGoodTest 2 TestCaseDesign"Bugs...

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

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