Package io.cucumber.core.runner
Class TestStep
java.lang.Object
io.cucumber.core.runner.TestStep
- All Implemented Interfaces:
TestStep
- Direct Known Subclasses:
HookTestStep,PickleStepTestStep
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate voidemitTestStepFinished(TestCase testCase, EventBus bus, UUID textExecutionId, Instant stopTime, Duration duration, Result result) private voidemitTestStepStarted(TestCase testCase, EventBus bus, UUID textExecutionId, Instant startTime) private StatusexecuteStep(TestCaseState state, ExecutionMode executionMode) Returns a string representation of the glue code location.getId()private ResultmapStatusToResult(Status status, @Nullable Throwable error, Duration duration) private Status(package private) ExecutionModerun(TestCase testCase, EventBus bus, TestCaseState state, ExecutionMode executionMode)
-
Field Details
-
isTestAbortedException
-
stepDefinitionMatch
-
id
-
-
Constructor Details
-
TestStep
TestStep(UUID id, StepDefinitionMatch stepDefinitionMatch)
-
-
Method Details
-
getCodeLocation
Description copied from interface:TestStepReturns a string representation of the glue code location.- Specified by:
getCodeLocationin interfaceTestStep- Returns:
- a string representation of the glue code location.
-
getId
-
run
ExecutionMode run(TestCase testCase, EventBus bus, TestCaseState state, ExecutionMode executionMode) -
emitTestStepStarted
-
executeStep
- Throws:
Throwable
-
mapThrowableToStatus
-
mapStatusToResult
-
emitTestStepFinished
-