Class ScenarioContextParallelDelegate

java.lang.Object
io.cucumber.core.plugin.ScenarioContextParallelDelegate
All Implemented Interfaces:
IScenarioContext

public class ScenarioContextParallelDelegate extends Object implements IScenarioContext
  • Constructor Details

    • ScenarioContextParallelDelegate

      public ScenarioContextParallelDelegate(URI featureURI, io.cucumber.core.plugin.ScenarioContextParallel context)
  • Method Details

    • getFeatureURI

      public URI getFeatureURI()
      Specified by:
      getFeatureURI in interface IScenarioContext
    • getScenarioContextURI

      public URI getScenarioContextURI()
    • currentScenarioOutline

      public io.cucumber.messages.types.Scenario currentScenarioOutline(String scenarioId)
      Specified by:
      currentScenarioOutline in interface IScenarioContext
    • getStepQueue

      public Queue<io.cucumber.messages.types.Step> getStepQueue(io.cucumber.plugin.event.TestCase testCase)
    • getTestStepQueue

      public Queue<io.cucumber.plugin.event.TestStep> getTestStepQueue(io.cucumber.plugin.event.TestCase testCase)
    • examplesAreRunning

      public boolean examplesAreRunning(String scenarioId)
    • getExampleRows

      public Map<Long,Map<String,String>> getExampleRows(String scenarioId)
    • setExampleRows

      public void setExampleRows(String scenarioId, Map<Long,Map<String,String>> exampleRows)
    • getExampleTags

      public Map<Long,List<io.cucumber.messages.types.Tag>> getExampleTags()
    • setExampleTags

      public void setExampleTags(Map<Long,List<io.cucumber.messages.types.Tag>> exampleTags)
    • getExampleCount

      public int getExampleCount(String scenarioId)
    • decrementExampleCount

      public int decrementExampleCount(String scenarioId)
    • getTable

      public net.thucydides.model.domain.DataTable getTable(String scenarioId)
      Specified by:
      getTable in interface IScenarioContext
    • isWaitingToProcessBackgroundSteps

      public boolean isWaitingToProcessBackgroundSteps(String scenarioId)
    • addCurrentScenarioId

      public void addCurrentScenarioId(String scenarioId)
    • getCurrentScenarioDefinition

      public io.cucumber.messages.types.Scenario getCurrentScenarioDefinition(String scenarioId)
      Specified by:
      getCurrentScenarioDefinition in interface IScenarioContext
    • getCurrentScenario

      public String getCurrentScenario(String scenarioId)
    • setCurrentScenario

      public void setCurrentScenario(String scenarioId, String currentScenario)
    • getFeatureTags

      public List<io.cucumber.messages.types.Tag> getFeatureTags()
    • isAddingScenarioOutlineSteps

      public boolean isAddingScenarioOutlineSteps(String scenarioId)
    • doneAddingScenarioOutlineSteps

      public void doneAddingScenarioOutlineSteps(String scenarioId)
    • setFeatureTags

      public void setFeatureTags(List<io.cucumber.messages.types.Tag> tags)
    • setCurrentScenarioDefinitionFrom

      public void setCurrentScenarioDefinitionFrom(String scenarioId, io.cucumber.core.plugin.TestSourcesModel.AstNode astNode)
    • isAScenarioOutline

      public boolean isAScenarioOutline(String scenarioId)
      Specified by:
      isAScenarioOutline in interface IScenarioContext
    • startNewExample

      public void startNewExample(String scenarioId)
    • setExamplesRunning

      public void setExamplesRunning(String scenarioId, boolean examplesRunning)
    • clearStepQueue

      public void clearStepQueue(io.cucumber.plugin.event.TestCase testCase)
    • clearStepQueue

      public void clearStepQueue()
    • clearTestStepQueue

      public void clearTestStepQueue()
    • queueStep

      public void queueStep(io.cucumber.plugin.event.TestCase testCase, io.cucumber.messages.types.Step step)
    • queueTestStep

      public void queueTestStep(io.cucumber.plugin.event.TestCase testCase, io.cucumber.plugin.event.TestStep testStep)
    • getCurrentStep

      public io.cucumber.messages.types.Step getCurrentStep(io.cucumber.plugin.event.TestCase testCase)
      Specified by:
      getCurrentStep in interface IScenarioContext
    • nextStep

      public io.cucumber.messages.types.Step nextStep(io.cucumber.plugin.event.TestCase testCase)
    • nextTestStep

      public io.cucumber.plugin.event.TestStep nextTestStep(io.cucumber.plugin.event.TestCase testCase)
    • noStepsAreQueued

      public boolean noStepsAreQueued(io.cucumber.plugin.event.TestCase testCase)
    • hasScenarioId

      public boolean hasScenarioId(String scenarioId)
    • setTable

      public void setTable(String scenarioId, net.thucydides.model.domain.DataTable table)
    • addTableRows

      public void addTableRows(String scenarioId, List<String> headers, List<Map<String,String>> rows, String name, String description, Map<Integer,Long> lineNumbersOfEachRow)
    • addTableTags

      public void addTableTags(String scenarioId, List<net.thucydides.model.domain.TestTag> tags)
    • clearTable

      public void clearTable()
    • stepEventBus

      public net.thucydides.core.steps.StepEventBus stepEventBus()
      Specified by:
      stepEventBus in interface IScenarioContext
    • setStepEventBus

      public void setStepEventBus(net.thucydides.core.steps.StepEventBus stepEventBus)
    • addBaseStepListener

      public void addBaseStepListener(net.thucydides.core.steps.BaseStepListener baseStepListener)
    • collectAllBaseStepListeners

      public void collectAllBaseStepListeners(List<net.thucydides.core.steps.BaseStepListener> allBaseStepListeners)
    • setWaitingToProcessBackgroundSteps

      public void setWaitingToProcessBackgroundSteps(String scenarioId, boolean waitingToProcessBackgroundSteps)
    • addHighPriorityStepEventBusEvent

      public void addHighPriorityStepEventBusEvent(String scenarioId, net.thucydides.core.steps.events.StepEventBusEvent event)
    • addStepEventBusEvent

      public void addStepEventBusEvent(net.thucydides.core.steps.events.StepEventBusEvent event)
    • storeAllStepEventBusEventsForLine

      public void storeAllStepEventBusEventsForLine(int line, io.cucumber.plugin.event.TestCase testCase)
    • playAllTestEvents

      public void playAllTestEvents()
    • recordUnexpectedFailure

      public void recordUnexpectedFailure(Throwable throwable)
    • clearEventBus

      public void clearEventBus()
    • getScenarioTags

      public List<io.cucumber.messages.types.Tag> getScenarioTags(String scenarioId)
    • setScenarioTags

      public void setScenarioTags(String scenarioId, List<io.cucumber.messages.types.Tag> scenarioTags)