Package io.cucumber.core.plugin
Class ScenarioContextParallelDelegate
java.lang.Object
io.cucumber.core.plugin.ScenarioContextParallelDelegate
- All Implemented Interfaces:
IScenarioContext
-
Constructor Summary
ConstructorsConstructorDescriptionScenarioContextParallelDelegate(URI featureURI, io.cucumber.core.plugin.ScenarioContextParallel context) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddBaseStepListener(net.thucydides.core.steps.BaseStepListener baseStepListener) voidaddCurrentScenarioId(String scenarioId) voidaddHighPriorityStepEventBusEvent(String scenarioId, net.thucydides.core.steps.events.StepEventBusEvent event) voidaddStepEventBusEvent(net.thucydides.core.steps.events.StepEventBusEvent event) voidaddTableRows(String scenarioId, List<String> headers, List<Map<String, String>> rows, String name, String description, Map<Integer, Long> lineNumbersOfEachRow) voidaddTableTags(String scenarioId, List<net.thucydides.model.domain.TestTag> tags) voidvoidvoidclearStepQueue(io.cucumber.plugin.event.TestCase testCase) voidvoidvoidcollectAllBaseStepListeners(List<net.thucydides.core.steps.BaseStepListener> allBaseStepListeners) io.cucumber.messages.types.ScenariocurrentScenarioOutline(String scenarioId) intdecrementExampleCount(String scenarioId) voiddoneAddingScenarioOutlineSteps(String scenarioId) booleanexamplesAreRunning(String scenarioId) getCurrentScenario(String scenarioId) io.cucumber.messages.types.ScenariogetCurrentScenarioDefinition(String scenarioId) io.cucumber.messages.types.StepgetCurrentStep(io.cucumber.plugin.event.TestCase testCase) intgetExampleCount(String scenarioId) getExampleRows(String scenarioId) List<io.cucumber.messages.types.Tag>List<io.cucumber.messages.types.Tag>getScenarioTags(String scenarioId) Queue<io.cucumber.messages.types.Step>getStepQueue(io.cucumber.plugin.event.TestCase testCase) net.thucydides.model.domain.DataTableQueue<io.cucumber.plugin.event.TestStep>getTestStepQueue(io.cucumber.plugin.event.TestCase testCase) booleanhasScenarioId(String scenarioId) booleanisAddingScenarioOutlineSteps(String scenarioId) booleanisAScenarioOutline(String scenarioId) booleanisWaitingToProcessBackgroundSteps(String scenarioId) io.cucumber.messages.types.StepnextStep(io.cucumber.plugin.event.TestCase testCase) io.cucumber.plugin.event.TestStepnextTestStep(io.cucumber.plugin.event.TestCase testCase) booleannoStepsAreQueued(io.cucumber.plugin.event.TestCase testCase) voidvoidqueueStep(io.cucumber.plugin.event.TestCase testCase, io.cucumber.messages.types.Step step) voidqueueTestStep(io.cucumber.plugin.event.TestCase testCase, io.cucumber.plugin.event.TestStep testStep) voidrecordUnexpectedFailure(Throwable throwable) voidsetCurrentScenario(String scenarioId, String currentScenario) voidsetCurrentScenarioDefinitionFrom(String scenarioId, io.cucumber.core.plugin.TestSourcesModel.AstNode astNode) voidvoidsetExamplesRunning(String scenarioId, boolean examplesRunning) voidsetExampleTags(Map<Long, List<io.cucumber.messages.types.Tag>> exampleTags) voidsetFeatureTags(List<io.cucumber.messages.types.Tag> tags) voidsetScenarioTags(String scenarioId, List<io.cucumber.messages.types.Tag> scenarioTags) voidsetStepEventBus(net.thucydides.core.steps.StepEventBus stepEventBus) voidvoidsetWaitingToProcessBackgroundSteps(String scenarioId, boolean waitingToProcessBackgroundSteps) voidstartNewExample(String scenarioId) net.thucydides.core.steps.StepEventBusvoidstoreAllStepEventBusEventsForLine(int line, io.cucumber.plugin.event.TestCase testCase)
-
Constructor Details
-
ScenarioContextParallelDelegate
public ScenarioContextParallelDelegate(URI featureURI, io.cucumber.core.plugin.ScenarioContextParallel context)
-
-
Method Details
-
getFeatureURI
- Specified by:
getFeatureURIin interfaceIScenarioContext
-
getScenarioContextURI
-
currentScenarioOutline
- Specified by:
currentScenarioOutlinein interfaceIScenarioContext
-
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
-
getExampleRows
-
setExampleRows
-
getExampleTags
-
setExampleTags
-
getExampleCount
-
decrementExampleCount
-
getTable
- Specified by:
getTablein interfaceIScenarioContext
-
isWaitingToProcessBackgroundSteps
-
addCurrentScenarioId
-
getCurrentScenarioDefinition
- Specified by:
getCurrentScenarioDefinitionin interfaceIScenarioContext
-
getCurrentScenario
-
setCurrentScenario
-
getFeatureTags
-
isAddingScenarioOutlineSteps
-
doneAddingScenarioOutlineSteps
-
setFeatureTags
-
setCurrentScenarioDefinitionFrom
public void setCurrentScenarioDefinitionFrom(String scenarioId, io.cucumber.core.plugin.TestSourcesModel.AstNode astNode) -
isAScenarioOutline
- Specified by:
isAScenarioOutlinein interfaceIScenarioContext
-
startNewExample
-
setExamplesRunning
-
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:
getCurrentStepin interfaceIScenarioContext
-
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
-
setTable
-
addTableRows
-
addTableTags
-
clearTable
public void clearTable() -
stepEventBus
public net.thucydides.core.steps.StepEventBus stepEventBus()- Specified by:
stepEventBusin interfaceIScenarioContext
-
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
-
clearEventBus
public void clearEventBus() -
getScenarioTags
-
setScenarioTags
-