Abstract
Combinatorial testing, particularly All Combinations Coverage (ACoC), provides exhaustive assurance but suffers from state-space explosion. This paper introduces a method to reduce test requirements by identifying input equivalences through execution monitoring. By leveraging the Korat technique to track which parameters are actually read during execution, the authors achieve a nearly 3x reduction in test cases for a standard benchmark while maintaining the same coverage guarantees as traditional ACoC.
Introduction
In software testing, Combinatorial Testing is a widely used black-box technique for evaluating combinations of input parameters. The most rigorous form, All Combinations Coverage (ACoC), tests every possible permutation of parameter values. However, for systems with $p$ parameters and $v$ values, the resulting $v^p$ test cases often lead to a "state-space explosion," making exhaustive testing computationally prohibitive.
Traditional black-box approaches treat every input combination as unique. However, the internal logic of the code often treats many distinct inputs as functionally equivalent. For instance, if a function validates the first parameter and returns an error immediately if it is invalid, the values of all subsequent parameters are irrelevant. This paper proposes a "lightweight white-box" approach that bridges this gap by monitoring code execution to prune redundant test cases.
Methodology
The proposed approach utilizes the Korat technique, originally designed for generating complex data structures, to monitor "field reads" during test execution.
Korat-based Pruning and Equivalence Mapping
The process begins with a standard ACoC partitioning of input domains into representative blocks. As each test case is executed, the system tracks which input parameters the code actually accesses. If a result is determined while only reading a subset of the inputs, the algorithm concludes that any combination of the remaining unread inputs would yield the same result. These redundant combinations are then pruned from the search space.
As shown in Figure 1, the execution can be modeled as a tree where branches represent parameter choices. When a leaf node is reached without reading all parameters (indicated by the '?' notation), an entire subtree of potential test cases is effectively covered by a single execution.
Experimental Setup
The authors evaluated this method using the Triangle Classification Problem, a classic benchmark where a function classifies a triangle based on three integer sides. With 4 representative values per side, the total black-box space consists of $4^3 = 64$ combinations. This benchmark is ideal for testing logic-based pruning due to its numerous conditional branches.
Results and Analysis
The Korat-based approach was compared against traditional black-box ACoC and formal Symbolic Execution.
- Traditional ACoC: Required the full 64 tests.
- Korat-based Approach: Required only 22 tests, achieving a 2.9x reduction.
- Symbolic Execution: Found the theoretical minimum of 14 tests (corresponding to unique feasible paths) but required significantly more complex mathematical solvers (SMT).
The key insight is that execution-driven pruning finds a "sweet spot" between speed and precision. Unlike symbolic execution, which requires heavy-duty formal analysis, the Korat-based method simply observes what the code "touches." This provides the same level of confidence as exhaustive testing because it mathematically proves that skipped tests are redundant.
Conclusion
This research demonstrates that monitoring input access during execution can drastically reduce the cost of combinatorial testing without sacrificing exhaustiveness. By identifying equivalences with respect to the code under test, the authors reduced the test suite for a standard benchmark by nearly 65%. Future work will focus on scaling this approach to industrial-sized systems and applying similar pruning logic to other criteria like N-wise or pair-wise coverage.
Summary updated