public class PrintStreamExecutionReporter extends Object implements ExecutionReporter
ExecutionReporter. Will print to any PrintStream or
System.out by default.| Constructor and Description |
|---|
PrintStreamExecutionReporter()
Creates a new reporter printing all events to
System.out. |
PrintStreamExecutionReporter(PrintStream printStream)
Creates a new reporter printing all events to the given stream.
|
| Modifier and Type | Method and Description |
|---|---|
void |
faultCharacterizationFinished(TestInputGroupContext context,
List<Combination> failureInducingCombinations)
Called if fault characterization for a
TestInputGroup is completely
finished. |
void |
faultCharacterizationStarted(TestInputGroupContext context,
FaultCharacterizationAlgorithm algorithm)
Called if a fault characterization started for a
TestInputGroup. |
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
ExecutionReporter.faultCharacterizationStarted(TestInputGroupContext, FaultCharacterizationAlgorithm). |
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.
|
void |
testInputExecutionFinished(Combination testInput,
TestResult result)
Indicates the end of a test input execution.
|
void |
testInputExecutionStarted(Combination testInput)
Indicates the start of a test input execution.
|
void |
testInputGroupFinished(TestInputGroupContext context)
Called if a
TestInputGroup has completely finished. |
void |
testInputGroupGenerated(TestInputGroupContext context,
List<Combination> testInputs)
Called if a new
TestInputGroup has been generated by a
TestInputGroupGenerator. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetReportLevelpublic PrintStreamExecutionReporter()
System.out.public PrintStreamExecutionReporter(PrintStream printStream)
printStream - the stream to which events are printed. Must not be nullpublic void testInputGroupGenerated(TestInputGroupContext context, List<Combination> testInputs)
ExecutionReporterTestInputGroup has been generated by a
TestInputGroupGenerator. The generator is given inside
the TestInputGroupContext.testInputGroupGenerated in interface ExecutionReportercontext - all important information about one grouptestInputs - the initially generated test inputspublic void testInputGroupFinished(TestInputGroupContext context)
ExecutionReporterTestInputGroup 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.testInputGroupFinished in interface ExecutionReportercontext - the context of the group which was finishedpublic void faultCharacterizationStarted(TestInputGroupContext context, FaultCharacterizationAlgorithm algorithm)
ExecutionReporterTestInputGroup.
The process will end again when ExecutionReporter.faultCharacterizationFinished(TestInputGroupContext, List) is called.faultCharacterizationStarted in interface ExecutionReportercontext - 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 effectspublic void faultCharacterizationFinished(TestInputGroupContext context, List<Combination> failureInducingCombinations)
ExecutionReporterTestInputGroup is completely
finished. This means ExecutionReporter.faultCharacterizationTestInputsGenerated(TestInputGroupContext, List) will never
be called again for this context, and soon after this method ExecutionReporter.testInputGroupFinished(TestInputGroupContext)
is called.faultCharacterizationFinished in interface ExecutionReportercontext - 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-inducingpublic void faultCharacterizationTestInputsGenerated(TestInputGroupContext context, List<Combination> testInputs)
ExecutionReporterTestInputGroup have been generated by the algorithm given to
ExecutionReporter.faultCharacterizationStarted(TestInputGroupContext, FaultCharacterizationAlgorithm). This method can only be
called (multiple times) between calls to
ExecutionReporter.faultCharacterizationStarted(TestInputGroupContext, FaultCharacterizationAlgorithm) and
ExecutionReporter.faultCharacterizationFinished(TestInputGroupContext, List).faultCharacterizationTestInputsGenerated in interface ExecutionReportercontext - the context of the group for which additional test inputs were generatedtestInputs - all additionally generated test inputspublic void testInputExecutionStarted(Combination testInput)
ExecutionReportertestInputExecutionStarted in interface ExecutionReportertestInput - the started test inputpublic void testInputExecutionFinished(Combination testInput, TestResult result)
ExecutionReportertestInputExecutionFinished in interface ExecutionReportertestInput - the finished test inputresult - the result of the test inputpublic void report(ReportLevel level, Report report)
ExecutionReporterreport in interface ExecutionReporterlevel - the level of the report. Always higher than or equal to ExecutionReporter.getReportLevel()report - the actual report with resolved argumentsCopyright © 2019. All rights reserved.