Package io.karatelabs.core
Class StepExecutor
java.lang.Object
io.karatelabs.core.StepExecutor
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionevalMatchString(String expression, String docString) Parses and evaluates a full match-expression string (e.g.
-
Constructor Details
-
StepExecutor
-
-
Method Details
-
execute
-
evalMatchString
Parses and evaluates a full match-expression string (e.g."foo contains { a: 1 }"or"$json.orders[*].category contains 'electronics'") and returns theResult. Both operands route throughevalMatchExpression(java.lang.String, boolean), so a `$`-prefixed JsonPath (wildcards included) resolves identically on either side — exactly as the `match` keyword does. This is the single entry point shared by the `match` keyword (executeMatch(io.karatelabs.gherkin.Step)) and thekarate.match("...")JS API, so the two never drift.- Parameters:
expression- the match expression sans the leadingmatchkeyworddocString- optional doc-string supplying the expected value (keyword path only; passnullfrom the JS API)
-