public class IterationBasedIterAifl extends Aifl
Important Information: -Generates many additional test inputs if there are many parameters -Generates many additional test inputs if there are many failing test inputs -Does not order failure-inducing combinations by probability and can return quite a few of them -Does not consider constraints -Is a bit more exact than AIFL itself, but needs considerably more test inputs
configuration, previousSuspiciousCombinations, suspiciousCombinations, testResults| Constructor and Description |
|---|
IterationBasedIterAifl(FaultCharacterizationConfiguration configuration)
Creates a new IterAIFL algorithm based on the given configuration.
|
IterationBasedIterAifl(FaultCharacterizationConfiguration configuration,
int suspiciousCombinationsThreshold)
Creates a new IterAIFL algorithm based on the given configuration.
|
| Modifier and Type | Method and Description |
|---|---|
List<IntArrayWrapper> |
generateNextTestInputs(Map<int[],TestResult> newTestResults)
The concrete algorithm generates test for which it needs the result for better fault characterization.
|
static FaultCharacterizationAlgorithmFactory |
iterAifl() |
static FaultCharacterizationAlgorithmFactory |
iterAifl(int suspiciousCombinationsThreshold)
Creates a factory which uses the given threshold to configuration the IterAIFL algorithm.
|
boolean |
shouldGenerateFurtherTestInputs() |
aifl, computeFailureInducingCombinations, getRelevantSubCombinationscomputeNextTestInputs, getChecker, getModel, getReporterpublic IterationBasedIterAifl(FaultCharacterizationConfiguration configuration)
configuration - the configuration for the algorithmpublic IterationBasedIterAifl(FaultCharacterizationConfiguration configuration, int suspiciousCombinationsThreshold)
IterationBasedIterAifl.configuration - the configuration for the algorithmsuspiciousCombinationsThreshold - the threshold for algorithm terminationpublic static FaultCharacterizationAlgorithmFactory iterAifl()
public static FaultCharacterizationAlgorithmFactory iterAifl(int suspiciousCombinationsThreshold)
suspiciousCombinationsThreshold - the threshold as described in IterationBasedIterAiflpublic boolean shouldGenerateFurtherTestInputs()
shouldGenerateFurtherTestInputs in class AiflFaultCharacterizationAlgorithm.computeFailureInducingCombinations()
will be called nextpublic List<IntArrayWrapper> generateNextTestInputs(Map<int[],TestResult> newTestResults)
SuspiciousCombinationAlgorithmgenerateNextTestInputs in class AiflnewTestResults - the results from the test inputs generated in the last iteration of the initially generated
test inputs if in the first iterationCopyright © 2019. All rights reserved.