public class BasicCombinatorialTestManager extends Object implements CombinatorialTestManager
| Constructor and Description |
|---|
BasicCombinatorialTestManager(CombinatorialTestConfiguration configuration,
CombinatorialTestModel model) |
| Modifier and Type | Method and Description |
|---|---|
List<int[]> |
generateAdditionalTestInputsWithResult(int[] testInput,
TestResult testResult)
Returns all additional test inputs needed for all
TestInputGroups managed by this manager. |
List<int[]> |
generateInitialTests()
Generates all test input groups given by the supplied
TestInputGroupGenerators. |
public BasicCombinatorialTestManager(CombinatorialTestConfiguration configuration, CombinatorialTestModel model)
public List<int[]> generateInitialTests()
TestInputGroupGenerators. All test inputs are then
returned. During the generation, the method
GenerationReporter.testInputGroupGenerated(TestInputGroup, TestInputGroupGenerator) is called for each
generated TestInputGroup.generateInitialTests in interface CombinatorialTestManagerTestInputGroupGenerators returned them inside TestInputGroups.public List<int[]> generateAdditionalTestInputsWithResult(int[] testInput, TestResult testResult)
TestInputGroups managed by this manager.
For each managed TestInputGroup the following flow is used:
1. Check if the test input is contained in either the initial set of generated test inputs (first iteration) or
in the requested test inputs for fault characterization (in all other iterations)
1.1 If that is not the input, return an empty list of additionally needed test inputs
1.2 if that is the input, check whether fault characterization is enabled (factory is given, group has configuration,
a test input in the initial set failed)
1.2.1 if FL is not enabled, the group is considered finished and will never return test inputs again
1.2.2 else, new test inputs are generated by the fault characterization algorithm provided by the factory and returned
When necessary, the method called the necessary methods on a given reporter:
-GenerationReporter.faultCharacterizationStarted(TestInputGroup, FaultCharacterizationAlgorithm)
-GenerationReporter.faultCharacterizationTestInputsGenerated(TestInputGroup, List)
-GenerationReporter.faultCharacterizationFinished(TestInputGroup, List)
-GenerationReporter.testInputGroupFinished(TestInputGroup)
generateAdditionalTestInputsWithResult in interface CombinatorialTestManagertestInput - the test inputs for which's result additional test inputs shall be generatedtestResult - whether the test input was successful and if not how the failure was causedCopyright © 2019. All rights reserved.