-
- All Implemented Interfaces:
-
com.kaspersky.kaspresso.enricher.MainSectionEnricher
public final class CompositeMainSectionEnricher<Data extends Object> implements MainSectionEnricher<Data>
The implementation of the MainSectionEnricher interface. Composes all of MainSectionEnrichers list into one composite MainSectionEnricher that is actually called by com.kaspersky.kaspresso.testcases.core.TestRunner on each test event.
-
-
Constructor Summary
Constructors Constructor Description CompositeMainSectionEnricher(List<MainSectionEnricher<Data>> mainSectionEnrichers, List<Throwable> exceptions)
-
Method Summary
Modifier and Type Method Description UnitbeforeMainSectionRun(TestContext<Data> $self, TestInfo testInfo)This method will be invoked right before execution of "run" block in your test case. UnitafterMainSectionRun(TestContext<Data> $self, TestInfo testInfo)This method will be invoked right after execution of "run" block in your test case. -
-
Constructor Detail
-
CompositeMainSectionEnricher
CompositeMainSectionEnricher(List<MainSectionEnricher<Data>> mainSectionEnrichers, List<Throwable> exceptions)
-
-
Method Detail
-
beforeMainSectionRun
Unit beforeMainSectionRun(TestContext<Data> $self, TestInfo testInfo)
This method will be invoked right before execution of "run" block in your test case.
- Parameters:
testInfo-test information, such as test identifier
-
afterMainSectionRun
Unit afterMainSectionRun(TestContext<Data> $self, TestInfo testInfo)
This method will be invoked right after execution of "run" block in your test case.
- Parameters:
testInfo-test information, such as test identifier
-
-
-
-