Black-Box Test Techniques
- Get link
- X
- Other Apps
Black-Box
Test Techniques.
Test cases are independent of how the software is implemented.
If the implementation changes, but the required behavior stays the same, the test cases are still useful. These techniques help develop a relatively small, but sufficient, set of test cases in a systematic way.
All elements of a given partition are processed in the same way.
If a test case that tests one value from an equivalence partition detects a defect, this defect should also be detected by test cases that test any other value from the same partition.
Partitions can be identified for inputs, outputs, configuration items, internal values, time-related values, and interface parameters. They may be continuous or discrete, ordered or unordered, finite or infinite.
Developers are more likely to make errors with boundary values.
BVA can only be used for ordered partitions. Typical defects are misplaced boundaries — implemented above or below their intended positions, or omitted altogether.
Boundary +
closest
neighbor.
For each boundary value, two coverage items: the boundary value and its closest neighbor belonging to the adjacent partition.
Boundary +
both
neighbors.
Three coverage items: the boundary value and both its neighbors. More rigorous — may detect defects overlooked by 2-value BVA.
How different combinations of conditions result in different outcomes.
Conditions and resulting actions form the rows. Each column corresponds to a decision rule that defines a unique combination of conditions, along with the associated actions.
The strength of decision table testing is that it provides a systematic approach to identify all the combinations of conditions, some of which might otherwise be overlooked. It also helps to find any gaps or contradictions in the requirements.
Possible states and valid transitions.
A transition is initiated by an event, which may be additionally qualified by a guard condition. Transitions may result in the software taking action. Common syntax: "event [guard condition] / action".
A state table explicitly shows invalid transitions, represented by empty cells. Testing only one invalid transition in a single test case helps to avoid defect masking.
Systematic. Thorough.
- Get link
- X
- Other Apps