Class LoggingInterleavingExecutionReporterForGeneration
- java.lang.Object
-
- de.rwth.swc.coffee4j.engine.process.report.interleaving.LoggingInterleavingExecutionReporterForGeneration
-
- All Implemented Interfaces:
ExecutionReporter,InterleavingExecutionReporter
- Direct Known Subclasses:
LoggingInterleavingExecutionReporterForGenerationJava
public class LoggingInterleavingExecutionReporterForGeneration extends Object implements InterleavingExecutionReporter
Reporter for interleaving combinatorial testing and Constraint Generation using a logger
-
-
Field Summary
Fields Modifier and Type Field Description protected CombinationFormatterformatterprotected org.slf4j.Loggerlogger
-
Constructor Summary
Constructors Constructor Description LoggingInterleavingExecutionReporterForGeneration()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcheckingFinished(InterleavingCombinatorialTestGroup group, Combination combinationToCheck, boolean passed)Called when the checking phase for a combination has finished.voidcheckingStarted(InterleavingCombinatorialTestGroup group, Combination combinationToCheck)Called when the checking phase for a combination has started.voididentificationFinished(InterleavingCombinatorialTestGroup group, Set<Combination> exceptionInducingCombinations, Set<Combination> possiblyFailureInducingCombinations)Called when the identification phase for a failing test input has finished.voididentificationStarted(InterleavingCombinatorialTestGroup group, Combination failingTestInput)Called when the identification phase for a failing test input has started.voididentificationTestInputGenerated(InterleavingCombinatorialTestGroup group, Combination testInput)Called when a new test input was generated during identification phase.voidinterleavingGroupFinished(InterleavingCombinatorialTestGroup group, Map<Combination,Class<? extends Throwable>> exceptionInducingCombinations, Set<Combination> possiblyFailureInducingCombinations)Called when the interleaving combinatorial testing has finished.voidinterleavingGroupGenerated(InterleavingCombinatorialTestGroup group)Called when a newInterleavingCombinatorialTestGrouphas been generated by anInterleavingCombinatorialTestManager.voidtestInputExecutionFinished(Combination testInput, TestResult result)Indicates the end of a test input execution.voidtestInputExecutionStarted(Combination testInput)Indicates the start of a test input execution.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface de.rwth.swc.coffee4j.engine.report.ExecutionReporter
getReportLevel, modelModified, report
-
-
-
-
Field Detail
-
logger
protected final org.slf4j.Logger logger
-
formatter
protected CombinationFormatter formatter
-
-
Method Detail
-
interleavingGroupGenerated
public void interleavingGroupGenerated(InterleavingCombinatorialTestGroup group)
Description copied from interface:InterleavingExecutionReporterCalled when a newInterleavingCombinatorialTestGrouphas been generated by anInterleavingCombinatorialTestManager.- Specified by:
interleavingGroupGeneratedin interfaceInterleavingExecutionReporter- Parameters:
group- stores all important information for the execution of interleaving combinatorial testing.
-
interleavingGroupFinished
public void interleavingGroupFinished(InterleavingCombinatorialTestGroup group, Map<Combination,Class<? extends Throwable>> exceptionInducingCombinations, Set<Combination> possiblyFailureInducingCombinations)
Description copied from interface:InterleavingExecutionReporterCalled when the interleaving combinatorial testing has finished.- Specified by:
interleavingGroupFinishedin interfaceInterleavingExecutionReporter- Parameters:
group- stores all important information for the execution of interleaving combinatorial testing.exceptionInducingCombinations- combinations that need to be modelled as error-constraints.possiblyFailureInducingCombinations- combinations that trigger faults in the SUT.
-
identificationStarted
public void identificationStarted(InterleavingCombinatorialTestGroup group, Combination failingTestInput)
Description copied from interface:InterleavingExecutionReporterCalled when the identification phase for a failing test input has started.- Specified by:
identificationStartedin interfaceInterleavingExecutionReporter- Parameters:
group- stores all important information for the execution of interleaving combinatorial testing.failingTestInput- test input for which the failure-inducing/error-combinations should be identified.
-
identificationFinished
public void identificationFinished(InterleavingCombinatorialTestGroup group, Set<Combination> exceptionInducingCombinations, Set<Combination> possiblyFailureInducingCombinations)
Description copied from interface:InterleavingExecutionReporterCalled when the identification phase for a failing test input has finished.- Specified by:
identificationFinishedin interfaceInterleavingExecutionReporter- Parameters:
group- stores all important information for the execution of interleaving combinatorial testing.exceptionInducingCombinations- all found combinations that must be modeled as error-constraints.possiblyFailureInducingCombinations- all found (possibly) failure-inducing combinations causing the test input to fail.
-
identificationTestInputGenerated
public void identificationTestInputGenerated(InterleavingCombinatorialTestGroup group, Combination testInput)
Description copied from interface:InterleavingExecutionReporterCalled when a new test input was generated during identification phase.- Specified by:
identificationTestInputGeneratedin interfaceInterleavingExecutionReporter- Parameters:
group- stores all important information for the execution of interleaving combinatorial testing.testInput- the newly generated test input.
-
checkingStarted
public void checkingStarted(InterleavingCombinatorialTestGroup group, Combination combinationToCheck)
Description copied from interface:InterleavingExecutionReporterCalled when the checking phase for a combination has started.- Specified by:
checkingStartedin interfaceInterleavingExecutionReporter- Parameters:
group- stores all important information for the execution of interleaving combinatorial testing.combinationToCheck- the combination to be checked.
-
checkingFinished
public void checkingFinished(InterleavingCombinatorialTestGroup group, Combination combinationToCheck, boolean passed)
Description copied from interface:InterleavingExecutionReporterCalled when the checking phase for a combination has finished.- Specified by:
checkingFinishedin interfaceInterleavingExecutionReporter- Parameters:
group- stores all important information for the execution of interleaving combinatorial testing.combinationToCheck- the combination that has been checked.passed- true iff combination is (most-likely) an error-combination/failure-inducing combination.
-
testInputExecutionStarted
public void testInputExecutionStarted(Combination testInput)
Description copied from interface:ExecutionReporterIndicates the start of a test input execution.- Specified by:
testInputExecutionStartedin interfaceExecutionReporter- Parameters:
testInput- the started test input
-
testInputExecutionFinished
public void testInputExecutionFinished(Combination testInput, TestResult result)
Description copied from interface:ExecutionReporterIndicates the end of a test input execution.- Specified by:
testInputExecutionFinishedin interfaceExecutionReporter- Parameters:
testInput- the finished test inputresult- the result of the test input
-
-