Class CucumberListener
- java.lang.Object
-
- com.testomatio.reporter.core.frameworkintegration.AbstractTestFrameworkListener
-
- com.testomatio.reporter.core.frameworkintegration.CucumberListener
-
- All Implemented Interfaces:
io.cucumber.plugin.EventListener,io.cucumber.plugin.Plugin
public class CucumberListener extends AbstractTestFrameworkListener implements io.cucumber.plugin.Plugin, io.cucumber.plugin.EventListener
Cucumber plugin for Testomat.io integration. Reports Cucumber test execution results to Testomat.io platform.
-
-
Field Summary
-
Fields inherited from class com.testomatio.reporter.core.frameworkintegration.AbstractTestFrameworkListener
resultConstructor, runManager
-
-
Constructor Summary
Constructors Constructor Description CucumberListener()Creates new Cucumber listener.CucumberListener(String out)Creates new Cucumber listener with output configuration.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidaddFrameworkSpecificData(TestResultWrapper.Builder builder, Object frameworkSpecificData)Adds framework-specific data to result wrapper builder.protected ResultConstructorcreateResultConstructor()Creates framework-specific result constructor.voidsetEventPublisher(io.cucumber.plugin.event.EventPublisher eventPublisher)Registers event handlers with Cucumber event publisher.-
Methods inherited from class com.testomatio.reporter.core.frameworkintegration.AbstractTestFrameworkListener
buildTestRunResultHolder, createTestResult, handleSuiteFinished, handleSuiteStarted, logAndReportResult, logTestReporting, normalizeStatus, reportTestResult, reportTestResult
-
-
-
-
Constructor Detail
-
CucumberListener
public CucumberListener()
Creates new Cucumber listener.
-
CucumberListener
public CucumberListener(String out)
Creates new Cucumber listener with output configuration.- Parameters:
out- output configuration parameter
-
-
Method Detail
-
createResultConstructor
protected ResultConstructor createResultConstructor()
Description copied from class:AbstractTestFrameworkListenerCreates framework-specific result constructor.- Specified by:
createResultConstructorin classAbstractTestFrameworkListener- Returns:
- result constructor for the specific test framework
-
addFrameworkSpecificData
protected void addFrameworkSpecificData(TestResultWrapper.Builder builder, Object frameworkSpecificData)
Description copied from class:AbstractTestFrameworkListenerAdds framework-specific data to result wrapper builder.- Specified by:
addFrameworkSpecificDatain classAbstractTestFrameworkListener- Parameters:
builder- result wrapper builderframeworkSpecificData- framework-specific data to add
-
setEventPublisher
public void setEventPublisher(io.cucumber.plugin.event.EventPublisher eventPublisher)
Registers event handlers with Cucumber event publisher.- Specified by:
setEventPublisherin interfaceio.cucumber.plugin.EventListener- Parameters:
eventPublisher- Cucumber event publisher
-
-