Package com.thoughtworks.gauge
Class ExecutionContext
- java.lang.Object
-
- com.thoughtworks.gauge.ExecutionContext
-
public class ExecutionContext extends Object
Gives the information about the current execution at runtime - spec, scenario, step that is running.
-
-
Constructor Summary
Constructors Constructor Description ExecutionContext()
ExecutionContext(Specification specification, Scenario scenario, StepDetails stepDetails)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<String>
getAllTags()
Scenario
getCurrentScenario()
Specification
getCurrentSpecification()
StepDetails
getCurrentStep()
-
-
-
Constructor Detail
-
ExecutionContext
public ExecutionContext(Specification specification, Scenario scenario, StepDetails stepDetails)
-
ExecutionContext
public ExecutionContext()
-
-
Method Detail
-
getCurrentSpecification
public Specification getCurrentSpecification()
- Returns:
- - The Current Specification that is executing. Returns null in BeforeSuite and AfterSuite levels as no spec is executing then.
-
getCurrentScenario
public Scenario getCurrentScenario()
- Returns:
- - The Current Scenario that is executing. Returns null in BeforeSuite, AfterSuite, BeforeSpec levels as no scenario is executing then.
-
getCurrentStep
public StepDetails getCurrentStep()
- Returns:
- - The Current Step that is executing. Returns null in BeforeSuite, AfterSuite, BeforeSpec, AfterSpec, BeforeScenario levels as no step is executing then.
-
-