Professional Documents
Culture Documents
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
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
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
stub
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
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
ThesecoursewarematerialsaretobeusedinconjunctionwithSoftwareEngineering:APractitionersApproach, 5/eandareprovidedwithpermissionbyR.S.Pressman&Associates,Inc.,copyright1996,2001
14