18C5T13 Lecture Notes - Lecture 3: Subroutine, Test Strategy, Unit Testing
Document Summary
If domain testing is based on specifications, it is a functional test technique. If domain testing is based implementation details, it is a structural test technique: for example, you"re doing domain testing when you check extreme values of an input variable. All inputs to a program can be considered as if they are numbers. For example, a character string can be treated as a number by concatenating bits and looking at them as if they were a binary integer. This is the view in domain testing, which is why this strategy has a mathematical flavor: the model: the following figure is a schematic representation of domain testing. "reject": the input then passes to a hypothetical subroutine rather than on calculations. If the source language supports set definitions (e. g. In domain testing, predicates are assumed to be interpreted in terms of input vector variables.