Package io.cucumber.core.runner
Class TestCase
java.lang.Object
io.cucumber.core.runner.TestCase
- All Implemented Interfaces:
TestCase
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final List<HookTestStep> private final List<HookTestStep> private final ExecutionModeprivate final UUIDprivate final Pickleprivate final @Nullable UUIDprivate final List<PickleStepTestStep> -
Constructor Summary
ConstructorsConstructorDescriptionTestCase(UUID id, @Nullable UUID testRunStartedId, List<PickleStepTestStep> testSteps, List<HookTestStep> beforeHooks, List<HookTestStep> afterHooks, Pickle pickle, boolean dryRun) -
Method Summary
Modifier and TypeMethodDescriptionprivate static io.cucumber.messages.types.StepMatchArgumentsListcreateStepMatchArgumentList(List<Argument> arguments) private io.cucumber.messages.types.TestStepcreateTestStep(TestStep pluginTestStep) private voidemitTestCaseFinished(EventBus bus, UUID executionId, Instant stop, Result result) private voidprivate voidemitTestCaseStarted(EventBus bus, Instant start, UUID executionId) private StringfileColonLine(Integer line) getId()getLine()Deprecated.Returns the location of this Scenario in the feature file.getName()Deprecated.List<io.cucumber.messages.types.StepMatchArgumentsList> getStepMatchArguments(PickleStepTestStep pickleStep) getTags()getUri()private static io.cucumber.messages.types.GroupmakeMessageGroup(Group group) (package private) void
-
Field Details
-
pickle
-
testSteps
-
executionMode
-
beforeHooks
-
afterHooks
-
id
-
testRunStartedId
-
-
Constructor Details
-
TestCase
TestCase(UUID id, @Nullable UUID testRunStartedId, List<PickleStepTestStep> testSteps, List<HookTestStep> beforeHooks, List<HookTestStep> afterHooks, Pickle pickle, boolean dryRun)
-
-
Method Details
-
makeMessageGroup
-
run
-
getLine
Deprecated.Description copied from interface:TestCaseReturns the line of this Scenario in the feature file. If this Scenario is an example in a Scenario Outline the method wil return the line of the example. -
getLocation
Description copied from interface:TestCaseReturns the location of this Scenario in the feature file. If this Scenario is an example in a Scenario Outline the method wil return the location of the example.- Specified by:
getLocationin interfaceTestCase- Returns:
- the location of this scenario.
-
getKeyword
- Specified by:
getKeywordin interfaceTestCase
-
getName
-
getScenarioDesignation
Deprecated.- Specified by:
getScenarioDesignationin interfaceTestCase
-
fileColonLine
-
getLanguage
- Specified by:
getLanguagein interfaceTestCase
-
getTags
-
getTestSteps
- Specified by:
getTestStepsin interfaceTestCase
-
getUri
-
getId
-
emitTestCaseMessage
-
createTestStep
-
getStepMatchArguments
public List<io.cucumber.messages.types.StepMatchArgumentsList> getStepMatchArguments(PickleStepTestStep pickleStep) -
createStepMatchArgumentList
-
emitTestCaseStarted
-
emitTestCaseFinished
-