public interface ExecutionReporter
InputParameterModel-based equivalent to a
GenerationReporter.
Instead of TestInputGroups this uses TestInputGroupContexts so
that identifies can be converted using ArgumentConverters. Additionally,
this means that all test inputs are converted into a sensible format (Combination).
The method in this class can be split into three categories. The first one deals with all lifecycle events
from TestInputGroupContexts. The second one with actual execution of test inputs, and the third one with
event reporting capabilities. Actual test execution reporting is not done per TestInputGroupContext, as
caching results in some tests getting executed for multiple TestInputGroupContexts.
All methods have empty default implementations so that each implementing class can choose what methods to override.
| Modifier and Type | Method and Description |
|---|---|
default void |
faultCharacterizationFinished(TestInputGroupContext context,
List<Combination> failureInducingCombinations)
Called if fault characterization for a
TestInputGroup is completely
finished. |
default void |
faultCharacterizationStarted(TestInputGroupContext context,
FaultCharacterizationAlgorithm algorithm)
Called if a fault characterization started for a
TestInputGroup. |
default void |
faultCharacterizationTestInputsGenerated(TestInputGroupContext context,
List<Combination> testInputs)
Called if additional test inputs for the fault characterization process of one
TestInputGroup have been generated by the algorithm given to
faultCharacterizationStarted(TestInputGroupContext, FaultCharacterizationAlgorithm). |
default ReportLevel |
getReportLevel()
Specifies the level of reports this reporter wants to get.
|
default void |
report(ReportLevel level,
Report report)
Called if any algorithm made a report for and event not covered by any of the life cycle callback methods.
|
default void |
testInputExecutionFinished(Combination testInput,
TestResult result)
Indicates the end of a test input execution.
|
default void |
testInputExecutionStarted(Combination testInput)
Indicates the start of a test input execution.
|
default void |
testInputGroupFinished(TestInputGroupContext context)
Called if a
TestInputGroup has completely finished. |
default void |
testInputGroupGenerated(TestInputGroupContext context,
List<Combination> testInputs)
Called if a new
TestInputGroup has been generated by a
TestInputGroupGenerator. |
default void testInputGroupGenerated(TestInputGroupContext context, List<Combination> testInputs)
TestInputGroup has been generated by a
TestInputGroupGenerator. The generator is given inside
the TestInputGroupContext.context - all important information about one grouptestInputs - the initially generated test inputsdefault void testInputGroupFinished(TestInputGroupContext context)
TestInputGroup has completely finished. This means
fault characterization is finished (if it was enabled), and no more methods in this class will be called in
reference to this context.context - the context of the group which was finisheddefault void faultCharacterizationStarted(TestInputGroupContext context, FaultCharacterizationAlgorithm algorithm)
TestInputGroup.
The process will end again when faultCharacterizationFinished(TestInputGroupContext, List) is called.context - the context of the group for which fault characterization startedalgorithm - the algorithm which will be used to characterize faults. This is a reference to the real
algorithm. Do not modify as this will most likely have unintended side effectsdefault void faultCharacterizationFinished(TestInputGroupContext context, List<Combination> failureInducingCombinations)
TestInputGroup is completely
finished. This means faultCharacterizationTestInputsGenerated(TestInputGroupContext, List) will never
be called again for this context, and soon after this method testInputGroupFinished(TestInputGroupContext)
is called.context - the context of the group for which fault characterization finishedfailureInducingCombinations - all failure-inducing combinations found. The order may or may not be based
on an algorithm internal probability metric of the combinations being
failure-inducingdefault void faultCharacterizationTestInputsGenerated(TestInputGroupContext context, List<Combination> testInputs)
TestInputGroup have been generated by the algorithm given to
faultCharacterizationStarted(TestInputGroupContext, FaultCharacterizationAlgorithm). This method can only be
called (multiple times) between calls to
faultCharacterizationStarted(TestInputGroupContext, FaultCharacterizationAlgorithm) and
faultCharacterizationFinished(TestInputGroupContext, List).context - the context of the group for which additional test inputs were generatedtestInputs - all additionally generated test inputsdefault void testInputExecutionStarted(Combination testInput)
testInput - the started test inputdefault void testInputExecutionFinished(Combination testInput, TestResult result)
testInput - the finished test inputresult - the result of the test inputdefault ReportLevel getReportLevel()
ReportLevel will be passed to report(ReportLevel, Report).default void report(ReportLevel level, Report report)
level - the level of the report. Always higher than or equal to getReportLevel()report - the actual report with resolved argumentsCopyright © 2019. All rights reserved.