Class 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 Detail

      • TigerCucumberListener

        public TigerCucumberListener()
    • Method Detail

      • setEventPublisher

        public void setEventPublisher​(io.cucumber.plugin.event.EventPublisher eventPublisher)
        Specified by:
        setEventPublisher in interface io.cucumber.plugin.ConcurrentEventListener
      • getFileNameFor

        @NotNull
        public @NotNull String getFileNameFor​(String scenarioName,
                                              int dataVariantIndex)
      • replaceSpecialCharacters

        public String replaceSpecialCharacters​(String name)
      • 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()