You are on page 1of 14

SupplementarySlidesfor SoftwareEngineering: APractitioner'sApproach, 5/e

copyright 1996, 2001

R.S. Pressman & Associates, Inc. For University Use Only May be reproduced ONLY for student use at the university level when used in conjunction with Software Engineering: A Practitioner's Approach. Any other reproduction or use is expressly prohibited. This presentation, slides, or hardcopy may NOT be used for short courses, industry seminars, or consulting purposes.
ThesecoursewarematerialsaretobeusedinconjunctionwithSoftwareEngineering:APractitionersApproach, 5/eandareprovidedwithpermissionbyR.S.Pressman&Associates,Inc.,copyright1996,2001

Chapter18 SoftwareTesting Strategies

ThesecoursewarematerialsaretobeusedinconjunctionwithSoftwareEngineering:APractitionersApproach, 5/eandareprovidedwithpermissionbyR.S.Pressman&Associates,Inc.,copyright1996,2001

TestingStrategy
unit test integration test

system test

validation test

ThesecoursewarematerialsaretobeusedinconjunctionwithSoftwareEngineering:APractitionersApproach, 5/eandareprovidedwithpermissionbyR.S.Pressman&Associates,Inc.,copyright1996,2001

UnitTesting

module to be tested results software engineer test cases

ThesecoursewarematerialsaretobeusedinconjunctionwithSoftwareEngineering:APractitionersApproach, 5/eandareprovidedwithpermissionbyR.S.Pressman&Associates,Inc.,copyright1996,2001

UnitTesting
module to be tested interface local data structures boundary conditions independent paths error handling paths

test cases
ThesecoursewarematerialsaretobeusedinconjunctionwithSoftwareEngineering:APractitionersApproach, 5/eandareprovidedwithpermissionbyR.S.Pressman&Associates,Inc.,copyright1996,2001

UnitTestEnvironment
driver
interface local data structures

Module

boundary conditions independent paths error handling paths

stub

stub test cases RESULTS

ThesecoursewarematerialsaretobeusedinconjunctionwithSoftwareEngineering:APractitionersApproach, 5/eandareprovidedwithpermissionbyR.S.Pressman&Associates,Inc.,copyright1996,2001

IntegrationTestingStrategies
Options: the big bang approach an incremental construction strategy

ThesecoursewarematerialsaretobeusedinconjunctionwithSoftwareEngineering:APractitionersApproach, 5/eandareprovidedwithpermissionbyR.S.Pressman&Associates,Inc.,copyright1996,2001

TopDownIntegration
A top module is tested with stubs G

stubs are replaced one at a time, "depth first" as new modules are integrated, some subset of tests is re-run

ThesecoursewarematerialsaretobeusedinconjunctionwithSoftwareEngineering:APractitionersApproach, 5/eandareprovidedwithpermissionbyR.S.Pressman&Associates,Inc.,copyright1996,2001

BottomUpIntegration
A

drivers are replaced one at a time, "depth first" worker modules are grouped into builds and integrated

cluster
ThesecoursewarematerialsaretobeusedinconjunctionwithSoftwareEngineering:APractitionersApproach, 5/eandareprovidedwithpermissionbyR.S.Pressman&Associates,Inc.,copyright1996,2001

SandwichTesting
A Top modules are tested with stubs G

C Worker modules are grouped into builds and integrated

cluster
ThesecoursewarematerialsaretobeusedinconjunctionwithSoftwareEngineering:APractitionersApproach, 5/eandareprovidedwithpermissionbyR.S.Pressman&Associates,Inc.,copyright1996,2001

10

HighOrderTesting
validation test system test alpha and beta test other specialized testing

ThesecoursewarematerialsaretobeusedinconjunctionwithSoftwareEngineering:APractitionersApproach, 5/eandareprovidedwithpermissionbyR.S.Pressman&Associates,Inc.,copyright1996,2001

11

Debugging: ADiagnosticProcess

ThesecoursewarematerialsaretobeusedinconjunctionwithSoftwareEngineering:APractitionersApproach, 5/eandareprovidedwithpermissionbyR.S.Pressman&Associates,Inc.,copyright1996,2001

12

TheDebuggingProcess
test cases

new test cases regression tests suspected causes corrections identified causes

results

Debugging

ThesecoursewarematerialsaretobeusedinconjunctionwithSoftwareEngineering:APractitionersApproach, 5/eandareprovidedwithpermissionbyR.S.Pressman&Associates,Inc.,copyright1996,2001

13

DebuggingEffort
time required to diagnose the symptom and determine the cause

time required to correct the error and conduct regression tests

ThesecoursewarematerialsaretobeusedinconjunctionwithSoftwareEngineering:APractitionersApproach, 5/eandareprovidedwithpermissionbyR.S.Pressman&Associates,Inc.,copyright1996,2001

14

You might also like