Package io.cucumber.plugin.event
Class TestStepStarted
- java.lang.Object
-
- io.cucumber.plugin.event.TestCaseEvent
-
- io.cucumber.plugin.event.TestStepStarted
-
- All Implemented Interfaces:
Event
@API(status=STABLE) public final class TestStepStarted extends TestCaseEvent
A test step started event is broadcast when ever a step starts.A step can either be a
PickleStepTestStep
or aHookTestStep
depending on what step was executed.Each test step started event is followed by an matching
TestStepFinished
event for the same step.The order in which these events may be expected is:[before hook,]* [[before step hook,]* test step, [after step hook,]*]+, [after hook,]*
- See Also:
PickleStepTestStep
,HookTestStep
-
-
Constructor Summary
Constructors Constructor Description TestStepStarted(Instant timeInstant, TestCase testCase, TestStep testStep)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Instant
getInstant()
Returns instant from epoch.TestStep
getTestStep()
-
Methods inherited from class io.cucumber.plugin.event.TestCaseEvent
getTestCase
-
-
-
-
Method Detail
-
getTestStep
public TestStep getTestStep()
-
getInstant
public Instant getInstant()
Returns instant from epoch.- Specified by:
getInstant
in interfaceEvent
- Returns:
- time instant in Instant
- See Also:
Instant.now()
-
-