public static class RunningContext.ScenarioContext
extends java.lang.Object
| Constructor and Description |
|---|
ScenarioContext() |
| Modifier and Type | Method and Description |
|---|---|
io.reactivex.Maybe<java.lang.String> |
getCurrentStepId() |
java.lang.String |
getCurrentText() |
java.net.URI |
getFeatureUri() |
io.cucumber.plugin.event.Status |
getHookStatus() |
io.reactivex.Maybe<java.lang.String> |
getHookStepId() |
io.reactivex.Maybe<java.lang.String> |
getId() |
java.lang.String |
getKeyword() |
int |
getLine() |
java.lang.String |
getName() |
java.lang.String |
getOutlineIteration() |
io.cucumber.core.internal.gherkin.ast.Step |
getStep(io.cucumber.plugin.event.TestStep testStep) |
java.lang.String |
getStepPrefix() |
io.cucumber.plugin.event.TestCase |
getTestCase() |
boolean |
hasBackground() |
boolean |
isScenarioOutline(io.cucumber.core.internal.gherkin.ast.ScenarioDefinition scenario) |
void |
mapBackgroundSteps(io.cucumber.core.internal.gherkin.ast.Background background) |
void |
nextBackgroundStep() |
void |
processBackground(io.cucumber.core.internal.gherkin.ast.Background background) |
void |
processScenario(io.cucumber.core.internal.gherkin.ast.ScenarioDefinition scenario) |
void |
processScenarioOutline(io.cucumber.core.internal.gherkin.ast.ScenarioDefinition scenarioOutline)
Takes the serial number of scenario outline and links it to the executing scenario
|
void |
setCurrentStepId(io.reactivex.Maybe<java.lang.String> currentStepId) |
void |
setCurrentText(java.lang.String stepText) |
void |
setFeatureUri(java.net.URI featureUri) |
void |
setHookStatus(io.cucumber.plugin.event.Status hookStatus) |
void |
setHookStepId(io.reactivex.Maybe<java.lang.String> hookStepId) |
void |
setId(io.reactivex.Maybe<java.lang.String> newId) |
void |
setTestCase(io.cucumber.plugin.event.TestCase testCase) |
boolean |
withBackground() |
public void processScenario(io.cucumber.core.internal.gherkin.ast.ScenarioDefinition scenario)
public void processBackground(io.cucumber.core.internal.gherkin.ast.Background background)
public void processScenarioOutline(io.cucumber.core.internal.gherkin.ast.ScenarioDefinition scenarioOutline)
scenarioOutline - Cucumber's ScenarioDefinition objectpublic void mapBackgroundSteps(io.cucumber.core.internal.gherkin.ast.Background background)
public java.lang.String getName()
public java.lang.String getKeyword()
public int getLine()
public java.lang.String getStepPrefix()
public io.cucumber.core.internal.gherkin.ast.Step getStep(io.cucumber.plugin.event.TestStep testStep)
public io.reactivex.Maybe<java.lang.String> getId()
public void setId(io.reactivex.Maybe<java.lang.String> newId)
public void setTestCase(io.cucumber.plugin.event.TestCase testCase)
public void nextBackgroundStep()
public boolean isScenarioOutline(io.cucumber.core.internal.gherkin.ast.ScenarioDefinition scenario)
public boolean withBackground()
public boolean hasBackground()
public java.lang.String getOutlineIteration()
public io.reactivex.Maybe<java.lang.String> getCurrentStepId()
public void setCurrentStepId(io.reactivex.Maybe<java.lang.String> currentStepId)
public io.reactivex.Maybe<java.lang.String> getHookStepId()
public void setHookStepId(io.reactivex.Maybe<java.lang.String> hookStepId)
public io.cucumber.plugin.event.Status getHookStatus()
public void setHookStatus(io.cucumber.plugin.event.Status hookStatus)
public void setFeatureUri(java.net.URI featureUri)
public java.net.URI getFeatureUri()
public void setCurrentText(java.lang.String stepText)
public java.lang.String getCurrentText()
public io.cucumber.plugin.event.TestCase getTestCase()