java.lang.Object
io.cucumber.query.Query
Given one Cucumber Message, find another.
Queries can be made while the test run is incomplete - and this will naturally return incomplete results.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintList<io.cucumber.messages.types.Pickle> List<io.cucumber.messages.types.PickleStep> List<io.cucumber.messages.types.StepDefinition> List<io.cucumber.messages.types.TestCaseFinished> <T> List<io.cucumber.messages.types.TestCaseFinished> findAllTestCaseFinishedOrderBy(BiFunction<Query, io.cucumber.messages.types.TestCaseFinished, Optional<T>> findOrderBy, Comparator<T> order) List<io.cucumber.messages.types.TestCase> List<io.cucumber.messages.types.TestCaseStarted> <T> List<io.cucumber.messages.types.TestCaseStarted> findAllTestCaseStartedOrderBy(BiFunction<Query, io.cucumber.messages.types.TestCaseStarted, Optional<T>> findOrderBy, Comparator<T> order) List<io.cucumber.messages.types.TestRunHookFinished> List<io.cucumber.messages.types.TestRunHookStarted> List<io.cucumber.messages.types.TestStepFinished> List<io.cucumber.messages.types.TestStep> List<io.cucumber.messages.types.TestStepStarted> List<io.cucumber.messages.types.UndefinedParameterType> List<io.cucumber.messages.types.Attachment> findAttachmentsBy(io.cucumber.messages.types.TestRunHookFinished testRunHookFinished) List<io.cucumber.messages.types.Attachment> findAttachmentsBy(io.cucumber.messages.types.TestStepFinished testStepFinished) Optional<io.cucumber.messages.types.Hook> findHookBy(io.cucumber.messages.types.TestRunHookFinished testRunHookFinished) Optional<io.cucumber.messages.types.Hook> findHookBy(io.cucumber.messages.types.TestRunHookStarted testRunHookStarted) Optional<io.cucumber.messages.types.Hook> findHookBy(io.cucumber.messages.types.TestStep testStep) findLineageBy(io.cucumber.messages.types.Examples element) findLineageBy(io.cucumber.messages.types.Feature element) findLineageBy(io.cucumber.messages.types.GherkinDocument element) findLineageBy(io.cucumber.messages.types.Pickle pickle) findLineageBy(io.cucumber.messages.types.Rule element) findLineageBy(io.cucumber.messages.types.Scenario element) findLineageBy(io.cucumber.messages.types.TableRow element) findLineageBy(io.cucumber.messages.types.TestCaseFinished testCaseFinished) findLineageBy(io.cucumber.messages.types.TestCaseStarted testCaseStarted) Optional<io.cucumber.messages.types.Location> findLocationOf(io.cucumber.messages.types.Pickle pickle) Optional<io.cucumber.messages.types.Meta> findMeta()Optional<io.cucumber.messages.types.TestStepResult> findMostSevereTestStepResultBy(io.cucumber.messages.types.TestCaseFinished testCaseFinished) Optional<io.cucumber.messages.types.TestStepResult> findMostSevereTestStepResultBy(io.cucumber.messages.types.TestCaseStarted testCaseStarted) Optional<io.cucumber.messages.types.Pickle> findPickleBy(io.cucumber.messages.types.TestCase testCase) Optional<io.cucumber.messages.types.Pickle> findPickleBy(io.cucumber.messages.types.TestCaseFinished testCaseFinished) Optional<io.cucumber.messages.types.Pickle> findPickleBy(io.cucumber.messages.types.TestCaseStarted testCaseStarted) Optional<io.cucumber.messages.types.Pickle> findPickleBy(io.cucumber.messages.types.TestStepFinished testStepFinished) Optional<io.cucumber.messages.types.Pickle> findPickleBy(io.cucumber.messages.types.TestStepStarted testStepStarted) Optional<io.cucumber.messages.types.PickleStep> findPickleStepBy(io.cucumber.messages.types.TestStep testStep) Optional<io.cucumber.messages.types.Step> findStepBy(io.cucumber.messages.types.PickleStep pickleStep) List<io.cucumber.messages.types.StepDefinition> findStepDefinitionsBy(io.cucumber.messages.types.TestStep testStep) List<io.cucumber.messages.types.Suggestion> findSuggestionsBy(io.cucumber.messages.types.Pickle pickle) List<io.cucumber.messages.types.Suggestion> findSuggestionsBy(io.cucumber.messages.types.PickleStep pickleStep) Optional<io.cucumber.messages.types.TestCase> findTestCaseBy(io.cucumber.messages.types.TestCaseFinished testCaseFinished) Optional<io.cucumber.messages.types.TestCase> findTestCaseBy(io.cucumber.messages.types.TestCaseStarted testCaseStarted) Optional<io.cucumber.messages.types.TestCase> findTestCaseBy(io.cucumber.messages.types.TestStepFinished testStepFinished) Optional<io.cucumber.messages.types.TestCase> findTestCaseBy(io.cucumber.messages.types.TestStepStarted testStepStarted) findTestCaseDurationBy(io.cucumber.messages.types.TestCaseFinished testCaseFinished) findTestCaseDurationBy(io.cucumber.messages.types.TestCaseStarted testCaseStarted) Optional<io.cucumber.messages.types.TestCaseFinished> findTestCaseFinishedBy(io.cucumber.messages.types.TestCaseStarted testCaseStarted) Optional<io.cucumber.messages.types.TestCaseStarted> findTestCaseStartedBy(io.cucumber.messages.types.TestCaseFinished testCaseFinished) Optional<io.cucumber.messages.types.TestCaseStarted> findTestCaseStartedBy(io.cucumber.messages.types.TestStepFinished testStepFinished) Optional<io.cucumber.messages.types.TestCaseStarted> findTestCaseStartedBy(io.cucumber.messages.types.TestStepStarted testStepStarted) Optional<io.cucumber.messages.types.TestRunFinished> Optional<io.cucumber.messages.types.TestRunHookFinished> findTestRunHookFinishedBy(io.cucumber.messages.types.TestRunHookStarted testRunHookStarted) Optional<io.cucumber.messages.types.TestRunHookStarted> findTestRunHookStartedBy(io.cucumber.messages.types.TestRunHookFinished testRunHookFinished) Optional<io.cucumber.messages.types.TestRunStarted> Optional<io.cucumber.messages.types.TestStep> findTestStepBy(io.cucumber.messages.types.TestStepFinished testStepFinished) Optional<io.cucumber.messages.types.TestStep> findTestStepBy(io.cucumber.messages.types.TestStepStarted testStepStarted) findTestStepFinishedAndTestStepBy(io.cucumber.messages.types.TestCaseStarted testCaseStarted) List<io.cucumber.messages.types.TestStepFinished> findTestStepsFinishedBy(io.cucumber.messages.types.TestCaseFinished testCaseFinished) List<io.cucumber.messages.types.TestStepFinished> findTestStepsFinishedBy(io.cucumber.messages.types.TestCaseStarted testCaseStarted) List<io.cucumber.messages.types.TestStepStarted> findTestStepsStartedBy(io.cucumber.messages.types.TestCaseFinished testCaseFinished) List<io.cucumber.messages.types.TestStepStarted> findTestStepsStartedBy(io.cucumber.messages.types.TestCaseStarted testCaseStarted) Optional<io.cucumber.messages.types.StepDefinition> findUnambiguousStepDefinitionBy(io.cucumber.messages.types.TestStep testStep)
-
Constructor Details
-
Query
-
-
Method Details
-
countMostSevereTestStepResultStatus
-
countTestCasesStarted
public int countTestCasesStarted() -
findAllPickles
-
findAllPickleSteps
-
findAllTestCaseStarted
-
findAllStepDefinitions
-
findAllTestCaseStartedOrderBy
public <T> List<io.cucumber.messages.types.TestCaseStarted> findAllTestCaseStartedOrderBy(BiFunction<Query, io.cucumber.messages.types.TestCaseStarted, Optional<T>> findOrderBy, Comparator<T> order) -
findAllTestCaseFinished
-
findAllTestCaseFinishedOrderBy
public <T> List<io.cucumber.messages.types.TestCaseFinished> findAllTestCaseFinishedOrderBy(BiFunction<Query, io.cucumber.messages.types.TestCaseFinished, Optional<T>> findOrderBy, Comparator<T> order) -
findAllTestSteps
-
findAllTestCases
-
findAllTestStepStarted
-
findAllTestStepFinished
-
findAllTestRunHookStarted
-
findAllTestRunHookFinished
-
findAllUndefinedParameterTypes
-
findAttachmentsBy
public List<io.cucumber.messages.types.Attachment> findAttachmentsBy(io.cucumber.messages.types.TestStepFinished testStepFinished) -
findAttachmentsBy
public List<io.cucumber.messages.types.Attachment> findAttachmentsBy(io.cucumber.messages.types.TestRunHookFinished testRunHookFinished) -
findHookBy
public Optional<io.cucumber.messages.types.Hook> findHookBy(io.cucumber.messages.types.TestStep testStep) -
findHookBy
public Optional<io.cucumber.messages.types.Hook> findHookBy(io.cucumber.messages.types.TestRunHookStarted testRunHookStarted) -
findHookBy
public Optional<io.cucumber.messages.types.Hook> findHookBy(io.cucumber.messages.types.TestRunHookFinished testRunHookFinished) -
findMeta
-
findMostSevereTestStepResultBy
public Optional<io.cucumber.messages.types.TestStepResult> findMostSevereTestStepResultBy(io.cucumber.messages.types.TestCaseStarted testCaseStarted) -
findMostSevereTestStepResultBy
public Optional<io.cucumber.messages.types.TestStepResult> findMostSevereTestStepResultBy(io.cucumber.messages.types.TestCaseFinished testCaseFinished) -
findLocationOf
public Optional<io.cucumber.messages.types.Location> findLocationOf(io.cucumber.messages.types.Pickle pickle) -
findPickleBy
public Optional<io.cucumber.messages.types.Pickle> findPickleBy(io.cucumber.messages.types.TestCaseStarted testCaseStarted) -
findPickleBy
public Optional<io.cucumber.messages.types.Pickle> findPickleBy(io.cucumber.messages.types.TestCaseFinished testCaseFinished) -
findPickleBy
public Optional<io.cucumber.messages.types.Pickle> findPickleBy(io.cucumber.messages.types.TestCase testCase) -
findPickleBy
public Optional<io.cucumber.messages.types.Pickle> findPickleBy(io.cucumber.messages.types.TestStepStarted testStepStarted) -
findPickleBy
public Optional<io.cucumber.messages.types.Pickle> findPickleBy(io.cucumber.messages.types.TestStepFinished testStepFinished) -
findPickleStepBy
public Optional<io.cucumber.messages.types.PickleStep> findPickleStepBy(io.cucumber.messages.types.TestStep testStep) -
findSuggestionsBy
public List<io.cucumber.messages.types.Suggestion> findSuggestionsBy(io.cucumber.messages.types.PickleStep pickleStep) -
findSuggestionsBy
public List<io.cucumber.messages.types.Suggestion> findSuggestionsBy(io.cucumber.messages.types.Pickle pickle) -
findStepBy
public Optional<io.cucumber.messages.types.Step> findStepBy(io.cucumber.messages.types.PickleStep pickleStep) -
findStepDefinitionsBy
public List<io.cucumber.messages.types.StepDefinition> findStepDefinitionsBy(io.cucumber.messages.types.TestStep testStep) -
findUnambiguousStepDefinitionBy
public Optional<io.cucumber.messages.types.StepDefinition> findUnambiguousStepDefinitionBy(io.cucumber.messages.types.TestStep testStep) -
findTestCaseBy
public Optional<io.cucumber.messages.types.TestCase> findTestCaseBy(io.cucumber.messages.types.TestCaseStarted testCaseStarted) -
findTestCaseBy
public Optional<io.cucumber.messages.types.TestCase> findTestCaseBy(io.cucumber.messages.types.TestCaseFinished testCaseFinished) -
findTestCaseBy
public Optional<io.cucumber.messages.types.TestCase> findTestCaseBy(io.cucumber.messages.types.TestStepStarted testStepStarted) -
findTestCaseBy
public Optional<io.cucumber.messages.types.TestCase> findTestCaseBy(io.cucumber.messages.types.TestStepFinished testStepFinished) -
findTestCaseDurationBy
-
findTestCaseDurationBy
-
findTestCaseStartedBy
public Optional<io.cucumber.messages.types.TestCaseStarted> findTestCaseStartedBy(io.cucumber.messages.types.TestStepStarted testStepStarted) -
findTestCaseStartedBy
public Optional<io.cucumber.messages.types.TestCaseStarted> findTestCaseStartedBy(io.cucumber.messages.types.TestCaseFinished testCaseFinished) -
findTestCaseStartedBy
public Optional<io.cucumber.messages.types.TestCaseStarted> findTestCaseStartedBy(io.cucumber.messages.types.TestStepFinished testStepFinished) -
findTestCaseFinishedBy
public Optional<io.cucumber.messages.types.TestCaseFinished> findTestCaseFinishedBy(io.cucumber.messages.types.TestCaseStarted testCaseStarted) -
findTestRunHookFinishedBy
public Optional<io.cucumber.messages.types.TestRunHookFinished> findTestRunHookFinishedBy(io.cucumber.messages.types.TestRunHookStarted testRunHookStarted) -
findTestRunHookStartedBy
public Optional<io.cucumber.messages.types.TestRunHookStarted> findTestRunHookStartedBy(io.cucumber.messages.types.TestRunHookFinished testRunHookFinished) -
findTestRunDuration
-
findTestRunFinished
-
findTestRunStarted
-
findTestStepBy
public Optional<io.cucumber.messages.types.TestStep> findTestStepBy(io.cucumber.messages.types.TestStepStarted testStepStarted) -
findTestStepBy
public Optional<io.cucumber.messages.types.TestStep> findTestStepBy(io.cucumber.messages.types.TestStepFinished testStepFinished) -
findTestStepsStartedBy
public List<io.cucumber.messages.types.TestStepStarted> findTestStepsStartedBy(io.cucumber.messages.types.TestCaseStarted testCaseStarted) -
findTestStepsStartedBy
public List<io.cucumber.messages.types.TestStepStarted> findTestStepsStartedBy(io.cucumber.messages.types.TestCaseFinished testCaseFinished) -
findTestStepsFinishedBy
public List<io.cucumber.messages.types.TestStepFinished> findTestStepsFinishedBy(io.cucumber.messages.types.TestCaseStarted testCaseStarted) -
findTestStepsFinishedBy
public List<io.cucumber.messages.types.TestStepFinished> findTestStepsFinishedBy(io.cucumber.messages.types.TestCaseFinished testCaseFinished) -
findTestStepFinishedAndTestStepBy
-
findLineageBy
-
findLineageBy
-
findLineageBy
-
findLineageBy
-
findLineageBy
-
findLineageBy
-
findLineageBy
-
findLineageBy
-
findLineageBy
-