Академический Документы
Профессиональный Документы
Культура Документы
Fault
Spec
Resolution
fault
Isolate
Design
Fault
fault Classify
Coding
Fault
fault Incident
Testing
Program Behavoirs
S P
“Correct
” region
Specification Program
(expected) (Implemented)
• Impossible to demonstrate
• A term from “classical” computer science
– “proofs” derived from code
– Not derived from specification
– Can only prove that the code does what it does!
• Better viewpoint: a relative term—program P is
correct with respect to specification S.
• Bottom Line: do the specification and the program
meet the customer/user's expectations?
Program Behavoirs
Specification Program
(expected) S P (Implemented)
5 2 6
Spec-based 1
testing 4 3
Code-based
7 8 testing
T
Test Cases
(verified)
S P
Spec-based Code-based
Functional Structural
Black Box White/Clear Box
(establishes confidence) (seeks faults)
Requirements System
Specification Testing
Preliminary Integration
Design Testing
Detailed Unit
Design Testing
Coding
• Language neutral
• Supports both procedural and
object-oriented code
• Easy to “translate” into your
favorite programming language
https://www.youtube.com/watch?v=gp_D8r-2hwk
Age of Conan(c) 2011
Mathur p 9