Package com.thoughtworks.gauge
Class ExecutionContext
java.lang.Object
com.thoughtworks.gauge.ExecutionContext
Gives the information about the current execution at runtime - spec, scenario, step that is running.
-
Constructor Summary
ConstructorsConstructorDescriptionExecutionContext(Specification specification, Scenario scenario, StepDetails stepDetails) -
Method Summary
Modifier and TypeMethodDescription
-
Constructor Details
-
ExecutionContext
-
ExecutionContext
public ExecutionContext()
-
-
Method Details
-
getCurrentSpecification
- Returns:
- - The Current Specification that is executing. Returns null in BeforeSuite and AfterSuite levels as no spec is executing then.
-
getCurrentScenario
- Returns:
- - The Current Scenario that is executing. Returns null in BeforeSuite, AfterSuite, BeforeSpec levels as no scenario is executing then.
-
getCurrentStep
- Returns:
- - The Current Step that is executing. Returns null in BeforeSuite, AfterSuite, BeforeSpec, AfterSpec, BeforeScenario levels as no step is executing then.
-
getAllTags
- Returns:
- - All the valid tags (including scenario and spec tags) at the execution level.
-