public class ImprovedDeltaDebugging extends Object implements FaultCharacterizationAlgorithm
Important Information: -Generates a very predictable amount of test inputs due to binary search -Does not generate many test inputs per failure inducing combination -Does not work well if two failure-inducing combinations are present in one failed test input or if failure-inducing combinations overlap each other. -Does not consider constraints
| Constructor and Description |
|---|
ImprovedDeltaDebugging(FaultCharacterizationConfiguration configuration)
Creates a new Improved Delta Debugging algorithm for the given configuration.
|
| Modifier and Type | Method and Description |
|---|---|
List<int[]> |
computeFailureInducingCombinations()
Computes a list of most likely failure inducing combinations refined
from previous calls to
FaultCharacterizationAlgorithm.computeNextTestInputs(Map). |
List<int[]> |
computeNextTestInputs(Map<int[],TestResult> testResults)
Refines the internal list of suspicious of faulty combinations.
|
static FaultCharacterizationAlgorithmFactory |
improvedDeltaDebugging() |
public ImprovedDeltaDebugging(FaultCharacterizationConfiguration configuration)
configuration - the configuration for the algorithmpublic static FaultCharacterizationAlgorithmFactory improvedDeltaDebugging()
public List<int[]> computeNextTestInputs(Map<int[],TestResult> testResults)
FaultCharacterizationAlgorithmWhen no combinations are returned any more,
FaultCharacterizationAlgorithm.computeFailureInducingCombinations() can be used to compute a
final list of most likely faulty combinations.
computeNextTestInputs in interface FaultCharacterizationAlgorithmtestResults - the results of the initial test suite or previous test
inputs generated by this method. Must not be
null or empty.public List<int[]> computeFailureInducingCombinations()
FaultCharacterizationAlgorithmFaultCharacterizationAlgorithm.computeNextTestInputs(Map). The
combinations returned by this method are not guaranteed to be faulty,
but it is guaranteed that no test input executed which contained this
combination was successful.computeFailureInducingCombinations in interface FaultCharacterizationAlgorithmCopyright © 2019. All rights reserved.