Package de.gematik.test.tiger
Class TigerCucumberListener
- java.lang.Object
-
- de.gematik.test.tiger.TigerCucumberListener
-
- All Implemented Interfaces:
io.cucumber.plugin.ConcurrentEventListener,io.cucumber.plugin.Plugin
public class TigerCucumberListener extends Object implements io.cucumber.plugin.ConcurrentEventListener, io.cucumber.plugin.Plugin
-
-
Constructor Summary
Constructors Constructor Description TigerCucumberListener()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description io.cucumber.plugin.event.EventHandler<io.cucumber.plugin.event.TestCaseFinished>getCaseFinished()io.cucumber.plugin.event.EventHandler<io.cucumber.plugin.event.TestCaseStarted>getCaseStarted()List<Map<String,String>>getCurrentScenarioDataVariant()For scenario outlines, this list is the list of data variant maps.intgetCurrentScenarioDataVariantIndex()For scenario outlines, this index is used to identify the current data variant under execution.List<String>getCurrentScenarioDataVariantKeys()For scenario outlines, this list is the list of keys in the example section.StringgetCurrentScenarioId()intgetCurrentStepIndex()index of currently executed step.@NotNull StringgetFileNameFor(String scenarioName, int dataVariantIndex)Map<String,Feature>getIdFeatureMap()map of features parsed, for each scenario based on its id.Map<String,List<Step>>getScenarioStepsMap()map of steps for each scenario, identified by the scenario id.intgetScFailed()number of failed scenarios / scenario data variants.intgetScPassed()number of passed scenarios / scenario data variants.PatterngetShowSteps()io.cucumber.plugin.event.EventHandler<io.cucumber.plugin.event.TestSourceRead>getSourceRead()io.cucumber.plugin.event.EventHandler<io.cucumber.plugin.event.TestStepFinished>getStepFinished()io.cucumber.plugin.event.EventHandler<io.cucumber.plugin.event.TestStepStarted>getStepStarted()Map<URI,Feature>getUriFeatureMap()map of features parsed, based on their urivoidsetEventPublisher(io.cucumber.plugin.event.EventPublisher eventPublisher)
-
-
-
Method Detail
-
setEventPublisher
public void setEventPublisher(io.cucumber.plugin.event.EventPublisher eventPublisher)
- Specified by:
setEventPublisherin interfaceio.cucumber.plugin.ConcurrentEventListener
-
getFileNameFor
@NotNull public @NotNull String getFileNameFor(String scenarioName, int dataVariantIndex)
-
getUriFeatureMap
public Map<URI,Feature> getUriFeatureMap()
map of features parsed, based on their uri
-
getIdFeatureMap
public Map<String,Feature> getIdFeatureMap()
map of features parsed, for each scenario based on its id.
-
getScenarioStepsMap
public Map<String,List<Step>> getScenarioStepsMap()
map of steps for each scenario, identified by the scenario id.
-
getCurrentScenarioId
public String getCurrentScenarioId()
-
getCurrentStepIndex
public int getCurrentStepIndex()
index of currently executed step.
-
getCurrentScenarioDataVariantIndex
public int getCurrentScenarioDataVariantIndex()
For scenario outlines, this index is used to identify the current data variant under execution.
-
getCurrentScenarioDataVariantKeys
public List<String> getCurrentScenarioDataVariantKeys()
For scenario outlines, this list is the list of keys in the example section.
-
getCurrentScenarioDataVariant
public List<Map<String,String>> getCurrentScenarioDataVariant()
For scenario outlines, this list is the list of data variant maps. The map contains the value for the specific variant identified by its key.
-
getScPassed
public int getScPassed()
number of passed scenarios / scenario data variants.
-
getScFailed
public int getScFailed()
number of failed scenarios / scenario data variants.
-
getShowSteps
public Pattern getShowSteps()
-
getSourceRead
public io.cucumber.plugin.event.EventHandler<io.cucumber.plugin.event.TestSourceRead> getSourceRead()
-
getCaseStarted
public io.cucumber.plugin.event.EventHandler<io.cucumber.plugin.event.TestCaseStarted> getCaseStarted()
-
getStepStarted
public io.cucumber.plugin.event.EventHandler<io.cucumber.plugin.event.TestStepStarted> getStepStarted()
-
getStepFinished
public io.cucumber.plugin.event.EventHandler<io.cucumber.plugin.event.TestStepFinished> getStepFinished()
-
getCaseFinished
public io.cucumber.plugin.event.EventHandler<io.cucumber.plugin.event.TestCaseFinished> getCaseFinished()
-
-